Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gswrap for openSUSE:Factory checked 
in at 2025-09-29 16:31:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gswrap (Old)
 and      /work/SRC/openSUSE:Factory/.gswrap.new.11973 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gswrap"

Mon Sep 29 16:31:44 2025 rev:12 rq:1305220 version:0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/gswrap/gswrap.changes    2024-02-09 
23:54:33.475802661 +0100
+++ /work/SRC/openSUSE:Factory/.gswrap.new.11973/gswrap.changes 2025-09-29 
16:33:23.013324974 +0200
@@ -1,0 +2,6 @@
+Wed Jul 16 12:42:08 UTC 2025 - Dr. Werner Fink <[email protected]>
+
+- Switch over to libalternatives for gs.wrap to provide a gs
+  variant (bsc#1245896) 
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ gswrap.spec ++++++
--- /var/tmp/diff_new_pack.1qFIf4/_old  2025-09-29 16:33:23.489344923 +0200
+++ /var/tmp/diff_new_pack.1qFIf4/_new  2025-09-29 16:33:23.493345090 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package gswrap
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,11 @@
 #
 
 
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
 Name:           gswrap
 Version:        0.1
 Release:        0
@@ -29,9 +34,15 @@
 Requires:       coreutils
 Requires:       sed
 BuildRequires:  sed
+%if %{with libalternatives}
+BuildRequires:  alts
+Requires(post): alts
+Requires(preun): alts
+%else
 BuildRequires:  update-alternatives
 Requires(post): update-alternatives
-Requires(preun):update-alternatives
+Requires(preun): update-alternatives
+%endif
 BuildArch:      noarch
 %define debug_package %nil
 
@@ -50,11 +61,22 @@
 
 %install
 install -d %buildroot%{_bindir}
-install -d %buildroot%{_sysconfdir}/alternatives
 install -m 755 gs.wrap %buildroot%{_bindir}/gs.wrap
+%if %{with libalternatives}
+mkdir -p %{buildroot}%{_datadir}/libalternatives/gs
+ln -sf %{_bindir}/alts %{buildroot}%{_bindir}/gs
+cat > %{buildroot}%{_datadir}/libalternatives/gs/20.conf <<-EOF
+       binary=%{_bindir}/gs.wrap
+       man=gs.1
+       group=gs
+       EOF
+%else
+install -d %buildroot%{_sysconfdir}/alternatives
 ln -sf %{_bindir}/gs.wrap %{buildroot}%{_sysconfdir}/alternatives/gs
 ln -sf %{_sysconfdir}/alternatives/gs %{buildroot}%{_bindir}/gs
+%endif
 
+%if ! %{with libalternatives}
 %post
 %{_sbindir}/update-alternatives \
   --install %{_bindir}/gs gs %{_bindir}/gs.wrap 100
@@ -64,10 +86,17 @@
     %{_sbindir}/update-alternatives \
     --remove gs %{_bindir}/gs.wrap
 fi
+%endif
 
 %files
 %defattr(-,root,root)
 %_bindir/gs.wrap
 %_bindir/gs
+%if %{with libalternatives}
+%dir %{_datadir}/libalternatives/
+%dir %{_datadir}/libalternatives/gs/
+%{_datadir}/libalternatives/gs/20.conf
+%else
 %ghost %config %{_sysconfdir}/alternatives/gs
+%endif
 

Reply via email to