98 lines
3.0 KiB
RPMSpec
98 lines
3.0 KiB
RPMSpec
|
# openkdj default directory ... or create a new fontconfig.properties.src... fontconfig.%{vendor}.properties.src
|
||
|
%define fontdir %{_datadir}/fonts/korean/TrueType/
|
||
|
Name: baekmuk-fonts-ttf
|
||
|
Version: 2.2
|
||
|
Release: 4mamba
|
||
|
Summary: Free Korean TrueType fonts
|
||
|
Group: System/Fonts
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: http://kldp.net/projects/baekmuk/
|
||
|
Source0: http://kldp.net/frs/download.php/1429/baekmuk-ttf-%{version}.tar.gz
|
||
|
Source1: baekmuk-ttf-fonts-2.2-batang-1.conf
|
||
|
Source2: baekmuk-ttf-fonts-2.2-dotum-1.conf
|
||
|
Source3: baekmuk-ttf-fonts-2.2-gulim-1.conf
|
||
|
Source4: baekmuk-ttf-fonts-2.2-hline.conf
|
||
|
License: Baekmuk
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRequires: font-util
|
||
|
BuildRequires: mkfontdir
|
||
|
BuildRequires: mkfontscale
|
||
|
Provides: baekmuk-ttf-fonts
|
||
|
Obsoletes: baekmuk-ttf-fonts
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
This package provides the free Korean TrueType fonts (Batang, Dotum, Gulim, Headline).
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n baekmuk-ttf-%{version}
|
||
|
|
||
|
%build
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
install -d %{buildroot}%{fontdir} %{buildroot}%{_sysconfdir}/fonts/{conf.d,conf.avail}
|
||
|
|
||
|
for i in batang dotum gulim hline; do
|
||
|
install -m0644 ttf/$i.ttf %{buildroot}%{fontdir}
|
||
|
done
|
||
|
|
||
|
install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/fonts/conf.avail/65-1-baekmuk-ttf-batang.conf
|
||
|
install -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/fonts/conf.avail/65-1-baekmuk-ttf-dotum.conf
|
||
|
install -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/fonts/conf.avail/65-1-baekmuk-ttf-gulim.conf
|
||
|
install -m0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/fonts/conf.avail/65-1-baekmuk-ttf-hline.conf
|
||
|
pushd %{buildroot}%{_sysconfdir}/fonts/conf.avail
|
||
|
for f in *.conf; do
|
||
|
ln -s ../conf.avail/$f ../conf.d/$f
|
||
|
done
|
||
|
popd
|
||
|
|
||
|
mkfontscale %{buildroot}%{fontdir}
|
||
|
mkfontdir %{buildroot}%{fontdir}
|
||
|
|
||
|
iconv -f EUC-KR -t UTF-8 COPYRIGHT.ks > COPYRIGHT.ko
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%post
|
||
|
if [ -x %{_bindir}/fc-cache ]; then
|
||
|
%{_bindir}/fc-cache %{_datadir}/fonts
|
||
|
fi
|
||
|
:
|
||
|
|
||
|
%postun
|
||
|
if [ "$1" = "0" ]; then
|
||
|
if [ -x %{_bindir}/fc-cache ]; then
|
||
|
%{_bindir}/fc-cache %{_datadir}/fonts
|
||
|
fi
|
||
|
fi
|
||
|
:
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_sysconfdir}/fonts/conf.avail/*-baekmuk-ttf-*.conf
|
||
|
%{_sysconfdir}/fonts/conf.d/*-baekmuk-ttf-*.conf
|
||
|
%dir %{fontdir}
|
||
|
%{fontdir}/*.ttf
|
||
|
%verify(not md5 size mtime) %{fontdir}/fonts.dir
|
||
|
%verify(not md5 size mtime) %{fontdir}/fonts.scale
|
||
|
%doc COPYRIGHT COPYRIGHT.ko README
|
||
|
|
||
|
%changelog
|
||
|
* Fri Feb 08 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2-4mamba
|
||
|
- updated fontconfig configuration files ti fix warnings with versions >= 2.10
|
||
|
|
||
|
* Thu Aug 02 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2-3mamba
|
||
|
- use mkfontscale instead of ttmkfdir
|
||
|
|
||
|
* Mon Mar 28 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2-2mamba
|
||
|
- renamed from baekmuk-ttf-fonts to baekmuk-fonts-ttf
|
||
|
|
||
|
* Mon Jan 24 2011 gil <puntogil@libero.it> 2.2-1mamba
|
||
|
- package created by autospec
|