Hello community, here is the log from the commit of package python-pyRFC3339 for openSUSE:Factory checked in at 2017-09-22 21:34:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyRFC3339 (Old) and /work/SRC/openSUSE:Factory/.python-pyRFC3339.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyRFC3339" Fri Sep 22 21:34:09 2017 rev:2 rq:527503 version:1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyRFC3339/python-pyRFC3339.changes 2016-01-11 19:11:19.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-pyRFC3339.new/python-pyRFC3339.changes 2017-09-22 21:34:11.726276731 +0200 @@ -1,0 +2,5 @@ +Wed Sep 20 09:39:52 UTC 2017 - [email protected] + +- Convert to singlespec + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyRFC3339.spec ++++++ --- /var/tmp/diff_new_pack.dyBzpH/_old 2017-09-22 21:34:12.278199039 +0200 +++ /var/tmp/diff_new_pack.dyBzpH/_new 2017-09-22 21:34:12.282198475 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pyRFC3339 # -# Copyright (c) 2015 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,11 +16,8 @@ # -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else -BuildArch: noarch -%endif +%{?!python_module:%define python_module() python-%{**} python3-%{**}} + Name: python-pyRFC3339 Version: 1.0 Release: 0 @@ -29,12 +26,17 @@ Group: Development/Languages/Python Url: https://github.com/kurtraschke/pyRFC3339 Source: https://pypi.python.org/packages/source/p/pyRFC3339/pyRFC3339-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-nose -BuildRequires: python-pytz -BuildRequires: python-setuptools +BuildRequires: %{python_module devel} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module pytz} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-pytz BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch + +%python_subpackages %description pyRFC3339 parses and generates :RFC:`3339`-compliant timestamps using Python `datetime.datetime` objects. @@ -43,15 +45,16 @@ %setup -q -n pyRFC3339-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib}/pyrfc3339 %check -python setup.py test +%python_exec setup.py test -%files +%files %{python_files} %defattr(-,root,root,-) %doc README.rst LICENSE.txt %{python_sitelib}/*
