diff --git a/python-tempora.changes b/python-tempora.changes index 7621fd4..e516a05 100644 --- a/python-tempora.changes +++ b/python-tempora.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Mar 31 13:43:53 UTC 2017 - jmatejek@suse.com + +- update for singlespec +- update to 1.6.1 + * adopt irc.schedule as tempora.schedule + * adopt jaraco.timing as tempora.timing + ------------------------------------------------------------------- Tue Aug 2 13:24:18 UTC 2016 - sor.alexei@meowr.ru diff --git a/python-tempora.spec b/python-tempora.spec index 5e91121..905db9f 100644 --- a/python-tempora.spec +++ b/python-tempora.spec @@ -1,7 +1,7 @@ # # spec file for package python-tempora # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -16,41 +16,55 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-tempora -Version: 1.4 +Version: 1.6.1 Release: 0 Summary: Objects and routines pertaining to date and time (tempora) License: MIT Group: Development/Languages/Python Url: https://github.com/jaraco/tempora Source: https://files.pythonhosted.org/packages/source/t/tempora/tempora-%{version}.tar.gz -BuildRequires: dos2unix +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pytest-runner} +BuildRequires: %{python_module pytz} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} BuildRequires: fdupes -BuildRequires: python-devel -BuildRequires: python-pytest-runner -BuildRequires: python-setuptools -BuildRequires: python-setuptools_scm +BuildRequires: python-rpm-macros +BuildRequires: python2-backports.unittest_mock +Requires: python-pytz +Requires: python-six BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +%python_subpackages %description Objects and routines pertaining to date and time (tempora) +Modules include: +* tempora (top level package module) contains miscellaneous utilities and constants. +* timing contains routines for measuring and profiling. +* schedule contains an event scheduler. + %prep %setup -q -n tempora-%{version} %build -python2 setup.py build -dos2unix README.rst +%python_build %install -python2 setup.py install --prefix=%{_prefix} --optimize=2 --root=%{buildroot} +%python_install %fdupes %{buildroot} -%files +%check +%python_exec -m pytest tests + +%files %{python_files} %defattr(-,root,root,-) %doc CHANGES.rst README.rst docs/*rst -%{_bindir}/calc-prorate +%python3_only %{_bindir}/calc-prorate %{python_sitelib}/* %changelog diff --git a/tempora-1.4.tar.gz b/tempora-1.4.tar.gz deleted file mode 100644 index e574870..0000000 --- a/tempora-1.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ea5b4f8774408f2c7fe018fd04dae61d4910f032c8124b0b851f962884b65b7b -size 7173 diff --git a/tempora-1.6.1.tar.gz b/tempora-1.6.1.tar.gz new file mode 100644 index 0000000..6858ae8 --- /dev/null +++ b/tempora-1.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c15b3ec37933192470e7e7f0dcd5fbb372a85f13c86ddb4c306f280a7fc1453 +size 11423