[packages/python-configparser] - rel 3; drop pth files which do hacks that cause damage by breaking other backports/ packages on py

arekm arekm at pld-linux.org
Fri Nov 30 10:20:32 CET 2018


commit a9ce03433d440c4d787bd11ebfc9756c033a726f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Nov 30 10:20:24 2018 +0100

    - rel 3; drop pth files which do hacks that cause damage by breaking other backports/ packages on python 2 (like: form backports import lzma doesn't find lzma module). These pth hacks are not needed for this module to work anyway.

 python-configparser.spec | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/python-configparser.spec b/python-configparser.spec
index f01c28b..e99f996 100644
--- a/python-configparser.spec
+++ b/python-configparser.spec
@@ -8,7 +8,7 @@ Summary:	Updated configparser from Python 3.5 to Python 2
 Summary(pl.UTF-8):	Uaktualniony configparser z Pythona 3.5 do Pythona 2
 Name:		python-configparser
 Version:	3.5.0
-Release:	2
+Release:	3
 License:	BSD
 Group:		Libraries/Python
 #Source0Download: https://pypi.python.org/simple/configparser/
@@ -79,10 +79,17 @@ rm -rf $RPM_BUILD_ROOT
 %py_install
 
 %py_postclean
+
+# pth file is only for 'To use on Python 3 import from backports import configparser instead of the built-in version.'
+# so not needed on python2.
+rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/configparser-%{version}-py*-nspkg.pth
 %endif
 
 %if %{with python3}
 %py3_install
+
+# See note for python2 and on python3 it is also not needed because there is python-backports.spec infrastructure.
+rm -f $RPM_BUILD_ROOT%{py3_sitescriptdir}/configparser-%{version}-py*-nspkg.pth
 %endif
 
 %clean
@@ -94,7 +101,6 @@ rm -rf $RPM_BUILD_ROOT
 %doc README.rst configparser.rst
 %{py_sitescriptdir}/backports/configparser
 %{py_sitescriptdir}/configparser.py[co]
-%{py_sitescriptdir}/configparser-%{version}-py*-nspkg.pth
 %{py_sitescriptdir}/configparser-%{version}-py*.egg-info
 %endif
 
@@ -102,9 +108,6 @@ rm -rf $RPM_BUILD_ROOT
 %files -n python3-configparser
 %defattr(644,root,root,755)
 %doc README.rst configparser.rst
-# XXX: shared dir
-%dir %{py3_sitescriptdir}/backports
 %{py3_sitescriptdir}/backports/configparser
-%{py3_sitescriptdir}/configparser-%{version}-py*-nspkg.pth
 %{py3_sitescriptdir}/configparser-%{version}-py*.egg-info
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-configparser.git/commitdiff/a9ce03433d440c4d787bd11ebfc9756c033a726f



More information about the pld-cvs-commit mailing list