diff --git a/python-locket.changes b/python-locket.changes index 8898fba..ecf9315 100644 --- a/python-locket.changes +++ b/python-locket.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 14 08:21:40 UTC 2018 - sebix+novell.com@sebix.at + +- use %license macro + ------------------------------------------------------------------- Wed Apr 19 17:48:47 UTC 2017 - toddrme2178@gmail.com diff --git a/python-locket.spec b/python-locket.spec index 1953f3f..5316f44 100644 --- a/python-locket.spec +++ b/python-locket.spec @@ -1,7 +1,7 @@ # # spec file for package python-locket # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -25,10 +25,9 @@ License: BSD-2-Clause Group: Development/Languages/Python Url: http://github.com/mwilliamson/locket.py Source: https://files.pythonhosted.org/packages/source/l/locket/locket-%{version}.tar.gz +BuildRequires: %{python_module devel} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages @@ -41,18 +40,13 @@ module in the standard library. Specifically, their behaviour is: * Locks are uniquely identified by the file being locked, both in the same process and across different processes. - * Locks are either in a locked or unlocked state. - * When the lock is unlocked, calling `acquire()` returns immediately and changes the lock state to locked. - * When the lock is locked, calling `acquire()` will block until the lock state changes to unlocked, or until the timeout expires. - * If a process holds a lock, any thread in that process can call `release()` to change the state to unlocked. - * Behaviour of locks after `fork` is undefined. %prep @@ -66,8 +60,8 @@ module in the standard library. Specifically, their behaviour is: %python_expand %fdupes %{buildroot}%{$python_sitearch} %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE README.rst +%doc README.rst +%license LICENSE %{python_sitelib}/* %changelog