Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-flit-core for 
openSUSE:Factory checked in at 2026-02-05 17:57:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-flit-core (Old)
 and      /work/SRC/openSUSE:Factory/.python-flit-core.new.1670 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-flit-core"

Thu Feb  5 17:57:04 2026 rev:22 rq:1329821 version:3.12.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-flit-core/python-flit-core.changes        
2025-05-07 19:14:36.110539634 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-flit-core.new.1670/python-flit-core.changes  
    2026-02-05 17:58:06.453837052 +0100
@@ -1,0 +2,5 @@
+Thu Jan 29 09:13:15 UTC 2026 - Daniel Garcia <[email protected]>
+
+- Use %bcond_with macro for test flavor
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-flit-core.spec ++++++
--- /var/tmp/diff_new_pack.8y3Pj4/_old  2026-02-05 17:58:07.449878833 +0100
+++ /var/tmp/diff_new_pack.8y3Pj4/_new  2026-02-05 17:58:07.453879001 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-flit-core
 #
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -29,12 +29,6 @@
 %if "%{flavor}" == ""
 %define pprefix python
 %{expand:%%define skip_%{primary_python} 1}
-%if "%{shrink:%{pythons}}" == ""
-# Exclude for local osc build: unresolvable
-%define python_module() empty-python-buildset
-# Exclude for obs server
-ExclusiveArch:  do-not-build
-%endif
 %endif
 %else
 # backport and option d projects for 15.X having one or more python in the 
buildset don't need the Ring split for bootstrap
@@ -45,12 +39,25 @@
 %define pprefix python
 %endif
 %endif
+
 # test everything in the buildset by standard python flavor expansion: primary 
and non-primary, if any.
 %if "%{flavor}" == "test"
 %define pprefix python
 %define psuffix -test
+%bcond_without test
+%else
+%bcond_with test
 %endif
+
 %{?sle15_python_module_pythons}
+
+%if "%{flavor}" == "" && "%{shrink:%{pythons}}" == ""
+# Exclude for local osc build: unresolvable
+%define python_module() empty-python-buildset
+# Exclude for obs server
+ExclusiveArch:  do-not-build
+%endif
+
 Name:           %{pprefix}-flit-core%{?psuffix}
 Version:        3.12.0
 Release:        0
@@ -62,7 +69,7 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildArch:      noarch
-%if "%{flavor}" == "test"
+%if %{with test}
 BuildRequires:  %{python_module flit-core = %{version}}
 BuildRequires:  %{python_module packaging}
 BuildRequires:  %{python_module pytest}
@@ -90,7 +97,7 @@
 %prep
 %autosetup -p2 -n flit_core-%{version}
 
-%if "%{flavor}" != "test"
+%if !%{with test}
 %build
 # https://flit.readthedocs.io/en/latest/bootstrap.html, take the first 
available python in the build set
 mypython=%{expand:%%__%(echo %{pythons} | cut -d " " -f 1)}
@@ -105,14 +112,14 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 %endif
 
-%if "%{flavor}" == "test"
+%if %{with test}
 %check
 # make sure we do not test the sources but the package
 rm flit_core/*.py pyproject.toml
 %pytest -rfEs
 %endif
 
-%if "%{flavor}" != "test"
+%if !%{with test}
 %files %{python_files}
 %{python_sitelib}/flit_core
 %{python_sitelib}/flit_core-%{version}.dist-info

Reply via email to