Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-convertdate for 
openSUSE:Factory checked in at 2025-08-20 13:25:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-convertdate (Old)
 and      /work/SRC/openSUSE:Factory/.python-convertdate.new.29662 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-convertdate"

Wed Aug 20 13:25:16 2025 rev:11 rq:1300246 version:2.4.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-convertdate/python-convertdate.changes    
2025-06-26 11:34:56.534883781 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-convertdate.new.29662/python-convertdate.changes
 2025-08-20 13:25:33.504986245 +0200
@@ -1,0 +2,5 @@
+Tue Aug 12 08:17:05 UTC 2025 - Markéta Machová <mmach...@suse.com>
+
+- Make the libalternatives transition conditional
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-convertdate.spec ++++++
--- /var/tmp/diff_new_pack.M0kp85/_old  2025-08-20 13:25:34.061009621 +0200
+++ /var/tmp/diff_new_pack.M0kp85/_new  2025-08-20 13:25:34.065009788 +0200
@@ -16,8 +16,11 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%if 0%{?suse_version} > 1500
 %bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
 %{?sle15_python_module_pythons}
 Name:           python-convertdate
 Version:        2.4.0
@@ -28,12 +31,17 @@
 Source:         https://github.com/fitnr/convertdate/archive/v%{version}.tar.gz
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module wheel}
-BuildRequires:  alts
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-Requires:       alts
 Requires:       python-PyMeeus >= 0.3.6
 BuildArch:      noarch
+%if %{with libalternatives}
+BuildRequires:  alts
+Requires:       alts
+%else
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+%endif
 # SECTION test requirements
 BuildRequires:  %{python_module PyMeeus >= 0.3.6}
 BuildRequires:  %{python_module pytest-xdist}
@@ -67,6 +75,12 @@
 %pre
 %python_libalternatives_reset_alternative censusgeocode
 
+%post
+%python_install_alternative censusgeocode
+
+%postun
+%python_uninstall_alternative censusgeocode
+
 %files %{python_files}
 %doc README.md
 %license LICENSE

Reply via email to