]> git.pld-linux.org Git - packages/sip.git/commitdiff
- rel 3; allow on python2: from PyQt5 import sip auto/th/sip-4.19.12-3
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 11 Aug 2018 15:43:01 +0000 (17:43 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 11 Aug 2018 15:43:01 +0000 (17:43 +0200)
sip.spec

index e7435f1bf66e9979f9dcdb90d21c1fdfbbd1c649..e1f3cf327f5a538365f02dd09a5f5f518bc1c01d 100644 (file)
--- 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
This page took 0.089801 seconds and 4 git commands to generate.