diff --git a/python-versiontools.changes b/python-versiontools.changes index 8c14139..db10d68 100644 --- a/python-versiontools.changes +++ b/python-versiontools.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 24 13:56:58 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + ------------------------------------------------------------------- Thu Oct 24 11:16:42 UTC 2013 - speilicke@suse.com @@ -123,3 +128,4 @@ Sat Apr 16 05:38:37 UTC 2011 - jfunk@funktronics.ca - Initial release + diff --git a/python-versiontools.spec b/python-versiontools.spec index 3ccac8d..4996bd2 100644 --- a/python-versiontools.spec +++ b/python-versiontools.spec @@ -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 @@ Smart replacement for plain tuple used in __version__. 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}/*