Hello community,
here is the log from the commit of package python-zc.lockfile for
openSUSE:Factory checked in at 2017-07-08 12:34:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-zc.lockfile (Old)
and /work/SRC/openSUSE:Factory/.python-zc.lockfile.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-zc.lockfile"
Sat Jul 8 12:34:51 2017 rev:4 rq:508463 version:1.2.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-zc.lockfile/python-zc.lockfile.changes
2013-08-20 11:44:39.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.python-zc.lockfile.new/python-zc.lockfile.changes
2017-07-08 12:34:56.301893024 +0200
@@ -1,0 +2,14 @@
+Sat Jun 24 10:53:56 UTC 2017 - [email protected]
+
+- Update to 1.2.1
+ * Fixed: unlocking and locking didn’t 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
+
+-------------------------------------------------------------------
Old:
----
zc.lockfile-1.1.0.zip
New:
----
zc.lockfile-1.2.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-zc.lockfile.spec ++++++
--- /var/tmp/diff_new_pack.miLH4T/_old 2017-07-08 12:34:56.837817432 +0200
+++ /var/tmp/diff_new_pack.miLH4T/_new 2017-07-08 12:34:56.841816868 +0200
@@ -1,7 +1,7 @@
#
# 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.
#
# 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
-Version: 1.1.0
+Version: 1.2.1
Release: 0
-License: ZPL-2.1
Summary: Basic inter-process locks
-Url: http://pypi.python.org/pypi/zc.lockfile
+License: ZPL-2.1
Group: Development/Libraries/Python
-Source:
https://pypi.python.org/packages/source/z/zc.lockfile/zc.lockfile-%{version}.zip
-BuildRequires: python-setuptools
-BuildRequires: unzip
+Url: https://pypi.python.org/pypi/zc.lockfile
+Source:
https://files.pythonhosted.org/packages/source/z/zc.lockfile/zc.lockfile-%{version}.tar.gz
+BuildRequires: %{python_module setuptools}
+BuildRequires: fdupes
+BuildRequires: python-rpm-macros
# Testing requirements:
-BuildRequires: python-zope.testing
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
+BuildRequires: %{python_module mock}
+BuildRequires: %{python_module zope.testing}
Provides: python-zc-lockfile = %{version}
Obsoletes: python-zc-lockfile < %{version}
-
-%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
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
-%endif
+%python_subpackages
%description
The zc.lockfile package provides a basic portable implementation of
@@ -51,20 +49,23 @@
%prep
%setup -q -n zc.lockfile-%{version}
+rm -rf src/zc.lockfile.egg-info
+find -name *~ -delete
%build
-python setup.py build
+%python_build
%install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
# concatenate both README.txt
cat %{buildroot}%{python_sitelib}/zc/lockfile/README.txt >> README.txt
rm %{buildroot}%{python_sitelib}/zc/lockfile/README.txt
+%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%check
-python setup.py test
+%python_exec setup.py test
-%files
+%files %{python_files}
%defattr(-,root,root)
%doc CHANGES.txt COPYRIGHT.txt LICENSE.txt README.txt
%{python_sitelib}/*