Blame SPECS/adobe-mappings-pdf.spec

e116ba
Name:             adobe-mappings-pdf
e116ba
Summary:          PDF mapping resources from Adobe
e116ba
Version:          20180407
e116ba
Release:          1%{?dist}
e116ba
License:          BSD
e116ba
e116ba
URL:              https://www.adobe.com/
e116ba
Source:           https://github.com/adobe-type-tools/mapping-resources-pdf/archive/%{version}.tar.gz#/mapping-resources-pdf-%{version}.tar.gz
e116ba
e116ba
BuildArch:        noarch
e116ba
BuildRequires:    git
e116ba
e116ba
%description
e116ba
Mapping resources for PDF have a variety of functions, such as mapping CIDs
e116ba
(Character IDs) to character codes, or mapping character codes to other
e116ba
character codes.
e116ba
e116ba
These mapping resources for PDF should not be confused with CMap resources.
e116ba
While both types of resources share the same file structure and syntax, they
e116ba
have very different functions.
e116ba
e116ba
These PDF mapping resources are useful for some applications (e.g. Ghostscript)
e116ba
to function properly.
e116ba
e116ba
# === SUBPACKAGES =============================================================
e116ba
e116ba
%package devel
e116ba
Summary:          RPM macros for Adobe's PDF mapping resources
e116ba
Requires:         %{name} = %{version}-%{release}
e116ba
e116ba
%description devel
e116ba
This package is useful for Fedora development purposes only. It installs RPM
e116ba
macros useful for building packages against %{name},
e116ba
as well as all the fonts contained in this font set.
e116ba
e116ba
e116ba
# === BUILD INSTRUCTIONS ======================================================
e116ba
e116ba
# NOTE: This package provides only resource files, which are already
e116ba
#       "pre-compiled" to smallest size possible, but they still remain in
e116ba
#       postscript format as intended. That's why there is no %%build phase.
e116ba
e116ba
%prep
e116ba
%autosetup -n mapping-resources-pdf-%{version} -S git
e116ba
e116ba
%install
e116ba
%make_install prefix=%{_prefix}
e116ba
e116ba
# Generate the macro containing the root path to our mappings files:
e116ba
install -m 0755 -d %{buildroot}%{_rpmconfigdir}/macros.d
e116ba
e116ba
cat > %{buildroot}%{_rpmconfigdir}/macros.d/macros.%{name} << _EOF
e116ba
%%adobe_mappings_rootpath     %{_datadir}/adobe/resources/mapping/
e116ba
_EOF
e116ba
e116ba
# === PACKAGING INSTRUCTIONS ==================================================
e116ba
e116ba
%files
e116ba
%doc README.md
e116ba
%license LICENSE.txt
e116ba
e116ba
%dir %{_datadir}/adobe
e116ba
%dir %{_datadir}/adobe/resources
e116ba
%dir %{_datadir}/adobe/resources/mapping
e116ba
e116ba
%{_datadir}/adobe/resources/mapping/pdf2other
e116ba
%{_datadir}/adobe/resources/mapping/pdf2unicode
e116ba
e116ba
%files devel
e116ba
%{_rpmconfigdir}/macros.d/macros.%{name}
e116ba
e116ba
# =============================================================================
e116ba
e116ba
%changelog
e116ba
* Tue Apr 24 2018 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 20180407-1
e116ba
- Rebase to latest upstream version
e116ba
e116ba
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20170901-3
e116ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e116ba
e116ba
* Wed Jan 03 2018 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 20170901-2
e116ba
- *-devel subpackage added
e116ba
e116ba
* Tue Sep 12 2017 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 20170901-1
e116ba
- Initial version of specfile