diff --git a/.baekmuk-ttf-fonts.metadata b/.baekmuk-ttf-fonts.metadata new file mode 100644 index 0000000..8f71292 --- /dev/null +++ b/.baekmuk-ttf-fonts.metadata @@ -0,0 +1 @@ +afdee34f700007de6ea87b43c92a88b7385ba65b SOURCES/baekmuk-ttf-2.2.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..95710af --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/baekmuk-ttf-2.2.tar.gz diff --git a/SOURCES/FAPIcidfmap.ko b/SOURCES/FAPIcidfmap.ko new file mode 100644 index 0000000..1817065 --- /dev/null +++ b/SOURCES/FAPIcidfmap.ko @@ -0,0 +1,35 @@ +%! +% The map is a set of records like this : +% +% /CIDfont_name options_dict ; +% +% where options_dict is a dictionary with the following entries : +% +% Key Type Description +% Path string Absolute path to font file, or relative path to font file from +% the GS_EXTFONTPATH value. +% CIDFontType integer PostScript type for this CID font. Only 0 is currently allowed. +% Note that this is unrelated to the real type of the font file - +% the bridge will perform format conversion. +% FAPI name Name of the renderer to be used with the font. /AgfaUFST and +% /FreeType is now allowed -- depends on which options Ghostscript +% was built with. +% SubfontId integer (optional) Index of the font in font collection, such as FCO or TTC. +% It is being ignored if /Path doesn't specify a collection. +% CSI array Must have strongly 2 elements. +% The first element of the array specifies Ordering of CIDSystemInfo. +% The second element specifies Supplement of CIDSystemInfo. +% +% Use regular Postscript syntax. +% +/Baekmuk-Batang << /Path (/usr/share/fonts/baekmuk-ttf/batang.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(Korea1) 2] >> ; +/Baekmuk-Dotum << /Path (/usr/share/fonts/baekmuk-ttf/dotum.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(Korea1) 2] >> ; +/Baekmuk-Gulim << /Path (/usr/share/fonts/baekmuk-ttf/gulim.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(Korea1) 2] >> ; +/Baekmuk-Headline << /Path (/usr/share/fonts/baekmuk-ttf/hline.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(Korea1) 2] >> ; +% +/Baekmuk-Batang-Regular << /Path (/usr/share/fonts/baekmuk-ttf/batang.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(Korea1) 2] >> ; +/Baekmuk-Dotum-Regular << /Path (/usr/share/fonts/baekmuk-ttf/dotum.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(Korea1) 2] >> ; +/Baekmuk-Gulim-Regular << /Path (/usr/share/fonts/baekmuk-ttf/gulim.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(Korea1) 2] >> ; +/Baekmuk-Headline-Regular << /Path (/usr/share/fonts/baekmuk-ttf/hline.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(Korea1) 2] >> ; +% +/Adobe-Korea1 << /Path (/usr/share/fonts/baekmuk-ttf/batang.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(Korea1) 2] >> ; diff --git a/SOURCES/baekmuk-ttf-batang.conf b/SOURCES/baekmuk-ttf-batang.conf new file mode 100644 index 0000000..e390a04 --- /dev/null +++ b/SOURCES/baekmuk-ttf-batang.conf @@ -0,0 +1,21 @@ + + + + + + ko + + + serif + + + Baekmuk Batang + + + + Baekmuk Batang + + serif + + + diff --git a/SOURCES/baekmuk-ttf-dotum.conf b/SOURCES/baekmuk-ttf-dotum.conf new file mode 100644 index 0000000..6bb0ad4 --- /dev/null +++ b/SOURCES/baekmuk-ttf-dotum.conf @@ -0,0 +1,21 @@ + + + + + + ko + + + sans-serif + + + Baekmuk Dotum + + + + Baekmuk Dotum + + sans-serif + + + diff --git a/SOURCES/baekmuk-ttf-gulim.conf b/SOURCES/baekmuk-ttf-gulim.conf new file mode 100644 index 0000000..0a66f96 --- /dev/null +++ b/SOURCES/baekmuk-ttf-gulim.conf @@ -0,0 +1,21 @@ + + + + + + ko + + + monospace + + + Baekmuk Gulim + + + + Baekmuk Gulim + + monospace + + + diff --git a/SOURCES/baekmuk-ttf-hline.conf b/SOURCES/baekmuk-ttf-hline.conf new file mode 100644 index 0000000..fdb78e0 --- /dev/null +++ b/SOURCES/baekmuk-ttf-hline.conf @@ -0,0 +1,7 @@ + + + + + diff --git a/SOURCES/cidfmap.ko b/SOURCES/cidfmap.ko new file mode 100644 index 0000000..a893155 --- /dev/null +++ b/SOURCES/cidfmap.ko @@ -0,0 +1,10 @@ +/Baekmuk-Batang << /FileType /TrueType /Path (/usr/share/fonts/baekmuk-ttf/batang.ttf) /CSI [(Korea1) 2] >> ; +/Baekmuk-Batang-Regular /Baekmuk-Batang ; +/Baekmuk-Dotum << /FileType /TrueType /Path (/usr/share/fonts/baekmuk-ttf/dotum.ttf) /CSI [(Korea1) 2] >> ; +/Baekmuk-Dotum-Regular /Baekmuk-Dotum ; +/Baekmuk-Gulim << /FileType /TrueType /Path (/usr/share/fonts/baekmuk-ttf/gulim.ttf) /CSI [(Korea1) 2] >> ; +/Baekmuk-Gulim-Regular /Baekmuk-Gulim ; +/Baekmuk-Headline << /FileType /TrueType /Path (/usr/share/fonts/baekmuk-ttf/hline.ttf) /CSI [(Korea1) 2] >> ; +/Baekmuk-Headline-Regular /Baekmuk-Headline ; +/Adobe-Korea1 /Baekmuk-Batang ; + diff --git a/SPECS/baekmuk-ttf-fonts.spec b/SPECS/baekmuk-ttf-fonts.spec new file mode 100644 index 0000000..8cabc91 --- /dev/null +++ b/SPECS/baekmuk-ttf-fonts.spec @@ -0,0 +1,290 @@ +%global priority 65-2 +%global fontname baekmuk-ttf +%define archivename %{fontname}-%{version} +%define common_desc \ +This package provides the free Korean TrueType fonts. + +%define gsdir %{_datadir}/ghostscript/conf.d +%define catalogue %{_sysconfdir}/X11/fontpath.d + +Name: %{fontname}-fonts +Version: 2.2 +Release: 36%{?dist} +Summary: Free Korean TrueType fonts + +Group: User Interface/X +License: Baekmuk +URL: http://kldp.net/projects/baekmuk/ +Source0: http://kldp.net/frs/download.php/1429/%{archivename}.tar.gz +Source1: FAPIcidfmap.ko +Source2: cidfmap.ko +Source3: baekmuk-ttf-batang.conf +Source4: baekmuk-ttf-dotum.conf +Source5: baekmuk-ttf-gulim.conf +Source6: baekmuk-ttf-hline.conf + +Obsoletes: fonts-korean <= 2.2-23 +Provides: fonts-korean = %{version}-%{release} + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: fontpackages-devel >= 1.13 , xorg-x11-font-utils +BuildRequires: ttmkfdir >= 3.0.6 + +%description +%common_desc + +%package -n %{fontname}-batang-fonts +Summary: Korean Baekmuk TrueType Batang typeface +Group: User Interface/X +Obsoletes: %{name}-batang < 2.2-13 +Provides: %{name}-batang = %{version}-%{release} +Requires: %{fontname}-fonts-common = %{version}-%{release} + +%description -n %{fontname}-batang-fonts +%common_desc + +Batang is Korean TrueType font in Serif typeface. + +%_font_pkg -n batang -f *-%{fontname}-batang*.conf batang.ttf + +%package -n %{fontname}-dotum-fonts +Summary: Korean Baekmuk TrueType Dotum typeface +Group: User Interface/X +Obsoletes: %{name}-dotum < 2.2-13 +Provides: %{name}-dotum = %{version}-%{release} +Requires: %{fontname}-fonts-common = %{version}-%{release} + +%description -n %{fontname}-dotum-fonts +%common_desc + +Dotum is Korean TrueType font in San-serif typeface. + +%_font_pkg -n dotum -f *-%{fontname}-dotum*.conf dotum.ttf + +%package -n %{fontname}-gulim-fonts +Summary: Korean Baekmuk TrueType Gulim typeface +Group: User Interface/X +Obsoletes: %{name}-gulim < 2.2-13 +Provides: %{name}-gulim = %{version}-%{release} +Requires: %{fontname}-fonts-common = %{version}-%{release} + +%description -n %{fontname}-gulim-fonts +%common_desc + +Gulim is Korean TrueType font in Monospace typeface. + +%_font_pkg -n gulim -f *-%{fontname}-gulim*.conf gulim.ttf + +%package -n %{fontname}-hline-fonts +Summary: Korean Baekmuk TrueType Headline typeface +Group: User Interface/X +Obsoletes: %{name}-hline < 2.2-13 +Provides: %{name}-hline = %{version}-%{release} +Requires: %{fontname}-fonts-common = %{version}-%{release} + +%description -n %{fontname}-hline-fonts +%common_desc + +Headline is Korean TrueType font in Black face. + +%_font_pkg -n hline -f *-%{fontname}-hline*.conf hline.ttf + +%package -n %{fontname}-fonts-ghostscript +Summary: Ghostscript files for Korean Baekmuk TrueType fonts +Group: User Interface/X +Requires: ghostscript >= 8.63-4 +Requires: %{fontname}-batang-fonts = %{version}-%{release} +Requires: %{fontname}-dotum-fonts = %{version}-%{release} +Requires: %{fontname}-gulim-fonts = %{version}-%{release} +Requires: %{fontname}-hline-fonts = %{version}-%{release} + +%description -n %{fontname}-fonts-ghostscript +%common_desc + +This is ghostscript files for Baekmuk Korean TrueType fonts. + +%files -n %{fontname}-fonts-ghostscript +%defattr(-,root,root,-) +%{gsdir}/cidfmap.ko +%{gsdir}/FAPIcidfmap.ko + +%package -n %{fontname}-fonts-common +Summary: Common files for Korean Baekmuk TrueType fonts +Group: User Interface/X +Obsoletes: ttfonts-ko < 1.0.11-33, fonts-korean < 2.2-5 +Obsoletes: baekmuk-ttf-common-fonts < 2.2-17 +Provides: baekmuk-ttf-common-fonts = %{version}-%{release} +Provides: fonts-korean = %{version}-%{release} +Provides: ttfonts-ko = %{version}-%{release} +Requires: fontpackages-filesystem >= 1.13 +BuildRequires: fontpackages-filesystem >= 1.13 + +%description -n %{fontname}-fonts-common +%common_desc + +This is common files for Baekmuk Korean TrueType fonts. + +%files -n %{fontname}-fonts-common +%doc COPYRIGHT COPYRIGHT.ko README +%dir %{_fontdir} +%verify(not md5 size mtime) %{_fontdir}/fonts.dir +%verify(not md5 size mtime) %{_fontdir}/fonts.scale +%verify(not md5 size mtime) %{catalogue}/%{fontname} + +%prep +%setup -q -n %{archivename} + +%build +%{nil} + +%install +# font +%__install -d -m 0755 %{buildroot}%{_fontdir} +for i in batang dotum gulim hline; do + %__install -p -m 0644 ttf/$i.ttf %{buildroot}%{_fontdir} +done + +# fontconfig conf +%__install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} +%__install -m 0755 -d %{buildroot}%{_fontconfig_confdir} +cd ../ +for fconf in %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} +do + %__install -m 0644 $fconf %{buildroot}%{_fontconfig_templatedir}/%{priority}-$(basename $fconf) + %__ln_s %{_fontconfig_templatedir}/%{priority}-$(basename $fconf) \ + %{buildroot}%{_fontconfig_confdir}/%{priority}-$(basename $fconf) +done +cd - + +# fonts.{scale,dir} +%{_bindir}/ttmkfdir -d %{buildroot}%{_fontdir} \ + -o %{buildroot}%{_fontdir}/fonts.scale +%{_bindir}/mkfontdir %{buildroot}%{_fontdir} + +# ghostscript +%__install -d -m 0755 %{buildroot}%{gsdir} +%__install -p -m 0644 %{SOURCE1} %{buildroot}%{gsdir}/ +%__install -p -m 0644 %{SOURCE2} %{buildroot}%{gsdir}/ + +# catalogue +%__install -d -m 0755 %{buildroot}%{catalogue} +%__ln_s %{_fontdir} %{buildroot}%{catalogue}/%{fontname} + +# convert Korean copyright file to utf8 +%{_bindir}/iconv -f EUC-KR -t UTF-8 COPYRIGHT.ks > COPYRIGHT.ko + +%changelog +* Fri Dec 27 2013 Daniel Mach - 2.2-36 +- Mass rebuild 2013-12-27 + +* Wed Feb 13 2013 Fedora Release Engineering - 2.2-35 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Jul 18 2012 Fedora Release Engineering - 2.2-34 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Wed Jul 4 2012 Daiki Ueno - 2.2-33 +- fix usage in fontconfig files (Closes: #837526) + +* Mon Feb 6 2012 Daiki Ueno - 2.2-32 +- Update the priority. + nhn-nanum-fonts -> 65-0, un-core-fonts -> 65-1, baekmuk-ttf-fonts -> 65-2 +- Drop buildroot cleanup. +- Drop %%defattr(0644,root,root,0755) from %%files. + +* Thu Jan 12 2012 Fedora Release Engineering - 2.2-31 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Feb 07 2011 Fedora Release Engineering - 2.2-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed May 26 2010 Akira TAGOH - 2.2-29 +- Improve the fontconfig config file to match ko-kr as well. (#586306) +- sync NVR and fixes from RHEL-6. +- Update the priority. + +* Wed Apr 21 2010 Caius 'kaio' Chance - 2.2-25 +- Resolves: rhbz#578017 (Remove binding="same" from conf files.) + +* Wed Jan 13 2010 Caius 'kaio' Chance - 2.2-24.el6 +- Fixed rpmlint errors. +- Synchronized version number with another tree. + +* Fri Jul 24 2009 Fedora Release Engineering - 2.2-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Apr 08 2009 Caius 'kaio' Chance - 2.2-21.fc11 +- Resolves: rhbz#483327 (Fixed unowned directories.) + +* Mon Feb 23 2009 Fedora Release Engineering - 2.2-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Tue Feb 03 2009 Caius Chance - 2.2-19.fc11 +- Resolves: rhbz#483327 +- Reowned font directory by subpackage -common. +- Splited ghostscript files to subpackage -ghostscript. +- Updated paths in ghostscript files. + +* Mon Feb 02 2009 Caius Chance - 2.2-18.fc11 +- Updated fontconfig .conf files based on fontpackages templates. + +* Tue Jan 27 2009 Caius Chance - 2.2-17.fc11 +- Resolves: rhbz#477332 +- Fixed obsoletion of baekmuk-ttf-common-fonts. + +* Thu Jan 22 2009 Caius Chance - 2.2-16.fc11 +- Resolves: rhbz#477332 +- Refined dependencies. + +* Tue Jan 20 2009 Matthias Clasen - 2.2-15.fc11 +- Fix busted inter-subpackage dependencies + +* Tue Jan 20 2009 Caius Chance - 2.2-14.fc11 +- Resolves: rhbz#477332 +- Refined according to Mailhot's comments (477410) on liberaton fonts. + +* Mon Jan 19 2009 Caius Chance - 2.2-13.fc11 +- Resolves: rhbz#477332 +- Package renaming for post-1.13 fontpackages. + +* Fri Jan 16 2009 Caius Chance - 2.2-12.fc11 +- Resolves: rhbz#477332 (Repatched buildsys error.) + +* Fri Jan 16 2009 Caius Chance - 2.2-11.fc11 +- Resolves: rhbz#477332 (Included macro _font_pkg and created fontconfig .conf files.) + +* Fri Jan 09 2009 Caius Chance - 2.2-10.fc11 +- Resolves: rhbz#477332 (Converted to new font packaging guidelines.) + +* Mon Jun 30 2008 Caius Chance - 2.2-9.fc10 +- Refine obsoletes tag version-release specific. + +* Mon Jun 30 2008 Caius Chance - 2.2-8.fc10 +- Resolves: rhbz#453080 (fonts-korean is deprecated and should be removed.) + +* Wed Nov 14 2007 Jens Petersen - 2.2-7 +- better url +- use fontname and fontdir macros + +* Mon Sep 24 2007 Jens Petersen - 2.2-6 +- convert Korean copyright file to utf8 (Mamoru Tasaka, #300651) + +* Mon Sep 24 2007 Jens Petersen - 2.2-5 +- more fixes from Mamoru Tasaka, #300651: +- make common subpackage own ghostscript conf.d +- conflict with previous fonts-korean +- update CID font maps + +* Mon Sep 24 2007 Jens Petersen - 2.2-4 +- preserve timestamps of installed files (Mamoru Tasaka, #300651) +- add a common subpackage for shared files (Mamoru Tasaka, #300651) + +* Mon Sep 24 2007 Jens Petersen - 2.2-3 +- do not provide ttfonts-ko in subpackages (Mamoru Tasaka, #300651) + +* Sat Sep 22 2007 Jens Petersen - 2.2-2 +- license is now designated Baekmuk + +* Sat Sep 22 2007 Jens Petersen - 2.2-1 +- new package separated from fonts-korean (#253155)