Hello community, here is the log from the commit of package ghostscript for openSUSE:Factory checked in at 2019-08-24 18:39:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghostscript (Old) and /work/SRC/openSUSE:Factory/.ghostscript.new.7948 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghostscript" Sat Aug 24 18:39:36 2019 rev:41 rq:724779 version:9.27 Changes: -------- --- /work/SRC/openSUSE:Factory/ghostscript/ghostscript-mini.changes 2019-05-07 23:11:42.216013604 +0200 +++ /work/SRC/openSUSE:Factory/.ghostscript.new.7948/ghostscript-mini.changes 2019-08-24 18:39:37.465796461 +0200 @@ -1,0 +2,7 @@ +Tue Aug 13 12:38:45 UTC 2019 - Dr. Werner Fink <[email protected]> + +- Use update-alternatives to get the real ghostscript binary from + /usr/bin/gs to /usr/bin/gs.bin and allow the gswrap package to + use this with ist wrapper script + +------------------------------------------------------------------- --- /work/SRC/openSUSE:Factory/ghostscript/ghostscript.changes 2019-05-14 13:29:01.751130120 +0200 +++ /work/SRC/openSUSE:Factory/.ghostscript.new.7948/ghostscript.changes 2019-08-24 18:39:37.645796443 +0200 @@ -1,0 +2,7 @@ +Tue Aug 13 12:38:45 UTC 2019 - Dr. Werner Fink <[email protected]> + +- Use update-alternatives to get the real ghostscript binary from + /usr/bin/gs to /usr/bin/gs.bin and allow the gswrap package to + use this with ist wrapper script + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghostscript-mini.spec ++++++ --- /var/tmp/diff_new_pack.DomlwX/_old 2019-08-24 18:39:38.657796346 +0200 +++ /var/tmp/diff_new_pack.DomlwX/_new 2019-08-24 18:39:38.657796346 +0200 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -24,12 +24,15 @@ BuildRequires: libtiff-devel BuildRequires: libtool BuildRequires: pkg-config +BuildRequires: update-alternatives BuildRequires: zlib-devel %if 0%{?suse_version} >= 1500 BuildRequires: apparmor-abstractions BuildRequires: apparmor-rpm-macros Requires: apparmor-abstractions %endif +Requires(post): update-alternatives +Requires(preun): update-alternatives Summary: Minimal Ghostscript for minimal build requirements License: AGPL-3.0-only Group: System/Libraries @@ -321,19 +324,35 @@ install -m 644 catalog.devices $DOCDIR install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/apparmor.d/ghostscript +# Move /usr/bin/gs to /usr/bin/gs.bin to be able to use update-alternatives +install -d %buildroot%{_sysconfdir}/alternatives +mv %{buildroot}%{_bindir}/gs %{buildroot}%{_bindir}/gs.bin +ln -sf %{_bindir}/gs.bin %{buildroot}%{_sysconfdir}/alternatives/gs +ln -sf %{_sysconfdir}/alternatives/gs %{buildroot}%{_bindir}/gs + %post /sbin/ldconfig %if 0%{?suse_version} >= 1500 %apparmor_reload /etc/apparmor.d/ghostscript %endif +%{_sbindir}/update-alternatives \ + --install %{_bindir}/gs gs %{_bindir}/gs.bin 15 %postun -p /sbin/ldconfig +%preun +if test $1 -eq 0 ; then + %{_sbindir}/update-alternatives \ + --remove gs %{_bindir}/gs.bin +fi + %files %defattr(-, root, root) +%ghost %config %{_sysconfdir}/alternatives/gs %{_bindir}/dvipdf %{_bindir}/eps2eps %{_bindir}/gs +%{_bindir}/gs.bin %{_bindir}/gsbj %{_bindir}/gsdj %{_bindir}/gsdj500 ++++++ ghostscript.spec ++++++ --- /var/tmp/diff_new_pack.DomlwX/_old 2019-08-24 18:39:38.677796344 +0200 +++ /var/tmp/diff_new_pack.DomlwX/_new 2019-08-24 18:39:38.677796344 +0200 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -42,6 +42,7 @@ BuildRequires: libtiff-devel BuildRequires: libtool BuildRequires: pkg-config +BuildRequires: update-alternatives BuildRequires: xorg-x11-devel BuildRequires: xorg-x11-fonts BuildRequires: zlib-devel @@ -50,6 +51,8 @@ BuildRequires: apparmor-rpm-macros Requires: apparmor-abstractions %endif +Requires(post): update-alternatives +Requires(preun): update-alternatives Summary: The Ghostscript interpreter for PostScript and PDF License: AGPL-3.0-only Group: System/Libraries @@ -457,19 +460,35 @@ install -m 644 catalog.devices $DOCDIR install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/apparmor.d/ghostscript +# Move /usr/bin/gs to /usr/bin/gs.bin to be able to use update-alternatives +install -d %buildroot%{_sysconfdir}/alternatives +mv %{buildroot}%{_bindir}/gs %{buildroot}%{_bindir}/gs.bin +ln -sf %{_bindir}/gs.bin %{buildroot}%{_sysconfdir}/alternatives/gs +ln -sf %{_sysconfdir}/alternatives/gs %{buildroot}%{_bindir}/gs + %post /sbin/ldconfig %if 0%{?suse_version} >= 1500 %apparmor_reload /etc/apparmor.d/ghostscript %endif +%{_sbindir}/update-alternatives \ + --install %{_bindir}/gs gs %{_bindir}/gs.bin 15 %postun -p /sbin/ldconfig +%preun +if test $1 -eq 0 ; then + %{_sbindir}/update-alternatives \ + --remove gs %{_bindir}/gs.bin +fi + %files %defattr(-, root, root) +%ghost %config %{_sysconfdir}/alternatives/gs %{_bindir}/dvipdf %{_bindir}/eps2eps %{_bindir}/gs +%{_bindir}/gs.bin %{_bindir}/gsbj %{_bindir}/gsdj %{_bindir}/gsdj500
