Hello community, here is the log from the commit of package python-iso8601 for openSUSE:Factory checked in at 2017-03-22 23:17:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-iso8601 (Old) and /work/SRC/openSUSE:Factory/.python-iso8601.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-iso8601" Wed Mar 22 23:17:07 2017 rev:11 rq:480723 version:0.1.11 Changes: -------- --- /work/SRC/openSUSE:Factory/python-iso8601/python-iso8601.changes 2016-03-18 21:31:19.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-iso8601.new/python-iso8601.changes 2017-03-22 23:17:08.325479536 +0100 @@ -1,0 +2,5 @@ +Thu Mar 16 14:45:48 UTC 2017 - tbecht...@suse.com + +- Switch to singlespec approach + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-iso8601.spec ++++++ --- /var/tmp/diff_new_pack.PEssvE/_old 2017-03-22 23:17:09.061375294 +0100 +++ /var/tmp/diff_new_pack.PEssvE/_new 2017-03-22 23:17:09.065374728 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-iso8601 # -# 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,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-iso8601 Version: 0.1.11 Release: 0 @@ -25,16 +26,13 @@ Group: Development/Languages/Python Source: iso8601-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-setuptools -# Test requirements: -BuildRequires: python-pytest >= 2.4.2 -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -Requires: python-argparse -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pytest >= 2.4.2} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros BuildArch: noarch -%endif + +%python_subpackages %description Simple module to parse ISO 8601 dates @@ -46,15 +44,15 @@ %setup -q -n iso8601-%{version} %build -python setup.py build - -%check -py.test --verbose iso8601 +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install + +%check +%python_exec %{_bindir}/py.test --verbose iso8601 -%files +%files %python_files %defattr(-,root,root,-) %doc README.rst LICENSE %{python_sitelib}/*