Hello community,

here is the log from the commit of package python-configparser2 for 
openSUSE:Factory checked in at 2017-08-10 14:00:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-configparser2 (Old)
 and      /work/SRC/openSUSE:Factory/.python-configparser2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-configparser2"

Thu Aug 10 14:00:44 2017 rev:2 rq:511696 version:4.0.0

Changes:
--------
New Changes file:

--- /dev/null   2017-07-20 07:30:00.335470106 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-configparser2.new/python-backports.changes   
    2017-08-10 14:00:45.232317188 +0200
@@ -0,0 +1,10 @@
+-------------------------------------------------------------------
+Sat Jul 15 15:30:44 UTC 2017 - dmuel...@suse.com
+
+- build fixes for SLE_12*
+
+-------------------------------------------------------------------
+Fri Jul 14 14:26:02 UTC 2017 - toddrme2...@gmail.com
+
+- Implement as seperate package.
+
--- 
/work/SRC/openSUSE:Factory/python-configparser2/python-configparser2.changes    
    2017-07-19 12:21:43.194340719 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-configparser2.new/python-configparser2.changes
   2017-08-10 14:00:45.440287914 +0200
@@ -1,0 +2,12 @@
+Fri Jul 14 14:27:55 UTC 2017 - toddrme2...@gmail.com
+
+- Implement single-spec version.
+  Some python3 packages depend on this.
+
+-------------------------------------------------------------------
+Tue Jul 11 14:33:22 UTC 2017 - toddrme2...@gmail.com
+
+- This doesn't provide the configparser module so it can't replace
+  the python-configparser package.
+
+-------------------------------------------------------------------

New:
----
  python-backports.changes
  python-backports.spec

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

Other differences:
------------------
++++++ python-backports.spec ++++++
#
# spec file for package python-backports
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-backports
Version:        4.0.0
Release:        0
Summary:        Namespace for backported Python features
License:        MIT
Group:          Development/Languages/Python
Url:            https://pypi.python.org/pypi/backports/
Source:         
https://files.pythonhosted.org/packages/source/c/configparser2/configparser2-%{version}.tar.gz
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildArch:      noarch
%python_subpackages

%description
This is a common package that backports using the "backports" namespace
must depend on to avoid conflicts.  You shouldn't install this directly,
packages that require this will pultll it in automatically.

Please see these links for more details:
    https://pypi.python.org/pypi/backports/
    https://www.python.org/dev/peps/pep-0420/\%%23namespace-packages-today

If your package provides a module in the %%{python_sitelib}/backports
folder, please depend on this and delete any existing 
%%{python_sitelib}/backports/__init__.py file provided by that package.
configparser.

%prep
%setup -q -n configparser2-%{version}

%build
# Not needed

%install
%{python_expand mkdir -p %{buildroot}%{$python_sitelib}/backports/
cp src/backports/__init__.py %{buildroot}%{$python_sitelib}/backports/
%if 0%{?suse_version} >= 1320
$python -m compileall -d %{$python_sitelib} 
%{buildroot}%{$python_sitelib}/backports/__init__.py
$python -O -m compileall -d %{$python_sitelib} 
%{buildroot}%{$python_sitelib}/backports/__init__.py
%endif
%fdupes %{buildroot}%{$python_sitelib}
}

%files %{python_files}
%defattr(-,root,root,-)
%dir %{python_sitelib}/backports/
%{python_sitelib}/backports/__init__.py*
%if 0%{?suse_version} >= 1320
%pycache_only %dir %{python_sitelib}/backports/__pycache__/
%pycache_only %{python_sitelib}/backports/__pycache__/__init__.*py*
%endif

%changelog
++++++ python-configparser2.spec ++++++
--- /var/tmp/diff_new_pack.vCyNOh/_old  2017-08-10 14:00:47.767960278 +0200
+++ /var/tmp/diff_new_pack.vCyNOh/_new  2017-08-10 14:00:47.803955212 +0200
@@ -1,5 +1,5 @@
 #
-# spec file for package python-configparser
+# spec file for package python-configparser2
 #
 # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2016, Martin Hauke <mar...@gmx.de>
@@ -17,22 +17,22 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-configparser2
-%global modname configparser2
 Version:        4.0.0
 Release:        0
 Summary:        Backport of the enhanced config parser introduced in Python 3.x
 License:        MIT
 Group:          Development/Languages/Python
 Url:            http://docs.python.org/3/library/configparser.html
-Source:         
https://pypi.io/packages/source/c/%{modname}/%{modname}-%{version}.tar.gz
+Source:         
https://files.pythonhosted.org/packages/source/c/configparser2/configparser2-%{version}.tar.gz
+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}
+%python_subpackages
 
 %description
 The ancient ConfigParser module available in the standard library 2.x has
@@ -44,23 +44,23 @@
 configparser.
 
 %prep
-%setup -q -n %{modname}-%{version}
+%setup -q -n configparser2-%{version}
 sed -i '1d' src/configparser2.py 
src/backports/configparser2/{helpers,__init__}.py
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
-%fdupes %{buildroot}%{_prefix}
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
 %doc README.rst
-%{python_sitelib}/%{modname}.py*
-%{python_sitelib}/backports/
-%{python_sitelib}/backports/%{modname}/
-%{python_sitelib}/%{modname}-%{version}-py*.egg-info
-%{python_sitelib}/%{modname}-%{version}-py*-nspkg.pth
+%python2_only %{python_sitelib}/configparser2.py*
+%dir %{python_sitelib}/backports/
+%{python_sitelib}/backports/configparser2/
+%{python_sitelib}/configparser2-%{version}-py*.egg-info
+%{python_sitelib}/configparser2-%{version}-py*-nspkg.pth
 
 %changelog


Reply via email to