diff --git a/ghostscript-fonts-grops.changes b/ghostscript-fonts-grops.changes index e6b2de5..d2b6220 100644 --- a/ghostscript-fonts-grops.changes +++ b/ghostscript-fonts-grops.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Oct 28 17:06:32 CET 2015 - tiwai@suse.de + +- dynamically create requires to groff with the version instead of + hardcoding in spec file + ------------------------------------------------------------------- Thu Feb 27 17:00:58 CET 2014 - tiwai@suse.de diff --git a/ghostscript-fonts-grops.spec b/ghostscript-fonts-grops.spec index 9f985c1..f14ee12 100644 --- a/ghostscript-fonts-grops.spec +++ b/ghostscript-fonts-grops.spec @@ -1,7 +1,7 @@ # # spec file for package ghostscript-fonts-grops # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,7 +20,6 @@ Name: ghostscript-fonts-grops Version: 1.22.2 Release: 0 Url: http://www.gnu.org/software/groff/groff.html -Requires: groff = %{version} Summary: Ghostscript fonts imported to groff for use with grops License: GPL-2.0 Group: Productivity/Publishing/Troff @@ -39,6 +38,9 @@ A version of PostScript® driver for Groff to support characters outside ISO Lat %prep %build +%define groff_version $(readlink %{_datadir}/groff/current) +%define _use_internal_dependency_generator 0 +%define __find_requires sh -c "echo groff = %{groff_version}; exec /usr/lib/rpm/find-requires"a %define gs_fonts %{_datadir}/ghostscript/fonts %define import_font() ln -s -T "%{gs_fonts}/%1.afm" "%2.afm" && pfbtopfa "%{gs_fonts}/%1.pfb" "devps/%1.pfa" @@ -66,8 +68,7 @@ echo "${fn}" "${pf}" done >>devps/download %install -groffver=$(readlink %{_datadir}/groff/current) -target="%{buildroot}%{_datadir}/groff/$groffver/font/gs" +target="%{buildroot}%{_datadir}/groff/%{groff_version}/font/gs" install -d "${target}" mv "-t${target}" devps mkdir -p %{buildroot}/etc/profile.d