Blame SPECS/adobe-mappings-pdf.spec

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