Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-zope.i18nmessageid for
openSUSE:Factory checked in at 2021-10-20 20:23:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-zope.i18nmessageid (Old)
and /work/SRC/openSUSE:Factory/.python-zope.i18nmessageid.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-zope.i18nmessageid"
Wed Oct 20 20:23:24 2021 rev:10 rq:925648 version:5.0.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-zope.i18nmessageid/python-zope.i18nmessageid.changes
2020-04-15 20:07:28.978145460 +0200
+++
/work/SRC/openSUSE:Factory/.python-zope.i18nmessageid.new.1890/python-zope.i18nmessageid.changes
2021-10-20 20:24:09.309373292 +0200
@@ -1,0 +2,7 @@
+Wed Oct 13 09:10:40 UTC 2021 - [email protected]
+
+- %check: use %pyunittest rpm macro
+- added sources
+ + _multibuild
+
+-------------------------------------------------------------------
New:
----
_multibuild
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-zope.i18nmessageid.spec ++++++
--- /var/tmp/diff_new_pack.eTR7YI/_old 2021-10-20 20:24:09.765373573 +0200
+++ /var/tmp/diff_new_pack.eTR7YI/_new 2021-10-20 20:24:09.765373573 +0200
@@ -1,7 +1,7 @@
#
-# spec file for package python-zope.i18nmessageid
+# spec file
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2013 LISA GmbH, Bingen, Germany.
#
# All modifications and additions to the file contributed by third parties
@@ -18,7 +18,15 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-Name: python-zope.i18nmessageid
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
+Name: python-zope.i18nmessageid%{psuffix}
Version: 5.0.1
Release: 0
Summary: Zope Location
@@ -28,13 +36,16 @@
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
-BuildRequires: %{python_module zope.testrunner}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION documentation requirements
BuildRequires: %{python_module Sphinx}
Requires: python-six
# /SECTION
+# SECTION testing requirements
+%if %{with test}
+BuildRequires: %{python_module zope.i18nmessageid}
+%endif
%python_subpackages
%description
@@ -52,26 +63,35 @@
rm -rf zope.i18nmessageid.egg-info
%build
+%if !%{with test}
%python_build
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
build/sphinx/html/objects.inv
+%endif
%install
+%if !%{with test}
%python_install
# don't bother with development files
%{python_expand rm -f
%{buildroot}%{$python_sitearch}/zope/i18nmessageid/_zope_i18nmessageid_message.c
%fdupes %{buildroot}%{$python_sitearch}
}
+%endif
%check
-sed -i '/coverage/d' setup.py
-%python_exec setup.py test
+%if %{with test}
+%pyunittest 'zope.i18nmessageid.tests.test_suite'
+%endif
+%if !%{with test}
%files %{python_files}
%license LICENSE.txt
%doc CHANGES.rst COPYRIGHT.txt README.rst
%{python_sitearch}/*
+%endif
+%if !%{with test}
%files -n %{name}-doc
%doc build/sphinx/html/
+%endif
%changelog
++++++ _multibuild ++++++
<multibuild>
<package>test</package>
</multibuild>