rpms/cjkunifonts/devel CIDFnmap.zh_CN, NONE, 1.1 CIDFnmap.zh_TW, NONE, 1.1 FAPIcidfmap.zh_CN, NONE, 1.1 FAPIcidfmap.zh_TW, NONE, 1.1 cidfmap.zh_CN, NONE, 1.1 cidfmap.zh_TW, NONE, 1.1 cjkunifonts.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Caius Chance (cchance)
fedora-extras-commits at redhat.com
Fri Aug 31 01:20:53 UTC 2007
Author: cchance
Update of /cvs/pkgs/rpms/cjkunifonts/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18598/devel
Modified Files:
.cvsignore sources
Added Files:
CIDFnmap.zh_CN CIDFnmap.zh_TW FAPIcidfmap.zh_CN
FAPIcidfmap.zh_TW cidfmap.zh_CN cidfmap.zh_TW cjkunifonts.spec
Log Message:
Resolves: rhbz#253813 (Split uming and ukai to be a spearated package - cjkunifonts.)
--- NEW FILE CIDFnmap.zh_CN ---
%!
% Copyright (C) 2001 Taiji Yamada and gs-cjk project
%
% This file is part of GNU Ghostscript.
%
% GNU Ghostscript is distributed in the hope that it will be useful, but
% WITHOUT ANY WARRANTY. No author or distributor accepts responsibility
% to anyone for the consequences of using it or for whether it serves any
% particular purpose or works at all, unless he says so in writing. Refer
% to the GNU General Public License for full details.
%
% Everyone is granted permission to copy, modify and redistribute GNU
% Ghostscript, but only under the conditions described in the GNU General
% Public License. A copy of this license is supposed to have been given
% to you along with GNU Ghostscript so you can know your rights and
% responsibilities. It should be in a file named COPYING. Among other
% things, the copyright notice and this notice must be preserved on all
% copies.
% $Id: CIDFnmap.zh_CN,v 1.2 2003/05/23 04:42:46 llch Exp $
% CID fontmap for the Arphic trutype fonts
% See ftp://ftp.gnu.org/pub/non-gnu/chinese-fonts-truetype/LICENSE
% for license information regarding these fonts.
% Adobe-GB1
/BousungEG-Light-GB (/usr/share/fonts/cjkunifonts-uming/uming.ttf) ;
/GBZenKai-Medium (/usr/share/fonts/cjkunifonts-ukai/ukai.ttf) ;
/Adobe-GB1 /BousungEG-Light-GB ;
/MSungGBK-Light /BousungEG-Light-GB ;
--- NEW FILE CIDFnmap.zh_TW ---
%!
% Copyright (C) 2001 Taiji Yamada and gs-cjk project
%
% This file is part of GNU Ghostscript.
%
% GNU Ghostscript is distributed in the hope that it will be useful, but
% WITHOUT ANY WARRANTY. No author or distributor accepts responsibility
% to anyone for the consequences of using it or for whether it serves any
% particular purpose or works at all, unless he says so in writing. Refer
% to the GNU General Public License for full details.
%
% Everyone is granted permission to copy, modify and redistribute GNU
% Ghostscript, but only under the conditions described in the GNU General
% Public License. A copy of this license is supposed to have been given
% to you along with GNU Ghostscript so you can know your rights and
% responsibilities. It should be in a file named COPYING. Among other
% things, the copyright notice and this notice must be preserved on all
% copies.
% $Id: CIDFnmap.zh_TW,v 1.1 2003/03/31 15:44:38 tagoh Exp $
% CID fontmap for the Arphic trutype fonts
% See ftp://ftp.gnu.org/pub/non-gnu/chinese-fonts-truetype/LICENSE
% for license information regarding these fonts.
% Adobe-CNS1
/ZenKai-Medium (/usr/share/fonts/cjkunifonts-ukai/ukai.ttf) ;
/ShanHeiSun-Light (/usr/share/fonts/cjkunifonts-uming/uming.ttf) ;
/Adobe-CNS1 /ShanHeiSun-Light ;
--- NEW FILE FAPIcidfmap.zh_CN ---
%!
% 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.
%
/BousungEG-Light-GB << /Path (/usr/share/fonts/cjkunifonts-uming/uming.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(GB1) 4] >> ;
/GBZenKai-Medium << /Path (/usr/share/fonts/cjkunifonts-ukai/ukai.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(GB1) 4] >> ;
%
/MSungGBK-Light << /Path (/usr/share/fonts/cjkunifonts-uming/uming.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(GB1) 4] >> ;
/Adobe-GB1 << /Path (/usr/share/fonts/cjkunifonts-uming/uming.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(GB1) 4] >> ;
--- NEW FILE FAPIcidfmap.zh_TW ---
%!
% 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.
%
/ZenKai-Medium << /Path (/usr/share/fonts/chinese/cjkunifonts-ukai/ukai.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(CNS1) 4] >> ;
/ShanHeiSun-Light << /Path (/usr/share/fonts/chinese/cjkunifonts-uming/uming.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(CNS1) 4] >> ;
%
/Adobe-CNS1 << /Path (/usr/share/fonts/chinese/cjkunifonts-uming/uming.ttf) /CIDFontType 0 /FAPI /FreeType /CSI [(CNS1) 4] >> ;
--- NEW FILE cidfmap.zh_CN ---
/BousungEG-Light-GB << /FileType /TrueType /Path (/usr/share/fonts/cjkunifonts-uming/uming.ttf) /CSI [(GB1) 4] >> ;
/GBZenKai-Medium << /FileType /TrueType /Path (/usr/share/fonts/cjkunifonts-ukai/ukai.ttf) /CSI [(GB1) 4] >> ;
/MSungGBK-Light /BousungEG-Light-GB ;
/Adobe-GB1 /BousungEG-Light-GB ;
--- NEW FILE cidfmap.zh_TW ---
/ZenKai-Medium << /FileType /TrueType /Path (/usr/share/fonts/cjkunifonts-ukai/ukai.ttf) /CSI [(CNS1) 4] >> ;
/ShanHeiSun-Light << /FileType /TrueType /Path (/usr/share/fonts/cjkunifonts-uming/uming.ttf) /CSI [(CNS1) 4] >> ;
/Adobe-CNS1 /ShanHeiSun-Light ;
--- NEW FILE cjkunifonts.spec ---
%define umingfontdir %{_datadir}/fonts/%{name}-uming
%define ukaifontdir %{_datadir}/fonts/%{name}-ukai
%define cidmapdir %{_datadir}/ghostscript/conf.d
%define catalogue /etc/X11/fontpath.d
Name: cjkunifonts
Version: 0.1.20060928
Release: 3%{?dist}
Summary: Chinese TrueType Fonts -- Simplified and Traditional Chinese Ming and Kai Face
License: Arphic
Group: User Interface/X
URL: http://www.freedesktop.org/wiki/Software/CJKUnifonts
Source1: http://ftp.debian.org/debian/pool/main/t/ttf-arphic-uming/ttf-arphic-uming_%{version}.orig.tar.gz
Source2: http://ftp.debian.org/debian/pool/main/t/ttf-arphic-ukai/ttf-arphic-ukai_%{version}.orig.tar.gz
Source3: FAPIcidfmap.zh_TW
Source4: FAPIcidfmap.zh_CN
Source5: cidfmap.zh_TW
Source6: cidfmap.zh_CN
Source7: CIDFnmap.zh_TW
Source8: CIDFnmap.zh_CN
BuildRequires: xorg-x11-font-utils
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Chinese Unicode TrueType fonts derived from the original fonts generously made
available by Arphic Technology under the "Arphic Public License" and extended
by the CJK Unifonts project.
%package uming
Summary: Chinese Uming style face TrueType Font
License: Arphic
Group: User Interface/X
Conflicts: fonts-chinese <= 3.03-9.fc8
Obsoletes: ttfonts-zh_CN <= 2.14-10, ttfonts-zh_TW <= 2.11-28
%description uming
Chinese Uming style face TrueType Font derived from the original fonts released
by Arphic Technology and extended by the CJK Unifonts project.
%package ukai
Summary: Chinese Ukai style face TrueType font
License: Arphic
Group: User Interface/X
Conflicts: fonts-chinese <= 3.03-9.fc8
Obsoletes: ttfonts-zh_CN <= 2.14-10, ttfonts-zh_TW <= 2.11-28
%description ukai
Chinese Ukai style face TrueType Font derived from the original fonts released
by Arphic Technology and extended by the CJK Unifonts project.
%prep
%setup -q -T -c -a1 -a2
%build
%{nil}
%install
rm -rf $RPM_BUILD_ROOT
# dirs
install -d $RPM_BUILD_ROOT%{catalogue}
install -d $RPM_BUILD_ROOT%{umingfontdir}
install -d $RPM_BUILD_ROOT%{ukaifontdir}
# ttfs
install -m 0644 ttf-arphic-uming-%{version}/uming.ttf $RPM_BUILD_ROOT%{umingfontdir}/
install -m 0644 ttf-arphic-ukai-%{version}/ukai.ttf $RPM_BUILD_ROOT%{ukaifontdir}/
# fonts.{scale,dir}
%{_bindir}/ttmkfdir -d $RPM_BUILD_ROOT%{umingfontdir} -o $RPM_BUILD_ROOT%{umingfontdir}/fonts.scale
mkfontdir $RPM_BUILD_ROOT%{umingfontdir}
%{_bindir}/ttmkfdir -d $RPM_BUILD_ROOT%{ukaifontdir} -o $RPM_BUILD_ROOT%{ukaifontdir}/fonts.scale
mkfontdir $RPM_BUILD_ROOT%{ukaifontdir}
# backward compat
install -d $RPM_BUILD_ROOT%{_datadir}/fonts/zh_CN/TrueType
install -d $RPM_BUILD_ROOT%{_datadir}/fonts/zh_TW/TrueType
ln -s ../../%{name}-uming/uming.ttf $RPM_BUILD_ROOT%{_datadir}/fonts/zh_CN/TrueType/zysong.ttf
ln -s ../../%{name}-uming/uming.ttf $RPM_BUILD_ROOT%{_datadir}/fonts/zh_TW/TrueType/bsmi00lp.ttf
# catalogue
ln -s %{umingfontdir} $RPM_BUILD_ROOT%{catalogue}/%{name}-uming
ln -s %{ukaifontdir} $RPM_BUILD_ROOT%{catalogue}/%{name}-ukai
# ghostscript
install -d $RPM_BUILD_ROOT%{cidmapdir}
install -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{cidmapdir}/
install -m 0644 %{SOURCE4} $RPM_BUILD_ROOT%{cidmapdir}/
install -m 0644 %{SOURCE5} $RPM_BUILD_ROOT%{cidmapdir}/
install -m 0644 %{SOURCE6} $RPM_BUILD_ROOT%{cidmapdir}/
install -m 0644 %{SOURCE7} $RPM_BUILD_ROOT%{cidmapdir}/
install -m 0644 %{SOURCE8} $RPM_BUILD_ROOT%{cidmapdir}/
%clean
rm -rf $RPM_BUILD_ROOT
%post uming
umask 133
if [ -x %{_bindir}/fc-cache ]; then
%{_bindir}/fc-cache %{umingfontdir}
fi
%post ukai
umask 133
if [ -x %{_bindir}/fc-cache ]; then
%{_bindir}/fc-cache %{ukaifontdir}
fi
%postun uming
if [ "$1" = 0 ]; then
umask 133
if [ -x %{_bindir}/fc-cache ]; then
%{_bindir}/fc-cache %{_datadir}/fonts
fi
fi
%postun ukai
if [ "$1" = 0 ]; then
umask 133
if [ -x %{_bindir}/fc-cache ]; then
%{_bindir}/fc-cache %{_datadir}/fonts
fi
fi
%files uming
%defattr(-,root,root,-)
%doc ttf-arphic-uming-%{version}/license
%dir %{umingfontdir}
%dir %{_datadir}/fonts/zh_CN
%dir %{_datadir}/fonts/zh_TW
%dir %{_datadir}/fonts/zh_CN/TrueType
%dir %{_datadir}/fonts/zh_TW/TrueType
%{umingfontdir}/*.ttf
%{cidmapdir}/FAPIcidfmap.zh_TW
%{cidmapdir}/FAPIcidfmap.zh_CN
%{cidmapdir}/cidfmap.zh_TW
%{cidmapdir}/cidfmap.zh_CN
%{cidmapdir}/CIDFnmap.zh_TW
%{cidmapdir}/CIDFnmap.zh_CN
%verify(not md5 size mtime) %{umingfontdir}/fonts.dir
%verify(not md5 size mtime) %{umingfontdir}/fonts.scale
%verify(not md5 size mtime) %{_datadir}/fonts/zh_CN/TrueType/zysong.ttf
%verify(not md5 size mtime) %{_datadir}/fonts/zh_TW/TrueType/bsmi00lp.ttf
%{catalogue}/%{name}-uming
%files ukai
%defattr(-,root,root,-)
%doc ttf-arphic-ukai-%{version}/license
%dir %{ukaifontdir}
%{ukaifontdir}/*.ttf
%{cidmapdir}/FAPIcidfmap.zh_TW
%{cidmapdir}/FAPIcidfmap.zh_CN
%{cidmapdir}/cidfmap.zh_TW
%{cidmapdir}/cidfmap.zh_CN
%{cidmapdir}/CIDFnmap.zh_TW
%{cidmapdir}/CIDFnmap.zh_CN
%verify(not md5 size mtime) %{ukaifontdir}/fonts.dir
%verify(not md5 size mtime) %{ukaifontdir}/fonts.scale
%{catalogue}/%{name}-ukai
%changelog
* Wed Aug 30 2007 Caius Chance <cchance at redhat.com> - 0.1.20060928-3.fc8
- Resolved: rhbz#253813 (New package separated from fonts-chinese)
-- Fixed cidmap directory and package requirements.
* Wed Aug 29 2007 Caius Chance <cchance at redhat.com> - 0.1.20060928-2.fc8
- Resolved: rhbz#253813 (New package separated from fonts-chinese)
-- Moved uming and ukai into sub-packages.
-- Moved fc-cache from post section to install section.
-- Fixed ghostscript directory and backward compatibilities symlinks.
-- Refined .spec literal, license, versioning contents.
* Wed Aug 22 2007 Caius Chance <cchance at redhat.com> - 0.1.20060928-1.fc8
- Resolved: rhbz#253813 (New package separated from fonts-chinese)
-- Review preparation.
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/cjkunifonts/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 30 Aug 2007 23:30:25 -0000 1.1
+++ .cvsignore 31 Aug 2007 01:20:20 -0000 1.2
@@ -0,0 +1,2 @@
+ttf-arphic-ukai_0.1.20060928.orig.tar.gz
+ttf-arphic-uming_0.1.20060928.orig.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/cjkunifonts/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 30 Aug 2007 23:30:25 -0000 1.1
+++ sources 31 Aug 2007 01:20:20 -0000 1.2
@@ -0,0 +1,2 @@
+465b1350911f086a2021c36e039f79c8 ttf-arphic-ukai_0.1.20060928.orig.tar.gz
+4f2e5a4ba4cf3ac01518ea211a89fdc1 ttf-arphic-uming_0.1.20060928.orig.tar.gz
More information about the fedora-extras-commits
mailing list