adobe-mappings-pdf/adobe-mappings-pdf.spec
David Kaspar [Dee'Kej] b3d15fdf23 *-devel subpackage created
This subpackage provides %{adobe_mappings_rootpath} macro, which
  is useful for many packages that are built against these files.
2018-01-03 14:57:37 +01:00

80 lines
2.6 KiB
RPMSpec

Name: adobe-mappings-pdf
Summary: PDF mapping resources from Adobe
Version: 20170901
Release: 2%{?dist}
License: BSD
URL: https://www.adobe.com/
Source: https://github.com/adobe-type-tools/mapping-resources-pdf/archive/%{version}.tar.gz#/mapping-resources-pdf-%{version}.tar.gz
BuildArch: noarch
BuildRequires: git
%description
Mapping resources for PDF have a variety of functions, such as mapping CIDs
(Character IDs) to character codes, or mapping character codes to other
character codes.
These mapping resources for PDF should not be confused with CMap resources.
While both types of resources share the same file structure and syntax, they
have very different functions.
These PDF mapping resources are useful for some applications (e.g. Ghostscript)
to function properly.
# === SUBPACKAGES =============================================================
%package devel
Summary: RPM macros for Adobe's PDF mapping resources
Requires: %{name} = %{version}-%{release}
%description devel
This package is useful for Fedora 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 mapping-resources-pdf-%{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
%license LICENSE.txt
%dir %{_datadir}/adobe
%dir %{_datadir}/adobe/resources
%dir %{_datadir}/adobe/resources/mapping
%{_datadir}/adobe/resources/mapping/pdf2other
%{_datadir}/adobe/resources/mapping/pdf2unicode
%files devel
%{_rpmconfigdir}/macros.d/macros.%{name}
# =============================================================================
%changelog
* Wed Jan 03 2018 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 20170901-2
- *-devel subpackage added
* Tue Sep 12 2017 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 20170901-1
- Initial version of specfile