From b3d15fdf23c337ad411ba533018c172a99c315dd Mon Sep 17 00:00:00 2001 From: David Kaspar [Dee'Kej] Date: Jan 03 2018 13:57:37 +0000 Subject: *-devel subpackage created This subpackage provides %{adobe_mappings_rootpath} macro, which is useful for many packages that are built against these files. --- diff --git a/adobe-mappings-pdf.spec b/adobe-mappings-pdf.spec index 30d1432..f183d1e 100644 --- a/adobe-mappings-pdf.spec +++ b/adobe-mappings-pdf.spec @@ -1,7 +1,7 @@ Name: adobe-mappings-pdf Summary: PDF mapping resources from Adobe Version: 20170901 -Release: 1%{?dist} +Release: 2%{?dist} License: BSD 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) 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 ====================================================== # NOTE: This package provides only resource files, which are already @@ -34,6 +46,13 @@ to function properly. %install %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 ================================================== %files @@ -47,8 +66,14 @@ to function properly. %{_datadir}/adobe/resources/mapping/pdf2other %{_datadir}/adobe/resources/mapping/pdf2unicode +%files devel +%{_rpmconfigdir}/macros.d/macros.%{name} + # ============================================================================= %changelog +* Wed Jan 03 2018 David Kaspar [Dee'Kej] - 20170901-2 +- *-devel subpackage added + * Tue Sep 12 2017 David Kaspar [Dee'Kej] - 20170901-1 - Initial version of specfile