2016-08-07 14:16:58 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-tempora
|
|
|
|
#
|
2019-03-14 19:35:49 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-08-07 14:16:58 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-04 15:08:31 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-08-07 14:16:58 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-04-06 17:53:06 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2018-01-11 13:26:15 +01:00
|
|
|
%bcond_without python2
|
2016-08-07 14:16:58 +02:00
|
|
|
Name: python-tempora
|
2019-03-14 19:35:49 +01:00
|
|
|
Version: 1.14
|
2016-08-07 14:16:58 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Objects and routines pertaining to date and time (tempora)
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
2019-03-14 19:35:49 +01:00
|
|
|
URL: https://github.com/jaraco/tempora
|
2016-08-07 14:16:58 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/t/tempora/tempora-%{version}.tar.gz
|
2019-03-14 19:35:49 +01:00
|
|
|
BuildRequires: %{python_module pytest-flake8}
|
2017-04-06 17:53:06 +02:00
|
|
|
BuildRequires: %{python_module pytest-runner}
|
|
|
|
BuildRequires: %{python_module pytz}
|
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module six}
|
2019-03-14 19:35:49 +01:00
|
|
|
BuildRequires: %{python_module wheel}
|
2016-08-07 14:16:58 +02:00
|
|
|
BuildRequires: fdupes
|
2017-04-06 17:53:06 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-03-18 10:32:24 +01:00
|
|
|
Requires: python-jaraco.functools >= 1.20
|
2017-04-06 17:53:06 +02:00
|
|
|
Requires: python-pytz
|
|
|
|
Requires: python-six
|
2016-08-07 14:16:58 +02:00
|
|
|
BuildArch: noarch
|
2018-01-11 13:26:15 +01:00
|
|
|
%if %{with python2}
|
|
|
|
BuildRequires: python2-backports.unittest_mock
|
|
|
|
%endif
|
2017-04-06 17:53:06 +02:00
|
|
|
%python_subpackages
|
2016-08-07 14:16:58 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Objects and routines pertaining to date and time (tempora)
|
|
|
|
|
2017-04-06 17:53:06 +02:00
|
|
|
Modules include:
|
|
|
|
* tempora (top level package module) contains miscellaneous utilities and constants.
|
|
|
|
* timing contains routines for measuring and profiling.
|
|
|
|
* schedule contains an event scheduler.
|
|
|
|
|
2016-08-07 14:16:58 +02:00
|
|
|
%prep
|
|
|
|
%setup -q -n tempora-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-04-06 17:53:06 +02:00
|
|
|
%python_build
|
2016-08-07 14:16:58 +02:00
|
|
|
|
|
|
|
%install
|
2017-04-06 17:53:06 +02:00
|
|
|
%python_install
|
2016-08-07 14:16:58 +02:00
|
|
|
%fdupes %{buildroot}
|
|
|
|
|
2017-04-06 17:53:06 +02:00
|
|
|
%check
|
2019-03-18 10:32:24 +01:00
|
|
|
# https://github.com/jaraco/tempora/issues/6
|
2019-03-14 19:35:49 +01:00
|
|
|
# %%pytest tests
|
2017-04-06 17:53:06 +02:00
|
|
|
|
|
|
|
%files %{python_files}
|
2016-08-07 14:16:58 +02:00
|
|
|
%doc CHANGES.rst README.rst docs/*rst
|
2017-04-06 17:53:06 +02:00
|
|
|
%python3_only %{_bindir}/calc-prorate
|
2016-08-07 14:16:58 +02:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|