Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pyinotify for 
openSUSE:Factory checked in at 2025-03-27 22:33:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyinotify (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyinotify.new.2696 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyinotify"

Thu Mar 27 22:33:21 2025 rev:20 rq:1256422 version:0.9.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyinotify/python-pyinotify.changes        
2025-03-21 20:23:51.758355327 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pyinotify.new.2696/python-pyinotify.changes  
    2025-03-27 22:33:48.960368095 +0100
@@ -1,0 +2,7 @@
+Wed Mar 26 11:57:29 UTC 2025 - Nico Krapp <[email protected]>
+
+- Use libalternatives instead of update-alternatives, bsc#1240097
+- No more greedy globs in %files.
+- Use python3 in pyinotify script
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-pyinotify.spec ++++++
--- /var/tmp/diff_new_pack.cA0eLX/_old  2025-03-27 22:33:49.536391939 +0100
+++ /var/tmp/diff_new_pack.cA0eLX/_new  2025-03-27 22:33:49.540392105 +0100
@@ -16,7 +16,12 @@
 #
 
 
-%{?!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-pyinotify
 Version:        0.9.6
@@ -31,8 +36,13 @@
 Patch0:         make_asyncore_support_optional.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  python-rpm-macros
+%if %{with libalternatives}
+Requires:       alts
+BuildRequires:  alts
+%else
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
+%endif
 BuildArch:      noarch
 %python_subpackages
 
@@ -67,6 +77,10 @@
 install -D -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/pyinotify
 %python_clone -a %{buildroot}%{_bindir}/pyinotify
 
+%pre
+# If libalternatives is used: Removing old update-alternatives entries.
+%python_libalternatives_reset_alternative pyinotify
+
 %post
 %python_install_alternative pyinotify
 
@@ -79,5 +93,7 @@
 %doc old/ChangeLog old/NEWS
 %doc python3/examples
 %python_alternative %{_bindir}/pyinotify
-%{python_sitelib}/*
+%{python_sitelib}/pyinotify.py
+%{python_sitelib}/pyinotify-%{version}*.egg-info
+%pycache_only %{python_sitelib}/__pycache__
 

++++++ pyinotify ++++++
--- /var/tmp/diff_new_pack.cA0eLX/_old  2025-03-27 22:33:49.568393263 +0100
+++ /var/tmp/diff_new_pack.cA0eLX/_new  2025-03-27 22:33:49.568393263 +0100
@@ -1,3 +1,3 @@
 #!/bin/sh
-python -m pyinotify "$@"
+python3 -m pyinotify "$@"
 

Reply via email to