[packages/sip] - rel 3; allow on python2: from PyQt5 import sip

arekm arekm at pld-linux.org
Sat Aug 11 17:43:09 CEST 2018


commit 7789ab1d5249653197beafc208fcfa27960f8d50
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Aug 11 17:43:01 2018 +0200

    - rel 3; allow on python2: from PyQt5 import sip

 sip.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/sip.spec b/sip.spec
index e7435f1..e1f3cf3 100644
--- a/sip.spec
+++ b/sip.spec
@@ -7,7 +7,7 @@ Summary:	Python bindings generator for C++ class libraries
 Summary(pl.UTF-8):	Generator powiązań Pythona z bibliotekami klas C++
 Name:		sip
 Version:	4.19.12
-Release:	2
+Release:	3
 Epoch:		2
 License:	SIP (redistributable, see LICENSE) or GPL v2 or GPL v3
 Group:		Development/Languages/Python
@@ -151,6 +151,8 @@ install -d $RPM_BUILD_ROOT%{_sipfilesdir}
 %{__make} -C build-py2 install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+echo -n >> $RPM_BUILD_ROOT%{py_sitedir}/PyQt5/__init__.py
+
 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
 %endif
@@ -176,6 +178,8 @@ rm -rf $RPM_BUILD_ROOT
 %files -n python-sip
 %defattr(644,root,root,755)
 %dir %{py_sitedir}/PyQt5
+%{py_sitedir}/PyQt5/__init__.py
+%{py_sitedir}/PyQt5/__init__.py[co]
 %attr(755,root,root) %{py_sitedir}/PyQt5/sip.so
 
 %files -n python-sip-devel
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sip.git/commitdiff/7789ab1d5249653197beafc208fcfa27960f8d50



More information about the pld-cvs-commit mailing list