From 0a30b76cd7795cfdb0be261172a6ec30082c9be1e12b5b376886fc25cf0b9933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 14 Mar 2018 09:18:54 +0000 Subject: [PATCH] Accepting request 586681 from home:sebix:branches:devel:languages:python - use %license macro OBS-URL: https://build.opensuse.org/request/show/586681 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-locket?expand=0&rev=3 --- python-locket.changes | 5 +++++ python-locket.spec | 14 ++++---------- 2 files changed, 9 insertions(+), 10 deletions(-) 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