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:
committed by
Git OBS Bridge
parent
bc256890c7
commit
0a30b76cd7
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user