Hello community,

here is the log from the commit of package python-configparser for 
openSUSE:Factory checked in at 2017-04-19 18:06:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-configparser (Old)
 and      /work/SRC/openSUSE:Factory/.python-configparser.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-configparser"

Wed Apr 19 18:06:29 2017 rev:3 rq:484258 version:3.5.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-configparser/python-configparser.changes  
2017-03-12 20:02:14.872632603 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-configparser.new/python-configparser.changes 
    2017-04-19 18:06:30.386501186 +0200
@@ -1,0 +2,18 @@
+Fri Mar 31 19:27:35 UTC 2017 - [email protected]
+
+-  %{python_sitelib}/backports is a namespace package, and so under
+   python 2.x it must have a proper 
+   %{python_sitelib}/backports/__init__.py file.
+   python-backports provides this __init__.py to prevent backports
+   packages from conflicting.
+   Please see the following links for more details:
+     https://pypi.python.org/pypi/backports/
+     https://www.python.org/dev/peps/pep-0420/%23namespace-packages-today
+
+-------------------------------------------------------------------
+Thu Mar 30 21:46:17 UTC 2017 - [email protected]
+
+- Split backports directory into subpackage to allow the various
+  packages that share the backports namespace to avoid conflicts.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-configparser.spec ++++++
--- /var/tmp/diff_new_pack.Wo0PNO/_old  2017-04-19 18:06:31.106399353 +0200
+++ /var/tmp/diff_new_pack.Wo0PNO/_new  2017-04-19 18:06:31.110398786 +0200
@@ -28,19 +28,36 @@
 BuildRequires:  fdupes
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
+Requires:       python-backports
 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
-Provides:       python2-configparser
+Provides:       python2-configparser = %{version}
 
 %description
 The ancient ConfigParser module available in the standard library 2.x has
 seen a major update in Python 3.x. This is a backport of those changes so
 that they can be used directly in Python 2.7.
 
+# Note: we use this package as a basis for the backports/ directory because it
+# is small and has a better __init__.py file
+
+%package -n python-backports
+Url:            https://pypi.python.org/pypi/backports/
+Summary:        Namespace for backported Python features
+
+%description -n python-backports
+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.
+
 %prep
 %setup -q -n configparser-%{version}
 
@@ -49,14 +66,20 @@
 
 %install
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
-
-%fdupes %{buildroot}/%{python_sitelib}/*
+cp src/backports/__init__.py %{buildroot}%{python_sitelib}/backports/
+%py_compile %{buildroot}%{python_sitelib}/backports/__init__.py
 
 %files
 %defattr(-,root,root,-)
 %doc README.rst
-%{python_sitelib}/backports
-%{python_sitelib}/configparser*
-%{python_sitelib}/configparser-%{version}-py%{py_ver}.egg-info
+%{python_sitelib}/configparser.py*
+%{python_sitelib}/backports/configparser/
+%{python_sitelib}/configparser-%{version}-py*.egg-info
+%{python_sitelib}/configparser-%{version}-py*-nspkg.pth
+
+%files -n python-backports
+%defattr(-,root,root,-)
+%dir %{python_sitelib}/backports/
+%{python_sitelib}/backports/__init__.py*
 
 %changelog


Reply via email to