14
0

Accepting request 506521 from home:alois:branches:devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/506521
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zc.lockfile?expand=0&rev=3
This commit is contained in:
2017-06-29 07:40:06 +00:00
committed by Git OBS Bridge
parent 6aa35b99b3
commit c7a2d13e1b
4 changed files with 37 additions and 22 deletions

View File

@@ -1,3 +1,17 @@
-------------------------------------------------------------------
Sat Jun 24 10:53:56 UTC 2017 - aloisio@gmx.com
- Update to 1.2.1
* Fixed: unlocking and locking didnt work when a
multiprocessing process was running (and presumably other
conditions).
1.2.0:
* Added the ability to include the hostname in the lock file
content.
* Code and ReST markup cosmetics. [alecghica]
- Converted to single-spec
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Aug 3 17:36:14 UTC 2013 - hpj@urpla.net Sat Aug 3 17:36:14 UTC 2013 - hpj@urpla.net

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-zc.lockfile # spec file for package python-zc.lockfile
# #
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2013 LISA GmbH, Bingen, Germany. # Copyright (c) 2013 LISA GmbH, Bingen, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
@@ -17,28 +17,26 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-zc.lockfile Name: python-zc.lockfile
Version: 1.1.0 Version: 1.2.1
Release: 0 Release: 0
License: ZPL-2.1
Summary: Basic inter-process locks Summary: Basic inter-process locks
Url: http://pypi.python.org/pypi/zc.lockfile License: ZPL-2.1
Group: Development/Libraries/Python Group: Development/Libraries/Python
Source: https://pypi.python.org/packages/source/z/zc.lockfile/zc.lockfile-%{version}.zip Url: https://pypi.python.org/pypi/zc.lockfile
BuildRequires: python-setuptools Source: https://files.pythonhosted.org/packages/source/z/zc.lockfile/zc.lockfile-%{version}.tar.gz
BuildRequires: unzip BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# Testing requirements: # Testing requirements:
BuildRequires: python-zope.testing BuildRequires: %{python_module mock}
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: %{python_module zope.testing}
Provides: python-zc-lockfile = %{version} Provides: python-zc-lockfile = %{version}
Obsoletes: python-zc-lockfile < %{version} Obsoletes: python-zc-lockfile < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
BuildRequires: python
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch BuildArch: noarch
%endif %python_subpackages
%description %description
The zc.lockfile package provides a basic portable implementation of The zc.lockfile package provides a basic portable implementation of
@@ -51,20 +49,23 @@ files are separate files.
%prep %prep
%setup -q -n zc.lockfile-%{version} %setup -q -n zc.lockfile-%{version}
rm -rf src/zc.lockfile.egg-info
find -name *~ -delete
%build %build
python setup.py build %python_build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
# concatenate both README.txt # concatenate both README.txt
cat %{buildroot}%{python_sitelib}/zc/lockfile/README.txt >> README.txt cat %{buildroot}%{python_sitelib}/zc/lockfile/README.txt >> README.txt
rm %{buildroot}%{python_sitelib}/zc/lockfile/README.txt rm %{buildroot}%{python_sitelib}/zc/lockfile/README.txt
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%check %check
python setup.py test %python_exec setup.py test
%files %files %{python_files}
%defattr(-,root,root) %defattr(-,root,root)
%doc CHANGES.txt COPYRIGHT.txt LICENSE.txt README.txt %doc CHANGES.txt COPYRIGHT.txt LICENSE.txt README.txt
%{python_sitelib}/* %{python_sitelib}/*

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1489ff1c4f655420793c46af5b427537e62435b02e83e92d7f74a73ed8a56198
size 16645

3
zc.lockfile-1.2.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:11db91ada7f22fe8aae268d4bfdeae012c4fe655f66bbb315b00822ec00d043e
size 12187