Hello community, here is the log from the commit of package python-versiontools for openSUSE:Factory checked in at 2017-09-04 12:32:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-versiontools (Old) and /work/SRC/openSUSE:Factory/.python-versiontools.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-versiontools" Mon Sep 4 12:32:33 2017 rev:13 rq:519903 version:1.9.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-versiontools/python-versiontools.changes 2013-10-25 11:34:28.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-versiontools.new/python-versiontools.changes 2017-09-04 12:32:53.584444793 +0200 @@ -1,0 +2,5 @@ +Thu Aug 24 13:56:58 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + +------------------------------------------------------------------- @@ -124,0 +130 @@ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-versiontools.spec ++++++ --- /var/tmp/diff_new_pack.fjwD8b/_old 2017-09-04 12:32:54.368334576 +0200 +++ /var/tmp/diff_new_pack.fjwD8b/_new 2017-09-04 12:32:54.380332889 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-versiontools # -# Copyright (c) 2013 SUSE LINUX Products 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,23 +16,22 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-versiontools Version: 1.9.1 Release: 0 -Url: https://launchpad.net/versiontools Summary: Smart replacement for plain tuple used in __version__ License: LGPL-3.0+ Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/v/versiontools/versiontools-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-setuptools +Url: https://launchpad.net/versiontools +Source: https://files.pythonhosted.org/packages/source/v/versiontools/versiontools-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros Requires: python-setuptools -%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 +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch -%endif +%python_subpackages %description Smart replacement for plain tuple used in __version__. @@ -50,12 +49,12 @@ sed -i "1d" versiontools/{git_support,hg_support,bzr_support}.py # Fix non-executable scripts %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files +%files %{python_files} %defattr(-,root,root,-) %doc doc/* %{python_sitelib}/*