updated fontconfig configuration files ti fix warnings with versions >= 2.10 [release 2.2-4mamba;Fri Feb 08 2013]
This commit is contained in:
parent
060d289c07
commit
ae55afc770
@ -1,2 +1,4 @@
|
||||
# baekmuk-fonts-ttf
|
||||
|
||||
This package provides the free Korean TrueType fonts (Batang, Dotum, Gulim, Headline).
|
||||
|
||||
|
97
baekmuk-fonts-ttf.spec
Normal file
97
baekmuk-fonts-ttf.spec
Normal file
@ -0,0 +1,97 @@
|
||||
# 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
|
24
baekmuk-ttf-fonts-2.2-batang-1.conf
Normal file
24
baekmuk-ttf-fonts-2.2-batang-1.conf
Normal file
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
|
||||
<fontconfig>
|
||||
<match>
|
||||
<test name="lang">
|
||||
<string>ko-kr</string>
|
||||
</test>
|
||||
<test name="lang">
|
||||
<string>ko</string>
|
||||
</test>
|
||||
<test name="family">
|
||||
<string>serif</string>
|
||||
</test>
|
||||
<edit name="family" mode="prepend">
|
||||
<string>Baekmuk Batang</string>
|
||||
</edit>
|
||||
</match>
|
||||
<alias>
|
||||
<family>Baekmuk Batang</family>
|
||||
<default>
|
||||
<family>serif</family>
|
||||
</default>
|
||||
</alias>
|
||||
</fontconfig>
|
24
baekmuk-ttf-fonts-2.2-dotum-1.conf
Normal file
24
baekmuk-ttf-fonts-2.2-dotum-1.conf
Normal file
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
|
||||
<fontconfig>
|
||||
<match>
|
||||
<test name="lang">
|
||||
<string>ko-kr</string>
|
||||
</test>
|
||||
<test name="lang">
|
||||
<string>ko</string>
|
||||
</test>
|
||||
<test name="family">
|
||||
<string>sans-serif</string>
|
||||
</test>
|
||||
<edit name="family" mode="prepend">
|
||||
<string>Baekmuk Dotum</string>
|
||||
</edit>
|
||||
</match>
|
||||
<alias>
|
||||
<family>Baekmuk Dotum</family>
|
||||
<default>
|
||||
<family>sans-serif</family>
|
||||
</default>
|
||||
</alias>
|
||||
</fontconfig>
|
24
baekmuk-ttf-fonts-2.2-gulim-1.conf
Normal file
24
baekmuk-ttf-fonts-2.2-gulim-1.conf
Normal file
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
|
||||
<fontconfig>
|
||||
<match>
|
||||
<test name="lang">
|
||||
<string>ko-kr</string>
|
||||
</test>
|
||||
<test name="lang">
|
||||
<string>ko</string>
|
||||
</test>
|
||||
<test name="family">
|
||||
<string>monospace</string>
|
||||
</test>
|
||||
<edit name="family" mode="prepend">
|
||||
<string>Baekmuk Gulim</string>
|
||||
</edit>
|
||||
</match>
|
||||
<alias>
|
||||
<family>Baekmuk Gulim</family>
|
||||
<default>
|
||||
<family>monospace</family>
|
||||
</default>
|
||||
</alias>
|
||||
</fontconfig>
|
7
baekmuk-ttf-fonts-2.2-hline.conf
Normal file
7
baekmuk-ttf-fonts-2.2-hline.conf
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||
<fontconfig>
|
||||
<!--
|
||||
this conf file is intended empty
|
||||
-->
|
||||
</fontconfig>
|
Loading…
Reference in New Issue
Block a user