Script 'mail_helper' called by obssrc
Hello community,

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

Package is "python-bindep"

Wed Jun 18 17:58:20 2025 rev:9 rq:1286576 version:2.13.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-bindep/python-bindep.changes      
2025-05-06 16:43:11.340637477 +0200
+++ /work/SRC/openSUSE:Factory/.python-bindep.new.19631/python-bindep.changes   
2025-06-18 17:58:37.578297260 +0200
@@ -1,0 +2,10 @@
+Wed Jun 18 07:47:52 UTC 2025 - Daniel Garcia <daniel.gar...@suse.com>
+
+- Use multibuild for running tests
+
+-------------------------------------------------------------------
+Tue Jun 17 07:58:12 UTC 2025 - Markéta Machová <mmach...@suse.com>
+
+- Convert to libalternatives
+
+-------------------------------------------------------------------

New:
----
  _multibuild

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

Other differences:
------------------
++++++ python-bindep.spec ++++++
--- /var/tmp/diff_new_pack.3VcY3W/_old  2025-06-18 17:58:38.250325262 +0200
+++ /var/tmp/diff_new_pack.3VcY3W/_new  2025-06-18 17:58:38.250325262 +0200
@@ -16,8 +16,18 @@
 #
 
 
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
+
+%bcond_without libalternatives
 %{?sle15_python_module_pythons}
-Name:           python-bindep
+Name:           python-bindep%{psuffix}
 Version:        2.13.0
 Release:        0
 Summary:        Binary dependency utility
@@ -25,34 +35,39 @@
 URL:            https://docs.opendev.org/opendev/bindep
 Source:         
https://files.pythonhosted.org/packages/source/b/bindep/bindep-%{version}.tar.gz
 BuildRequires:  %{python_module pbr}
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
+BuildRequires:  alts
+BuildRequires:  fdupes
+BuildRequires:  openSUSE-release
 BuildRequires:  python-rpm-macros
+Requires:       alts
+Requires:       python-Parsley
+Requires:       python-distro >= 1.7.0
+Requires:       python-packaging
+Requires:       python-pbr >= 2.0.0
+Suggests:       python-distro < 1.7.0
+Suggests:       python-packaging < 21.0
+BuildArch:      noarch
+
+%if %{with test}
+BuildRequires:  %{python_module bindep = %{version}}
 # SECTION test requirements
-BuildRequires:  %{python_module distro >= 1.7.0}
 BuildRequires:  %{python_module Parsley}
 BuildRequires:  %{python_module coverage >= 3.6}
+BuildRequires:  %{python_module distro >= 1.7.0}
 BuildRequires:  %{python_module fixtures >= 0.3.12}
 BuildRequires:  %{python_module hatchling}
 BuildRequires:  %{python_module packaging}
 BuildRequires:  %{python_module pbr >= 2.0.0}
-BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module python-subunit}
 BuildRequires:  %{python_module testrepository >= 0.0.13}
 BuildRequires:  %{python_module testtools >= 0.9.27}
-BuildRequires:  %{python_module wheel}
 # /SECTION
-BuildRequires:  fdupes
-BuildRequires:  openSUSE-release
-Requires(post): update-alternatives
-Requires(postun): update-alternatives
-Requires:       python-Parsley
-Requires:       python-distro >= 1.7.0
-Requires:       python-packaging
-Requires:       python-pbr >= 2.0.0
-Suggests:       python-distro < 1.7.0
-Suggests:       python-packaging < 21.0
-BuildArch:      noarch
+%endif
+
 %python_subpackages
 
 %description
@@ -70,18 +85,20 @@
 %pyproject_wheel
 
 %install
+%if !%{with test}
 %pyproject_install
 %python_clone -a %{buildroot}%{_bindir}/bindep
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
 
 %check
+%if %{with test}
 %pytest -s -k 'not (test_arch_implies_pacman or test_manjaro_implies_pacman)'
+%endif
 
-%post
-%python_install_alternative bindep
-
-%postun
-%python_uninstall_alternative bindep
+%if !%{with test}
+%pre
+%python_libalternatives_reset_alternative bindep
 
 %files %{python_files}
 %doc AUTHORS ChangeLog NEWS.rst README.rst
@@ -89,4 +106,5 @@
 %python_alternative %{_bindir}/bindep
 %{python_sitelib}/bindep
 %{python_sitelib}/bindep-%{version}*info
+%endif
 

++++++ _multibuild ++++++
<multibuild>
  <package>test</package>
</multibuild>

Reply via email to