Blame SPECS/adobe-mappings-pdf.spec

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