Blame SPECS/adobe-mappings-cmap.spec

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