Hello community,

here is the log from the commit of package python-Paste for openSUSE:Factory 
checked in at 2017-05-17 10:50:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Paste (Old)
 and      /work/SRC/openSUSE:Factory/.python-Paste.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Paste"

Wed May 17 10:50:59 2017 rev:14 rq:493094 version:2.0.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Paste/python-Paste.changes        
2016-06-07 23:49:38.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-Paste.new/python-Paste.changes   
2017-05-17 10:51:02.798745110 +0200
@@ -1,0 +2,10 @@
+Fri May  5 21:59:21 UTC 2017 - toddrme2...@gmail.com
+
+- Fix Provides/Obsoletes.
+
+-------------------------------------------------------------------
+Wed Apr 19 02:23:02 UTC 2017 - toddrme2...@gmail.com
+
+- Implement single-spec version.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-Paste.spec ++++++
--- /var/tmp/diff_new_pack.oIomSY/_old  2017-05-17 10:51:03.418657903 +0200
+++ /var/tmp/diff_new_pack.oIomSY/_new  2017-05-17 10:51:03.422657340 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-Paste
 #
-# Copyright (c) 2016 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
@@ -16,6 +16,10 @@
 #
 
 
+%bcond_without tests
+
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define oldpython python
 Name:           python-Paste
 Version:        2.0.3
 Release:        0
@@ -23,27 +27,32 @@
 Summary:        Tools for using a Web Server Gateway Interface stack
 License:        MIT
 Group:          Development/Languages/Python
-Source:         https://pypi.io/packages/source/P/Paste/Paste-%{version}.tar.gz
+Source:         
https://files.pythonhosted.org/packages/source/P/Paste/Paste-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module flup}
+BuildRequires:  python-python-openid
+BuildRequires:  python3-python3-openid
+BuildRequires:  %{python_module six > 1.4.0}
 # Documentation build requirements:
-BuildRequires:  python-Sphinx
+BuildRequires:  python3-Sphinx
 # Test build requirements:
-BuildRequires:  python-flup
-BuildRequires:  python-nose
-BuildRequires:  python-python-openid
-BuildRequires:  python-six
+BuildRequires:  %{python_module nose}
 Requires:       python-flup
-Requires:       python-python-openid
 Requires:       python-six > 1.4.0
-Provides:       python-paste = %{version}
-Obsoletes:      python-paste < %{version}
-%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
+%ifpython2
+Requires:       python-python-openid
+Provides:       %{oldpython}-paste = %{version}
+Obsoletes:      %{oldpython}-paste < %{version}
+%endif
+%ifpython3
+Requires:       python3-python3-openid
 %endif
+BuildArch:      noarch
+%python_subpackages
 
 %description
 These provide several pieces of "middleware" (or filters) that can be nested
@@ -61,18 +70,22 @@
 rm paste/util/template.py.orig
 
 %build
-python setup.py build
-python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
+%python_build
+python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+%if %{with tests}
 %check
-python setup.py -q test
+%python_exec setup.py -q test
+%endif
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
-%doc build/sphinx/html docs/license.txt
+%doc docs/license.txt
+%doc build/sphinx/html/
 %{python_sitelib}/*
 
 %changelog


Reply via email to