Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-rsa for openSUSE:Factory 
checked in at 2021-11-09 23:53:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-rsa (Old)
 and      /work/SRC/openSUSE:Factory/.python-rsa.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-rsa"

Tue Nov  9 23:53:52 2021 rev:22 rq:929838 version:4.7.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-rsa/python-rsa.changes    2021-03-05 
13:43:09.123506335 +0100
+++ /work/SRC/openSUSE:Factory/.python-rsa.new.1890/python-rsa.changes  
2021-11-09 23:54:04.923936464 +0100
@@ -1,0 +2,5 @@
+Mon Aug 23 14:46:41 UTC 2021 - Stefan Schubert <[email protected]>
+
+- Use libalternatives instead of update-alternatives. 
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-rsa.spec ++++++
--- /var/tmp/diff_new_pack.icXzzn/_old  2021-11-09 23:54:05.379936697 +0100
+++ /var/tmp/diff_new_pack.icXzzn/_new  2021-11-09 23:54:05.379936697 +0100
@@ -16,6 +16,12 @@
 #
 
 
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
+
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-rsa
@@ -28,11 +34,16 @@
 Source:         
https://files.pythonhosted.org/packages/source/r/rsa/rsa-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
-BuildRequires:  python-rpm-macros
+BuildRequires:  python-rpm-macros >= 20210929
 Requires:       python-pyasn1 >= 0.1.3
+%if %{with libalternatives}
+Requires:       alts
+BuildRequires:  alts
+%else
 Requires(post): update-alternatives
-Requires(pre):  coreutils
 Requires(preun): update-alternatives
+%endif
+Requires(pre):  coreutils
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module pyasn1 >= 0.1.3}
@@ -64,6 +75,10 @@
 %python_clone -a %{buildroot}%{_bindir}/pyrsa-sign
 %python_clone -a %{buildroot}%{_bindir}/pyrsa-verify
 
+%pre
+# If libalternatives is used: Removing old update-alternatives entries.
+%python_libalternatives_reset_alternative pyrsa-priv2pub
+
 %post
 %{python_install_alternative pyrsa-priv2pub pyrsa-decrypt pyrsa-encrypt 
pyrsa-keygen pyrsa-sign pyrsa-verify}
 

Reply via email to