Hello community,

here is the log from the commit of package python-configparser for 
openSUSE:Factory checked in at 2018-03-29 11:48:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-configparser (Old)
 and      /work/SRC/openSUSE:Factory/.python-configparser.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-configparser"

Thu Mar 29 11:48:01 2018 rev:5 rq:590724 version:3.5.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-configparser/python-configparser.changes  
2017-08-10 14:00:17.352241473 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-configparser.new/python-configparser.changes 
    2018-03-29 11:48:02.842733896 +0200
@@ -1,0 +2,7 @@
+Fri Mar 23 15:14:48 UTC 2018 - [email protected]
+
+- Switch to singlespec package
+- Build for python3 < 3.5
+- Make structure consistent with other backports packages
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-configparser.spec ++++++
--- /var/tmp/diff_new_pack.u60Nsg/_old  2018-03-29 11:48:03.430712711 +0200
+++ /var/tmp/diff_new_pack.u60Nsg/_new  2018-03-29 11:48:03.434712567 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-configparser
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2016, Martin Hauke <[email protected]>
 #
 # All modifications and additions to the file contributed by third parties
@@ -17,6 +17,7 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-configparser
 Version:        3.5.0
 Release:        0
@@ -24,14 +25,20 @@
 License:        MIT
 Group:          Development/Languages/Python
 Url:            http://docs.python.org/3/library/configparser.html
-Source:         
https://pypi.io/packages/source/c/configparser/configparser-%{version}.tar.gz
+Source:         
https://files.pythonhosted.org/packages/source/c/configparser/configparser-%{version}.tar.gz
+BuildRequires:  %{python_module backports}
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
+BuildRequires:  python-rpm-macros
 Requires:       python-backports
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
-Provides:       python2-configparser = %{version}
+
+%if %{python3_version_nodots} >= 35
+%define skip_python3 1
+%endif
+
+%python_subpackages
 
 %description
 The ancient ConfigParser module available in the standard library 2.x has
@@ -42,16 +49,16 @@
 %setup -q -n configparser-%{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}/backports/configparser/
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
 %doc README.rst
-%{python_sitelib}/configparser.py*
-%dir %{python_sitelib}/backports/
+%python2_only %{python_sitelib}/configparser.py*
 %{python_sitelib}/backports/configparser/
 %{python_sitelib}/configparser-%{version}-py*.egg-info
 %{python_sitelib}/configparser-%{version}-py*-nspkg.pth


Reply via email to