14
0

Accepting request 891237 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/891237
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-crontab?expand=0&rev=5
This commit is contained in:
2021-05-07 14:45:51 +00:00
committed by Git OBS Bridge
2 changed files with 14 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 6 14:14:18 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Fix testsuite and devel BuildRequirements for different flavors
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jan 25 10:29:59 UTC 2021 - John Vandenberg <jayvdb@gmail.com> Mon Jan 25 10:29:59 UTC 2021 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -17,6 +17,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-python-crontab Name: python-python-crontab
Version: 2.5.1 Version: 2.5.1
Release: 0 Release: 0
@@ -38,11 +39,11 @@ BuildRequires: %{python_module cron-descriptor}
BuildRequires: %{python_module croniter} BuildRequires: %{python_module croniter}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil} BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module testsuite if %python-base >= 3}
BuildRequires: cronie BuildRequires: cronie
%if %{with python2}
BuildRequires: python2-devel BuildRequires: python2-devel
BuildRequires: python3-testsuite %endif
BuildRequires: (python36-testsuite if python36-base)
BuildRequires: (python38-testsuite if python38-base)
# /SECTION # /SECTION
%python_subpackages %python_subpackages
@@ -61,8 +62,12 @@ accessing the system cron automatically using an API.
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
# test_07_non_posix_shell - only for Windows
export LANG=en_US.UTF-8 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" %pytest -k "not test_07_non_posix_shell"
%files %{python_files} %files %{python_files}