Hello community,

here is the log from the commit of package python-fasteners for 
openSUSE:Factory checked in at 2017-05-09 18:03:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-fasteners (Old)
 and      /work/SRC/openSUSE:Factory/.python-fasteners.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-fasteners"

Tue May  9 18:03:46 2017 rev:4 rq:493457 version:0.14.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-fasteners/python-fasteners.changes        
2016-01-01 19:50:23.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-fasteners.new/python-fasteners.changes   
2017-05-09 18:03:50.583016074 +0200
@@ -1,0 +2,6 @@
+Wed May  3 15:34:35 UTC 2017 - toddrme2...@gmail.com
+
+- Implement single-spec version.
+- Fix source URL.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-fasteners.spec ++++++
--- /var/tmp/diff_new_pack.kPCkKJ/_old  2017-05-09 18:03:51.254921126 +0200
+++ /var/tmp/diff_new_pack.kPCkKJ/_new  2017-05-09 18:03:51.258920561 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-fasteners
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -15,7 +15,9 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+%bcond_without tests
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-fasteners
 Version:        0.14.1
 Release:        0
@@ -23,17 +25,22 @@
 License:        Apache-2.0
 Group:          Development/Languages/Python
 Url:            https://github.com/harlowja/fasteners
-Source:         
https://pypi.python.org/packages/source/f/fasteners/fasteners-%{version}.tar.gz
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
+Source:         
https://files.pythonhosted.org/packages/source/f/fasteners/fasteners-%{version}.tar.gz
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+%if %{with tests}
+BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module testtools}
+BuildRequires:  %{python_module monotonic >= 0.1}
+BuildRequires:  python-futures
+%endif
 Requires:       python-monotonic >= 0.1
 Requires:       python-six
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
 BuildArch:      noarch
-%endif
+%python_subpackages
 
 %description
 A python package that provides useful locks
@@ -47,12 +54,22 @@
 %setup -q -n fasteners-%{version}
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
+
+%if %{with tests}
+%check
+pushd fasteners/tests
+%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
+py.test-%{$python_bin_suffix} ./
+}
+popd
+%endif
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
 %doc ChangeLog LICENSE README.rst
 %{python_sitelib}/*


Reply via email to