diff --git a/python-lockfile.changes b/python-lockfile.changes index 765b0f1..d746480 100644 --- a/python-lockfile.changes +++ b/python-lockfile.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 24 13:44:46 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + ------------------------------------------------------------------- Thu May 7 11:34:59 UTC 2015 - benoit.monin@gmx.fr @@ -55,3 +60,4 @@ Sun Sep 19 23:21:20 UTC 2010 - alexandre@exatati.com.br Thu Sep 24 13:53:08 UTC 2009 - alexandre@exatati.com.br - Initial package (0.8) for openSUSE. + diff --git a/python-lockfile.spec b/python-lockfile.spec index e1662c5..6861b42 100644 --- a/python-lockfile.spec +++ b/python-lockfile.spec @@ -1,7 +1,7 @@ # # spec file for package python-lockfile # -# 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,26 +16,24 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-lockfile Version: 0.10.2 Release: 0 -Url: https://github.com/openstack/pylockfile Summary: Platform-independent file locking module License: MIT Group: Development/Languages/Python -Source: https://pypi.python.org/packages/source/l/lockfile/lockfile-%{version}.tar.gz +Url: https://github.com/openstack/pylockfile +Source: https://files.pythonhosted.org/packages/source/l/lockfile/lockfile-%{version}.tar.gz Patch0: %{name}-empty_ident.patch +BuildRequires: %{python_module devel} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module pbr} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-nose -BuildRequires: python-pbr -BuildRequires: 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()")} -%py_requires -%else BuildArch: noarch -%endif +%python_subpackages %description The lockfile package exports a LockFile class which provides a simple API for @@ -54,17 +52,17 @@ production-quality code. %patch0 -p1 -b .empty_ident %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install %check -nosetests +%python_exec -m nose -%files +%files %{python_files} %defattr(-,root,root,-) %doc README RELEASE-NOTES LICENSE -%python_sitelib/lockfile* +%{python_sitelib}/lockfile* %changelog