Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-email-validator for 
openSUSE:Factory checked in at 2025-08-22 17:47:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-email-validator (Old)
 and      /work/SRC/openSUSE:Factory/.python-email-validator.new.29662 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-email-validator"

Fri Aug 22 17:47:12 2025 rev:12 rq:1300805 version:2.2.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-email-validator/python-email-validator.changes
    2025-07-09 17:26:17.382258427 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-email-validator.new.29662/python-email-validator.changes
 2025-08-22 17:47:36.839516555 +0200
@@ -1,0 +2,5 @@
+Thu Aug 14 13:04:59 UTC 2025 - Markéta Machová <mmach...@suse.com>
+
+- Convert to libalternatives on SLE-16-based and newer systems only
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-email-validator.spec ++++++
--- /var/tmp/diff_new_pack.HDh62t/_old  2025-08-22 17:47:37.751554093 +0200
+++ /var/tmp/diff_new_pack.HDh62t/_new  2025-08-22 17:47:37.751554093 +0200
@@ -16,7 +16,11 @@
 #
 
 
+%if 0%{?suse_version} > 1500
 %bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
 %{?sle15_python_module_pythons}
 Name:           python-email-validator
 Version:        2.2.0
@@ -35,15 +39,20 @@
 BuildRequires:  %{python_module pytest >= 5.0}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module wheel}
-BuildRequires:  alts
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-Requires:       alts
 Requires:       python-dnspython >= 1.15.0
 Requires:       python-idna >= 2.0.0
 Provides:       python-email_validator = %{version}-%{release}
 Obsoletes:      python-email_validator < %{version}-%{release}
 BuildArch:      noarch
+%if %{with libalternatives}
+BuildRequires:  alts
+Requires:       alts
+%else
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+%endif
 %python_subpackages
 
 %description
@@ -82,6 +91,12 @@
 %pre
 %python_libalternatives_reset_alternative email_validator
 
+%post
+%python_install_alternative email_validator
+
+%postun
+%python_uninstall_alternative email_validator
+
 %files %{python_files}
 %license LICENSE
 %doc README.md

Reply via email to