forked from pool/python-tempora
- Fix building with python3 only available
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tempora?expand=0&rev=4
This commit is contained in:
committed by
Git OBS Bridge
parent
4a7444f9c1
commit
75727d3fb0
@@ -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
|
Fri Mar 31 13:43:53 UTC 2017 - jmatejek@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-tempora
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%bcond_without python2
|
||||||
Name: python-tempora
|
Name: python-tempora
|
||||||
Version: 1.6.1
|
Version: 1.6.1
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -33,11 +34,12 @@ BuildRequires: %{python_module setuptools}
|
|||||||
BuildRequires: %{python_module six}
|
BuildRequires: %{python_module six}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python2-backports.unittest_mock
|
|
||||||
Requires: python-pytz
|
Requires: python-pytz
|
||||||
Requires: python-six
|
Requires: python-six
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if %{with python2}
|
||||||
|
BuildRequires: python2-backports.unittest_mock
|
||||||
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -62,7 +64,6 @@ Modules include:
|
|||||||
%python_exec -m pytest tests
|
%python_exec -m pytest tests
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc CHANGES.rst README.rst docs/*rst
|
%doc CHANGES.rst README.rst docs/*rst
|
||||||
%python3_only %{_bindir}/calc-prorate
|
%python3_only %{_bindir}/calc-prorate
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
Reference in New Issue
Block a user