Hello community,

here is the log from the commit of package ghostscript-fonts-grops for 
openSUSE:Factory checked in at 2015-11-04 15:32:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghostscript-fonts-grops (Old)
 and      /work/SRC/openSUSE:Factory/.ghostscript-fonts-grops.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghostscript-fonts-grops"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/ghostscript-fonts-grops/ghostscript-fonts-grops.changes
  2014-02-28 07:20:38.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghostscript-fonts-grops.new/ghostscript-fonts-grops.changes
     2015-11-04 15:32:53.000000000 +0100
@@ -1,0 +2,6 @@
+Wed Oct 28 17:06:32 CET 2015 - ti...@suse.de
+
+- dynamically create requires to groff with the version instead of
+  hardcoding in spec file
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghostscript-fonts-grops.spec ++++++
--- /var/tmp/diff_new_pack.HOcSaq/_old  2015-11-04 15:32:54.000000000 +0100
+++ /var/tmp/diff_new_pack.HOcSaq/_new  2015-11-04 15:32:54.000000000 +0100
@@ -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 @@
 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 @@
 %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 @@
 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


Reply via email to