Blame SPECS/adobe-mappings-cmap.spec

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