*-devel subpackage created

This subpackage provides %{adobe_mappings_rootpath} macro, which
  is useful for many packages that are built against these files.
This commit is contained in:
David Kaspar [Dee'Kej] 2018-01-03 14:40:59 +01:00
parent f0cc4d98f2
commit b3d15fdf23

View File

@ -1,7 +1,7 @@
Name: adobe-mappings-pdf Name: adobe-mappings-pdf
Summary: PDF mapping resources from Adobe Summary: PDF mapping resources from Adobe
Version: 20170901 Version: 20170901
Release: 1%{?dist} Release: 2%{?dist}
License: BSD License: BSD
URL: https://www.adobe.com/ URL: https://www.adobe.com/
@ -22,6 +22,18 @@ have very different functions.
These PDF mapping resources are useful for some applications (e.g. Ghostscript) These PDF mapping resources are useful for some applications (e.g. Ghostscript)
to function properly. 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 ====================================================== # === BUILD INSTRUCTIONS ======================================================
# NOTE: This package provides only resource files, which are already # NOTE: This package provides only resource files, which are already
@ -34,6 +46,13 @@ to function properly.
%install %install
%make_install prefix=%{_prefix} %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 ================================================== # === PACKAGING INSTRUCTIONS ==================================================
%files %files
@ -47,8 +66,14 @@ to function properly.
%{_datadir}/adobe/resources/mapping/pdf2other %{_datadir}/adobe/resources/mapping/pdf2other
%{_datadir}/adobe/resources/mapping/pdf2unicode %{_datadir}/adobe/resources/mapping/pdf2unicode
%files devel
%{_rpmconfigdir}/macros.d/macros.%{name}
# ============================================================================= # =============================================================================
%changelog %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 * Tue Sep 12 2017 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 20170901-1
- Initial version of specfile - Initial version of specfile