diff --git a/.gitignore b/.gitignore index e69de29..1ef3b27 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,3 @@ +/cmap-resources-20170901.tar.gz +/cmap-resources-20171024.tar.gz +/cmap-resources-20171205.tar.gz diff --git a/README.md b/README.md new file mode 100644 index 0000000..6452b5e --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# adobe-mappings-cmap + +CMap (Character Map) resources are used to unidirectionally map character codes, +such as Unicode encoding form, to CIDs (Character IDs -- meaning glyphs) of a +CIDFont resource. + +These CMap resources are useful for some applications (e.g. Ghostscript) to +correctly display text containing Japanese, (Traditional) Chinese, or Korean +characters. \ No newline at end of file diff --git a/adobe-mappings-cmap.spec b/adobe-mappings-cmap.spec new file mode 100644 index 0000000..2a88f59 --- /dev/null +++ b/adobe-mappings-cmap.spec @@ -0,0 +1,118 @@ +Name: adobe-mappings-cmap +Summary: CMap resources for Adobe's character collections +Version: 20171205 +Release: 9%{?dist} +License: BSD + +URL: https://www.adobe.com/ +Source: https://github.com/adobe-type-tools/cmap-resources/archive/%{version}.tar.gz#/cmap-resources-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: git + +%description +CMap (Character Map) resources are used to unidirectionally map character codes, +such as Unicode encoding form, to CIDs (Character IDs -- meaning glyphs) of a +CIDFont resource. + +These CMap resources are useful for some applications (e.g. Ghostscript) to +correctly display text containing Japanese, (Traditional) Chinese, or Korean +characters. + +# === SUBPACKAGES ============================================================= + +%package deprecated +Summary: Deprecated CMap resources for Adobe's character collections +Requires: %{name} = %{version}-%{release} + +%description deprecated +This sub-package contains currently deprecated CMap resources that some +applications might still require to function properly. + +%package devel +Summary: RPM macros for Adobe's CMap resources for character collections +Requires: %{name} = %{version}-%{release} +Requires: %{name}-deprecated = %{version}-%{release} + +%description devel +This package is useful for development purposes only. It installs RPM +macros useful for building packages against %{name}, +as well as all the fonts contained in this font set. + +# === BUILD INSTRUCTIONS ====================================================== + +# NOTE: This package provides only resource files, which are already +# "pre-compiled" to smallest size possible, but they still remain in +# postscript format as intended. That's why there is no %%build phase. + +%prep +%autosetup -n cmap-resources-%{version} -S git + +%install +%make_install prefix=%{_prefix} + +# Generate the macro containing the root path to our mappings files: +install -m 0755 -d %{buildroot}%{_rpmconfigdir}/macros.d + +cat > %{buildroot}%{_rpmconfigdir}/macros.d/macros.%{name} << _EOF +%%adobe_mappings_rootpath %{_datadir}/adobe/resources/mapping/ +_EOF + +# === PACKAGING INSTRUCTIONS ================================================== + +%files +%doc README.md VERSIONS.txt +%license LICENSE.txt + +# Necessary directories ownership (to remove them correctly when uninstalling): +%dir %{_datadir}/adobe +%dir %{_datadir}/adobe/resources +%dir %{_datadir}/adobe/resources/mapping + +%{_datadir}/adobe/resources/mapping/CNS1 +%{_datadir}/adobe/resources/mapping/GB1 +%{_datadir}/adobe/resources/mapping/Identity +%{_datadir}/adobe/resources/mapping/Japan1 +%{_datadir}/adobe/resources/mapping/Korea1 + +%files deprecated +%{_datadir}/adobe/resources/mapping/deprecated + +%files devel +%{_rpmconfigdir}/macros.d/macros.%{name} + +# ============================================================================= + +%changelog +* Mon Jul 27 2020 Fedora Release Engineering - 20171205-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Mar 16 2020 Zdenek Dohnal - 20171205-8 +- remove mention of Fedora from desc + +* Tue Jan 28 2020 Fedora Release Engineering - 20171205-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Jul 24 2019 Fedora Release Engineering - 20171205-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 20171205-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jul 12 2018 Fedora Release Engineering - 20171205-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 20171205-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jan 03 2018 David Kaspar [Dee'Kej] - 20171205-2 +- *-devel subpackage added + +* Tue Jan 02 2018 David Kaspar [Dee'Kej] - 20171205-1 +- Rebase to latest upstream version + +* Thu Nov 09 2017 David Kaspar [Dee'Kej] - 20171024-1 +- Rebase to latest upstream version + +* Mon Sep 11 2017 David Kaspar [Dee'Kej] - 20170901-1 +- Initial version of specfile diff --git a/sources b/sources new file mode 100644 index 0000000..b9848ab --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (cmap-resources-20171205.tar.gz) = 30b7e03a1fed1003e6cdbadf9df11d2d7a2479114f7f68a539024d390a86d6c6372e1add3f34dd38e57a89da9f9d3e84c9a5b9899598d1bcfdfe5c84c1bb7b02