Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-python-crontab for
openSUSE:Factory checked in at 2021-05-07 16:45:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-crontab (Old)
and /work/SRC/openSUSE:Factory/.python-python-crontab.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-crontab"
Fri May 7 16:45:51 2021 rev:5 rq:891237 version:2.5.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-python-crontab/python-python-crontab.changes
2021-01-25 18:25:36.996602754 +0100
+++
/work/SRC/openSUSE:Factory/.python-python-crontab.new.2988/python-python-crontab.changes
2021-05-07 16:46:17.560182407 +0200
@@ -1,0 +2,5 @@
+Thu May 6 14:14:18 UTC 2021 - Ben Greiner <[email protected]>
+
+- Fix testsuite and devel BuildRequirements for different flavors
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-python-crontab.spec ++++++
--- /var/tmp/diff_new_pack.sLf2h8/_old 2021-05-07 16:46:17.956180614 +0200
+++ /var/tmp/diff_new_pack.sLf2h8/_new 2021-05-07 16:46:17.964180577 +0200
@@ -17,6 +17,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%bcond_without python2
Name: python-python-crontab
Version: 2.5.1
Release: 0
@@ -38,11 +39,11 @@
BuildRequires: %{python_module croniter}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil}
+BuildRequires: %{python_module testsuite if %python-base >= 3}
BuildRequires: cronie
+%if %{with python2}
BuildRequires: python2-devel
-BuildRequires: python3-testsuite
-BuildRequires: (python36-testsuite if python36-base)
-BuildRequires: (python38-testsuite if python38-base)
+%endif
# /SECTION
%python_subpackages
@@ -61,8 +62,12 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-# test_07_non_posix_shell - only for Windows
export LANG=en_US.UTF-8
+%{python_expand mkdir -p build/bin
+ln -s %{_bindir}/$python build/bin/python
+}
+export PATH=$PWD/build/bin:$PATH
+# test_07_non_posix_shell - only for Windows
%pytest -k "not test_07_non_posix_shell"
%files %{python_files}