diff --git a/README.md b/README.md index 4eac13a..8f94c88 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # baekmuk-fonts-ttf +This package provides the free Korean TrueType fonts (Batang, Dotum, Gulim, Headline). + diff --git a/baekmuk-fonts-ttf.spec b/baekmuk-fonts-ttf.spec new file mode 100644 index 0000000..bba38f3 --- /dev/null +++ b/baekmuk-fonts-ttf.spec @@ -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 +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 2.2-4mamba +- updated fontconfig configuration files ti fix warnings with versions >= 2.10 + +* Thu Aug 02 2012 Silvan Calarco 2.2-3mamba +- use mkfontscale instead of ttmkfdir + +* Mon Mar 28 2011 Silvan Calarco 2.2-2mamba +- renamed from baekmuk-ttf-fonts to baekmuk-fonts-ttf + +* Mon Jan 24 2011 gil 2.2-1mamba +- package created by autospec diff --git a/baekmuk-ttf-fonts-2.2-batang-1.conf b/baekmuk-ttf-fonts-2.2-batang-1.conf new file mode 100644 index 0000000..46d2910 --- /dev/null +++ b/baekmuk-ttf-fonts-2.2-batang-1.conf @@ -0,0 +1,24 @@ + + + + + + ko-kr + + + ko + + + serif + + + Baekmuk Batang + + + + Baekmuk Batang + + serif + + + diff --git a/baekmuk-ttf-fonts-2.2-dotum-1.conf b/baekmuk-ttf-fonts-2.2-dotum-1.conf new file mode 100644 index 0000000..0bb332c --- /dev/null +++ b/baekmuk-ttf-fonts-2.2-dotum-1.conf @@ -0,0 +1,24 @@ + + + + + + ko-kr + + + ko + + + sans-serif + + + Baekmuk Dotum + + + + Baekmuk Dotum + + sans-serif + + + diff --git a/baekmuk-ttf-fonts-2.2-gulim-1.conf b/baekmuk-ttf-fonts-2.2-gulim-1.conf new file mode 100644 index 0000000..8e4fb6f --- /dev/null +++ b/baekmuk-ttf-fonts-2.2-gulim-1.conf @@ -0,0 +1,24 @@ + + + + + + ko-kr + + + ko + + + monospace + + + Baekmuk Gulim + + + + Baekmuk Gulim + + monospace + + + diff --git a/baekmuk-ttf-fonts-2.2-hline.conf b/baekmuk-ttf-fonts-2.2-hline.conf new file mode 100644 index 0000000..fdb78e0 --- /dev/null +++ b/baekmuk-ttf-fonts-2.2-hline.conf @@ -0,0 +1,7 @@ + + + + +