Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-scour for openSUSE:Factory 
checked in at 2025-06-13 18:42:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-scour (Old)
 and      /work/SRC/openSUSE:Factory/.python-scour.new.19631 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-scour"

Fri Jun 13 18:42:32 2025 rev:13 rq:1285080 version:0.38.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-scour/python-scour.changes        
2023-06-08 21:41:53.313752869 +0200
+++ /work/SRC/openSUSE:Factory/.python-scour.new.19631/python-scour.changes     
2025-06-13 18:42:53.644602675 +0200
@@ -1,0 +2,5 @@
+Thu Jun 12 09:21:47 UTC 2025 - Markéta Machová <mmach...@suse.com>
+
+- Convert to pip-based build and libalternatives
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-scour.spec ++++++
--- /var/tmp/diff_new_pack.JIazmw/_old  2025-06-13 18:42:54.528638348 +0200
+++ /var/tmp/diff_new_pack.JIazmw/_new  2025-06-13 18:42:54.532638509 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-scour
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,6 +17,7 @@
 
 
 %define oldpython python
+%bcond_without libalternatives
 Name:           python-scour
 Version:        0.38.2
 Release:        0
@@ -27,20 +28,22 @@
 Source:         
https://github.com/scour-project/scour/archive/v%{version}/scour-%{version}.tar.gz
 # https://github.com/scour-project/scour/pull/306
 Patch0:         python-scour-no-python2.patch
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  %{python_module xml}
+BuildRequires:  alts
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildRequires:  unzip
+Requires:       alts
 Requires:       python-setuptools
-%ifpython2
-Requires:       python-xml
-%endif
-Requires(post): update-alternatives
-Requires(postun):update-alternatives
 Conflicts:      %{oldpython}-scour < 0.37
 Provides:       scour = %{version}
 BuildArch:      noarch
+%ifpython2
+Requires:       python-xml
+%endif
 %python_subpackages
 
 %description
@@ -55,26 +58,23 @@
 sed -i '/^#!/ d' scour/{scour.py,yocto_css.py,svg_transform.py}
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 %python_clone -a %{buildroot}%{_bindir}/scour
 
 %check
 %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python test_scour.py
 
-%post
-%python_install_alternative scour
-
-%postun
-%python_uninstall_alternative scour
+%pre
+%python_libalternatives_reset_alternative scour
 
 %files %{python_files}
 %license LICENSE
 %doc *.md
 %python_alternative %{_bindir}/scour
 %{python_sitelib}/scour/
-%{python_sitelib}/scour-*.egg-info
+%{python_sitelib}/scour-%{version}*-info
 

Reply via email to