268450
Name:             adobe-mappings-cmap
268450
Summary:          CMap resources for Adobe's character collections
268450
Version:          20171205
268450
Release:          3%{?dist}
268450
License:          BSD
268450
268450
URL:              https://www.adobe.com/
268450
Source:           https://github.com/adobe-type-tools/cmap-resources/archive/%{version}.tar.gz#/cmap-resources-%{version}.tar.gz
268450
268450
BuildArch:        noarch
268450
BuildRequires:    git
268450
268450
%description
268450
CMap (Character Map) resources are used to unidirectionally map character codes,
268450
such as Unicode encoding form, to CIDs (Character IDs -- meaning glyphs) of a
268450
CIDFont resource.
268450
268450
These CMap resources are useful for some applications (e.g. Ghostscript) to
268450
correctly display text containing Japanese, (Traditional) Chinese, or Korean
268450
characters.
268450
268450
# === SUBPACKAGES =============================================================
268450
268450
%package deprecated
268450
Summary:          Deprecated CMap resources for Adobe's character collections
268450
Requires:         %{name} = %{version}-%{release}
268450
268450
%description deprecated
268450
This sub-package contains currently deprecated CMap resources that some
268450
applications might still require to function properly.
268450
268450
%package devel
268450
Summary:          RPM macros for Adobe's CMap resources for character collections
268450
Requires:         %{name} = %{version}-%{release}
268450
Requires:         %{name}-deprecated = %{version}-%{release}
268450
268450
%description devel
268450
This package is useful for Fedora development purposes only. It installs RPM
268450
macros useful for building packages against %{name},
268450
as well as all the fonts contained in this font set.
268450
268450
# === BUILD INSTRUCTIONS ======================================================
268450
268450
# NOTE: This package provides only resource files, which are already
268450
#       "pre-compiled" to smallest size possible, but they still remain in
268450
#       postscript format as intended. That's why there is no %%build phase.
268450
268450
%prep
268450
%autosetup -n cmap-resources-%{version} -S git
268450
268450
%install
268450
%make_install prefix=%{_prefix}
268450
268450
# Generate the macro containing the root path to our mappings files:
268450
install -m 0755 -d %{buildroot}%{_rpmconfigdir}/macros.d
268450
268450
cat > %{buildroot}%{_rpmconfigdir}/macros.d/macros.%{name} << _EOF
268450
%%adobe_mappings_rootpath     %{_datadir}/adobe/resources/mapping/
268450
_EOF
268450
268450
# === PACKAGING INSTRUCTIONS ==================================================
268450
268450
%files
268450
%doc README.md VERSIONS.txt
268450
%license LICENSE.txt
268450
268450
# Necessary directories ownership (to remove them correctly when uninstalling):
268450
%dir %{_datadir}/adobe
268450
%dir %{_datadir}/adobe/resources
268450
%dir %{_datadir}/adobe/resources/mapping
268450
268450
%{_datadir}/adobe/resources/mapping/CNS1
268450
%{_datadir}/adobe/resources/mapping/GB1
268450
%{_datadir}/adobe/resources/mapping/Identity
268450
%{_datadir}/adobe/resources/mapping/Japan1
268450
%{_datadir}/adobe/resources/mapping/Korea1
268450
268450
%files deprecated
268450
%{_datadir}/adobe/resources/mapping/deprecated
268450
268450
%files devel
268450
%{_rpmconfigdir}/macros.d/macros.%{name}
268450
268450
# =============================================================================
268450
268450
%changelog
268450
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20171205-3
268450
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
268450
268450
* Wed Jan 03 2018 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 20171205-2
268450
- *-devel subpackage added
268450
268450
* Tue Jan 02 2018 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 20171205-1
268450
- Rebase to latest upstream version
268450
268450
* Thu Nov 09 2017 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 20171024-1
268450
- Rebase to latest upstream version
268450
268450
* Mon Sep 11 2017 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 20170901-1
268450
- Initial version of specfile