Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-python-dbusmock for openSUSE:Factory checked in at 2024-11-17 16:39:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-python-dbusmock (Old) and /work/SRC/openSUSE:Factory/.python-python-dbusmock.new.2017 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-dbusmock" Sun Nov 17 16:39:36 2024 rev:14 rq:1224214 version:0.32.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-python-dbusmock/python-python-dbusmock.changes 2024-11-01 21:00:38.733089650 +0100 +++ /work/SRC/openSUSE:Factory/.python-python-dbusmock.new.2017/python-python-dbusmock.changes 2024-11-17 16:39:48.271757918 +0100 @@ -1,0 +2,6 @@ +Thu Nov 14 13:49:18 UTC 2024 - Dominique Leuenberger <dims...@opensuse.org> + +- Split test suite off into a 2nd flavor (:test) to avoid + buildcycle polkit -> upower -> python-dbusmock + +------------------------------------------------------------------- New: ---- _multibuild ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-python-dbusmock.spec ++++++ --- /var/tmp/diff_new_pack.Nz1yob/_old 2024-11-17 16:39:48.915784669 +0100 +++ /var/tmp/diff_new_pack.Nz1yob/_new 2024-11-17 16:39:48.919784835 +0100 @@ -16,7 +16,15 @@ # -Name: python-python-dbusmock +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +Name: python-python-dbusmock%{psuffix} Version: 0.32.1 Release: 0 Summary: Python library for creating mock D-Bus objects @@ -26,14 +34,20 @@ BuildRequires: %{python_module dbus-python} BuildRequires: %{python_module gobject} BuildRequires: %{python_module pip} -BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} -BuildRequires: dbus-1-daemon BuildRequires: fdupes BuildRequires: pkgconfig BuildRequires: python-rpm-macros -BuildRequires: upower BuildRequires: pkgconfig(gobject-introspection-1.0) +# SECTION test requirements +%if %{with test} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module python-dbusmock = %{version}} +BuildRequires: dbus-1-daemon +BuildRequires: upower +%endif +#/ SECTION Requires: /usr/bin/dbus-daemon Requires: python-dbus-python Requires: python-gobject @@ -58,15 +72,21 @@ %pyproject_wheel %install +%if !%{with test} %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif %check +%if %{with test} %pytest +%endif +%if !%{with test} %files %{python_files} %license COPYING %doc NEWS README.md %{python_sitelib}/dbusmock %{python_sitelib}/python_dbusmock-%{version}*-info +%endif ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild>