Hello community,

here is the log from the commit of package python-configobj for 
openSUSE:Factory checked in at 2017-05-27 13:19:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-configobj (Old)
 and      /work/SRC/openSUSE:Factory/.python-configobj.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-configobj"

Sat May 27 13:19:00 2017 rev:17 rq:498298 version:5.0.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-configobj/python-configobj.changes        
2014-09-12 10:03:56.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-configobj.new/python-configobj.changes   
2017-05-27 13:19:37.164864779 +0200
@@ -1,0 +2,6 @@
+Wed May 24 17:01:11 UTC 2017 - toddrme2...@gmail.com
+
+- Implement single-spec version.
+- Fix source URL.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-configobj.spec ++++++
--- /var/tmp/diff_new_pack.CBI8mz/_old  2017-05-27 13:19:38.344697982 +0200
+++ /var/tmp/diff_new_pack.CBI8mz/_new  2017-05-27 13:19:38.348697417 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-configobj
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX Products 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,8 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define oldpython python
 Name:           python-configobj
 Version:        5.0.6
 Release:        0
@@ -23,19 +25,20 @@
 Summary:        Config file reading, writing and validation
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
-Source:         
http://pypi.python.org/packages/source/c/configobj/configobj-%{version}.tar.gz
+Source:         
https://files.pythonhosted.org/packages/source/c/configobj/configobj-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  python-devel
-BuildRequires:  python-six
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module six}
 Requires:       python-six
 # There are no real docs!
-Provides:       python-configobj-docs = %{version}
-Obsoletes:      python-configobj-docs < %{version}
-%if 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
+Obsoletes:      %{oldpython}-configobj-docs < %{version}
+Provides:       %{oldpython}-configobj-docs = %{version}
 %endif
+BuildArch:      noarch
+%python_subpackages
 
 %description
 ConfigObj is a simple but powerful config file reader and writer: an ini
@@ -60,16 +63,20 @@
 %setup -q -n configobj-%{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}
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
 %{python_sitelib}/configobj.py*
 %{python_sitelib}/validate.py*
 %{python_sitelib}/_version.py*
+%pycache_only %{python_sitelib}/__pycache__/configobj.*.py*
+%pycache_only %{python_sitelib}/__pycache__/validate.*.py*
+%pycache_only %{python_sitelib}/__pycache__/_version.*.py*
 %{python_sitelib}/configobj-%{version}-py*.egg-info
 
 %changelog


Reply via email to