Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-semantic_version for
openSUSE:Factory checked in at 2021-12-09 19:45:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-semantic_version (Old)
and /work/SRC/openSUSE:Factory/.python-semantic_version.new.2520 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-semantic_version"
Thu Dec 9 19:45:10 2021 rev:7 rq:935915 version:2.8.5
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-semantic_version/python-semantic_version.changes
2020-08-02 12:29:35.127932834 +0200
+++
/work/SRC/openSUSE:Factory/.python-semantic_version.new.2520/python-semantic_version.changes
2021-12-09 19:45:20.229125395 +0100
@@ -1,0 +2,5 @@
+Mon Dec 6 07:58:52 UTC 2021 - Dirk M??ller <[email protected]>
+
+- split tests into flavor to avoid build cycle with djang
+
+-------------------------------------------------------------------
New:
----
_multibuild
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-semantic_version.spec ++++++
--- /var/tmp/diff_new_pack.nGMaBR/_old 2021-12-09 19:45:20.897125717 +0100
+++ /var/tmp/diff_new_pack.nGMaBR/_new 2021-12-09 19:45:20.901125718 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-semantic_version
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 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,14 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
Name: python-semantic_version
Version: 2.8.5
Release: 0
@@ -25,12 +33,14 @@
Group: Development/Languages/Python
URL: https://github.com/rbarrois/python-semanticversion
Source:
https://files.pythonhosted.org/packages/source/s/semantic_version/semantic_version-%{version}.tar.gz
-BuildRequires: %{python_module Django >= 1.11}
-BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
+%if %{with test}
+BuildRequires: %{python_module Django >= 1.11}
+BuildRequires: %{python_module pytest}
+%endif
%python_subpackages
%description
@@ -44,15 +54,21 @@
%python_build
%install
+%if !%{with test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
+%if %{with test}
%check
%pytest
+%else
+
%files %{python_files}
%license LICENSE
%doc README.rst ChangeLog
%{python_sitelib}/*
+%endif
%changelog
++++++ _multibuild ++++++
<multibuild>
<package>test</package>
</multibuild>