From 4926c3867be895ce390a4b66fe508ce292b7e02b Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sep 24 2007 06:46:22 +0000 Subject: initial import of approved package (#300651) --- diff --git a/.cvsignore b/.cvsignore index e69de29..fc4364e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +baekmuk-ttf-2.2.tar.gz diff --git a/FAPIcidfmap.ko b/FAPIcidfmap.ko new file mode 100644 index 0000000..1a00fee --- /dev/null +++ b/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/batang.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(Korea1) 2] >> ; +/Baekmuk-Dotum << /Path (/usr/share/fonts/baekmuk-ttf-dotum/dotum.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(Korea1) 2] >> ; +/Baekmuk-Gulim << /Path (/usr/share/fonts/baekmuk-ttf-gulim/gulim.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(Korea1) 2] >> ; +/Baekmuk-Headline << /Path (/usr/share/fonts/baekmuk-ttf-hline/hline.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(Korea1) 2] >> ; +% +/Baekmuk-Batang-Regular << /Path (/usr/share/fonts/baekmuk-ttf-batang/batang.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(Korea1) 2] >> ; +/Baekmuk-Dotum-Regular << /Path (/usr/share/fonts/baekmuk-ttf-dotum/dotum.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(Korea1) 2] >> ; +/Baekmuk-Gulim-Regular << /Path (/usr/share/fonts/baekmuk-ttf-gulim/gulim.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(Korea1) 2] >> ; +/Baekmuk-Headline-Regular << /Path (/usr/share/fonts/baekmuk-ttf-hline/hline.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(Korea1) 2] >> ; +% +/Adobe-Korea1 << /Path (/usr/share/fonts/baekmuk-ttf-batang/batang.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(Korea1) 2] >> ; diff --git a/baekmuk-ttf-fonts.spec b/baekmuk-ttf-fonts.spec new file mode 100644 index 0000000..2a0d088 --- /dev/null +++ b/baekmuk-ttf-fonts.spec @@ -0,0 +1,126 @@ +%define upstreamname baekmuk-ttf + +%define ttfontdir %{_datadir}/fonts/%{upstreamname} +%define cidmapdir %{_datadir}/ghostscript/conf.d +%define catalogue %{_sysconfdir}/X11/fontpath.d + +Name: %{upstreamname}-fonts +Version: 2.2 +Release: 6%{?dist} +Summary: Free Korean TrueType fonts + +Group: User Interface/X +License: Baekmuk +URL: http://kldp.net/frs/?group_id=57&release_id=865 +Source0: http://kldp.net/frs/download.php/1429/%{upstreamname}-%{version}.tar.gz +Source1: FAPIcidfmap.ko +Source2: cidfmap.ko +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: xorg-x11-font-utils, ttmkfdir >= 3.0.6 + +%description +This package provides the free Korean TrueType fonts. + +%package common +Summary: Common files for Korean Baekmuk TrueType fonts +License: Baekmuk +Group: User Interface/X +Conflicts: fonts-korean < 2.2-5 + +%description common +This package contains some common files for Baekmuk Korean TrueType fonts. + +%define mk_pkg()\ +%package %1\ +Summary: Korean Baekmuk TrueType %2 typeface\ +License: Baekmuk\ +Group: User Interface/X\ +Obsoletes: ttfonts-ko < 1.0.11-33\ +Requires: %{name}-common\ +\ +%description %1\ +This package contains the Korean TrueType font %2 typeface.\ +\ +%post %1\ +if [ -x %{_bindir}/fc-cache ]; then\ + %{_bindir}/fc-cache %{_datadir}/fonts\ +fi\ +\ +%postun %1\ +if [ "$1" = "0" ]; then\ + if [ -x %{_bindir}/fc-cache ]; then\ + %{_bindir}/fc-cache %{_datadir}/fonts\ + fi\ +fi\ +\ +%files %1\ +%defattr(-,root,root,-)\ +%dir %{ttfontdir}-%1\ +%{ttfontdir}-%1/*.ttf\ +%verify(not md5 size mtime) %{ttfontdir}-%1/fonts.dir\ +%verify(not md5 size mtime) %{ttfontdir}-%1/fonts.scale\ +%{catalogue}/%{name}-%1 + +%mk_pkg batang Batang +%mk_pkg dotum Dotum +%mk_pkg gulim Gulim +%mk_pkg hline Headline + +%prep +%setup -q -n %{upstreamname}-%{version} + +%build +%{nil} + +%install +rm -rf $RPM_BUILD_ROOT + +# for catalogue +install -d $RPM_BUILD_ROOT%{catalogue} + +for i in batang dotum gulim hline; do + install -d $RPM_BUILD_ROOT%{ttfontdir}-$i + install -p -m 0644 ttf/$i.ttf $RPM_BUILD_ROOT%{ttfontdir}-$i + ln -sf ../../..%{ttfontdir}-$i $RPM_BUILD_ROOT%{catalogue}/%{name}-$i + %{_bindir}/ttmkfdir -d $RPM_BUILD_ROOT%{ttfontdir}-$i -o $RPM_BUILD_ROOT%{ttfontdir}-$i/fonts.scale + mkfontdir $RPM_BUILD_ROOT%{ttfontdir}-$i +done + +# for ghostscript +install -d $RPM_BUILD_ROOT%{cidmapdir} +install -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{cidmapdir}/ +install -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{cidmapdir}/ + +# convert Korean copyright file to utf8 +iconv -f EUC-KR -t UTF-8 COPYRIGHT.ks > COPYRIGHT.ko + +%clean +rm -rf $RPM_BUILD_ROOT + +%files common +%doc COPYRIGHT COPYRIGHT.ko README +%{cidmapdir}/ + +%changelog +* 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) diff --git a/cidfmap.ko b/cidfmap.ko new file mode 100644 index 0000000..424610a --- /dev/null +++ b/cidfmap.ko @@ -0,0 +1,10 @@ +/Baekmuk-Batang << /FileType /TrueType /Path (/usr/share/fonts/baekmuk-ttf-batang/batang.ttf) /CSI [(Korea1) 2] >> ; +/Baekmuk-Batang-Regular /Baekmuk-Batang ; +/Baekmuk-Dotum << /FileType /TrueType /Path (/usr/share/fonts/baekmuk-ttf-dotum/dotum.ttf) /CSI [(Korea1) 2] >> ; +/Baekmuk-Dotum-Regular /Baekmuk-Dotum ; +/Baekmuk-Gulim << /FileType /TrueType /Path (/usr/share/fonts/baekmuk-ttf-gulim/gulim.ttf) /CSI [(Korea1) 2] >> ; +/Baekmuk-Gulim-Regular /Baekmuk-Gulim ; +/Baekmuk-Headline << /FileType /TrueType /Path (/usr/share/fonts/baekmuk-ttf-hline/hline.ttf) /CSI [(Korea1) 2] >> ; +/Baekmuk-Headline-Regular /Baekmuk-Headline ; +/Adobe-Korea1 /Baekmuk-Batang ; + diff --git a/sources b/sources index e69de29..0b366c6 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a6f4349179cbe3557641782cefba4d70 baekmuk-ttf-2.2.tar.gz