Blame SPECS/adobe-mappings-pdf.spec

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