Accepting request 563592 from devel:languages:python
- Fix building with python3 only available OBS-URL: https://build.opensuse.org/request/show/563592 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tempora?expand=0&rev=2
This commit is contained in:
commit
494ca15989
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 11 12:25:33 UTC 2018 - tchvatal@suse.com
|
||||
|
||||
- Fix building with python3 only available
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 31 13:43:53 UTC 2017 - jmatejek@suse.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-tempora
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -17,6 +17,7 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without python2
|
||||
Name: python-tempora
|
||||
Version: 1.6.1
|
||||
Release: 0
|
||||
@ -33,11 +34,12 @@ BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python2-backports.unittest_mock
|
||||
Requires: python-pytz
|
||||
Requires: python-six
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%if %{with python2}
|
||||
BuildRequires: python2-backports.unittest_mock
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@ -62,7 +64,6 @@ Modules include:
|
||||
%python_exec -m pytest tests
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGES.rst README.rst docs/*rst
|
||||
%python3_only %{_bindir}/calc-prorate
|
||||
%{python_sitelib}/*
|
||||
|
Loading…
Reference in New Issue
Block a user