diff --git a/python-locket.changes b/python-locket.changes index f9631ed..8898fba 100644 --- a/python-locket.changes +++ b/python-locket.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 19 17:48:47 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version. + ------------------------------------------------------------------- Tue Jul 14 13:47:43 UTC 2015 - toddrme2178@gmail.com diff --git a/python-locket.spec b/python-locket.spec index e1e4f55..1953f3f 100644 --- a/python-locket.spec +++ b/python-locket.spec @@ -1,7 +1,7 @@ # # spec file for package python-locket # -# 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,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-locket Version: 0.2.0 Release: 0 @@ -23,14 +24,13 @@ Summary: File-based locks for Python for Linux and Windows License: BSD-2-Clause Group: Development/Languages/Python Url: http://github.com/mwilliamson/locket.py -Source: https://pypi.python.org/packages/source/l/locket/locket-%{version}.tar.gz -BuildRequires: python-devel +Source: https://files.pythonhosted.org/packages/source/l/locket/locket-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} BuildRoot: %{_tmppath}/%{name}-%{version}-build -%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_subpackages %description Locket implements a lock that can be used by multiple processes provided @@ -59,12 +59,13 @@ module in the standard library. Specifically, their behaviour is: %setup -q -n locket-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} -%files +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE README.rst %{python_sitelib}/*