[ghostscript-chinese] import package
Peng Wu
pwu at fedoraproject.org
Mon Aug 30 04:59:27 UTC 2010
commit 1705b03da53a542529c6f740fa9a56d83a197b1d
Author: Peng Wu <alexepico at gmail.com>
Date: Mon Aug 30 13:03:24 2010 +0800
import package
.gitignore | 1 +
ghostscript-chinese.spec | 111 ++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 113 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c207815 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ghostscript-chinese-0.3.1.tar.gz
diff --git a/ghostscript-chinese.spec b/ghostscript-chinese.spec
new file mode 100644
index 0000000..07a2ac0
--- /dev/null
+++ b/ghostscript-chinese.spec
@@ -0,0 +1,111 @@
+%define common_desc \
+ghostscript font configuration files for Chinese fonts.
+
+
+%define gsdir %{_datadir}/ghostscript/conf.d
+%define umingver 0.2.20080216.1
+%define ukaiver 0.2.20080216.1
+%define zenheiver 0.9.45
+
+Name: ghostscript-chinese
+Version: 0.3.1
+Release: 1%{?dist}
+Summary: Ghostscript Chinese fonts configuration files
+Group: User Interface/X
+License: GPLv2+
+URL: http://www.freedesktop.org/wiki/Software/CJKUnifonts
+Source0: http://pwu.fedorapeople.org/ghostscript-chinese/ghostscript-chinese-%{version}.tar.gz
+BuildArch: noarch
+
+#BuildRequires:
+Provides: cjkuni-fonts-ghostscript = %{version}
+Obsoletes: cjkuni-fonts-ghostscript < 0.2.20080216.1-45
+%description
+%common_desc
+
+
+%package zh_CN
+Summary: Ghostscript Simplified Chinese fonts configuration files
+Group: User Interface/X
+Requires: ghostscript
+Requires: wqy-zenhei-fonts = %{zenheiver}
+Requires: ghostscript-chinese = %{version}-%{release}
+
+%description zh_CN
+%common_desc
+
+For Simplified Chinese.
+
+%package zh_TW
+Summary: Ghostscript Traditional Chinese fonts configuration files
+Group: User Interface/X
+Requires: ghostscript
+Requires: cjkuni-uming-fonts = %{umingver}
+Requires: cjkuni-ukai-fonts = %{ukaiver}
+Requires: ghostscript-chinese = %{version}-%{release}
+
+%description zh_TW
+%common_desc
+
+For Traditional Chinese.
+
+%prep
+%setup -q -c -n %{name}-%{version}
+
+
+%build
+%{nil}
+
+
+%install
+install -m 0755 -d %{buildroot}%{gsdir}
+
+#Note modify the absolute path of zenhei fonts in ghostscript files.
+for gscid in `ls *.zh_CN`
+do
+ cat $gscid | sed --expression='s/###zenheiloc###/\/usr\/share\/fonts\/wqy-zenhei/g' > tmp_gs
+ mv tmp_gs $gscid
+ install -m 0644 -p $gscid %{buildroot}%{gsdir}
+done
+
+#Note modify the absolute path of uming/ukai fonts in ghostscript files.
+for gscid in `ls *.zh_TW`
+do
+ cat $gscid | sed --expression='s/###ukailoc###/\/usr\/share\/fonts\/cjkuni-ukai/g' --expression='s/###umingloc###/\/usr\/share\/fonts\/cjkuni-uming/g' > tmp_gs
+ mv tmp_gs $gscid
+ install -m 0644 -p $gscid %{buildroot}%{gsdir}
+done
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING
+%doc README
+
+%files zh_CN
+%defattr(-,root,root,-)
+%{gsdir}/FAPIcidfmap.zh_CN
+%{gsdir}/cidfmap.zh_CN
+%{gsdir}/CIDFnmap.zh_CN
+
+%files zh_TW
+%defattr(-,root,root,-)
+%{gsdir}/FAPIcidfmap.zh_TW
+%{gsdir}/cidfmap.zh_TW
+%{gsdir}/CIDFnmap.zh_TW
+
+
+
+%changelog
+* Tue Aug 10 2010 Peng Wu <pwu at redhat.com> - 0.3.1-1
+- Renamed from cjkuni-fonts-ghostscript.
+
+* Fri Jul 23 2010 Peng Wu <pwu at redhat.com> - 0.3-1
+- Add license file.
+
+* Mon Jul 19 2010 Peng Wu <pwu at redhat.com> - 0.2.20080216.1-44
+- Clean up the spec.
+
+* Tue Jul 13 2010 Peng Wu <pwu at redhat.com> - 0.2.20080216.1-43
+- The Initial Version.
+ Split from cjkuni-fonts.
diff --git a/sources b/sources
index e69de29..bd5c08b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ddd725a6db893526ab152d6e274dd277 ghostscript-chinese-0.3.1.tar.gz
More information about the scm-commits
mailing list