Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-ropgadget for 
openSUSE:Factory checked in at 2026-05-15 23:53:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ropgadget (Old)
 and      /work/SRC/openSUSE:Factory/.python-ropgadget.new.1966 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-ropgadget"

Fri May 15 23:53:16 2026 rev:3 rq:1353232 version:7.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ropgadget/python-ropgadget.changes        
2026-03-19 17:42:19.126093674 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-ropgadget.new.1966/python-ropgadget.changes  
    2026-05-15 23:53:23.052797917 +0200
@@ -1,0 +2,5 @@
+Sun May 10 11:12:52 UTC 2026 - Eyad Issa <[email protected]>
+
+- Update .spec to use libalternatives in recent openSUSE versions 
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-ropgadget.spec ++++++
--- /var/tmp/diff_new_pack.R1EEVz/_old  2026-05-15 23:53:23.580819652 +0200
+++ /var/tmp/diff_new_pack.R1EEVz/_new  2026-05-15 23:53:23.584819817 +0200
@@ -15,6 +15,11 @@
 # Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
 
 Name:           python-ropgadget
 Version:        7.7
@@ -23,16 +28,24 @@
 License:        BSD-3-Clause
 URL:            https://github.com/JonathanSalwan/ROPgadget
 Source:         
https://files.pythonhosted.org/packages/source/r/ropgadget/ropgadget-%{version}.tar.gz
-BuildRequires:  python-rpm-macros
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module wheel}
-# SECTION test requirements
-BuildRequires:  python3-capstone >= 5.0.1
-# /SECTION
 BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
 Requires:       python3-capstone >= 5.0.1
 BuildArch:      noarch
+# SECTION test requirements
+BuildRequires:  python3-capstone >= 5.0.1
+# /SECTION
+%if %{with libalternatives}
+Requires:       alts
+BuildRequires:  alts
+%else
+Requires(post): update-alternatives
+Requires(postun):update-alternatives
+%endif
+
 %python_subpackages
 
 %description
@@ -49,6 +62,11 @@
 %python_clone -a %{buildroot}%{_bindir}/ROPgadget
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+%pre
+%if %{with libalternatives}
+%python_libalternatives_reset_alternative <name>
+%endif
+
 %post
 %python_install_alternative ROPgadget
 

Reply via email to