14
0
forked from pool/python-locket

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
This commit is contained in:
Tomáš Chvátal
2018-03-14 09:18:54 +00:00
committed by Git OBS Bridge
parent bc256890c7
commit 0a30b76cd7
2 changed files with 9 additions and 10 deletions

View File

@@ -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 Wed Apr 19 17:48:47 UTC 2017 - toddrme2178@gmail.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-locket # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -25,10 +25,9 @@ License: BSD-2-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
Url: http://github.com/mwilliamson/locket.py Url: http://github.com/mwilliamson/locket.py
Source: https://files.pythonhosted.org/packages/source/l/locket/locket-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/l/locket/locket-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -41,18 +40,13 @@ module in the standard library. Specifically, their behaviour is:
* Locks are uniquely identified by the file being locked, * Locks are uniquely identified by the file being locked,
both in the same process and across different processes. both in the same process and across different processes.
* Locks are either in a locked or unlocked state. * Locks are either in a locked or unlocked state.
* When the lock is unlocked, calling `acquire()` returns immediately and changes * When the lock is unlocked, calling `acquire()` returns immediately and changes
the lock state to locked. the lock state to locked.
* When the lock is locked, calling `acquire()` will block until the lock state * When the lock is locked, calling `acquire()` will block until the lock state
changes to unlocked, or until the timeout expires. changes to unlocked, or until the timeout expires.
* If a process holds a lock, any thread in that process can call `release()` to * If a process holds a lock, any thread in that process can call `release()` to
change the state to unlocked. change the state to unlocked.
* Behaviour of locks after `fork` is undefined. * Behaviour of locks after `fork` is undefined.
%prep %prep
@@ -66,8 +60,8 @@ module in the standard library. Specifically, their behaviour is:
%python_expand %fdupes %{buildroot}%{$python_sitearch} %python_expand %fdupes %{buildroot}%{$python_sitearch}
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %doc README.rst
%doc LICENSE README.rst %license LICENSE
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog