|
|
|
@ -1,10 +1,9 @@
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
|
%global with_python3 1
|
|
|
|
|
%global python3_dbus_dir %(%{__python3} -c "import dbus.mainloop; print(dbus.mainloop.__path__[0])" 2>/dev/null)
|
|
|
|
|
%global python3_dbus_dir %(%{__python3} -c "import dbus.mainloop; print(dbus.mainloop.__path__[0])" 2>/dev/null || echo "%{python3_sitearch}/dbus/mainloop")
|
|
|
|
|
%endif
|
|
|
|
|
%global with_python2 1
|
|
|
|
|
%global python2_dbus_dir %(%{__python2} -c "import dbus.mainloop; print(dbus.mainloop.__path__[0])" 2>/dev/null)
|
|
|
|
|
%global python2_dbus_dir %(%{__python2} -c "import dbus.mainloop; print(dbus.mainloop.__path__[0])" 2>/dev/null || echo "%{python2_sitearch}/dbus/mainloop")
|
|
|
|
|
|
|
|
|
|
# enable/disable individual modules
|
|
|
|
|
# drop power64, it's not supported yet (than)
|
|
|
|
@ -207,6 +206,10 @@ Requires: python3-qt5%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
|
|
# debugging
|
|
|
|
|
echo -n "python2 dbus.mainloop path: "
|
|
|
|
|
echo "$(python2 -c "import dbus.mainloop; print(dbus.mainloop.__path__[0])")"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
PATH=%{_qt5_bindir}:$PATH ; export PATH
|
|
|
|
@ -259,7 +262,7 @@ popd
|
|
|
|
|
make install DESTDIR=%{buildroot} INSTALL_ROOT=%{buildroot} -C %{_target_platform}-python3
|
|
|
|
|
# ensure .so modules are executable for proper -debuginfo extraction
|
|
|
|
|
for i in %{buildroot}%{python3_sitearch}/PyQt5/*.so %{buildroot}%{python3_dbus_dir}/pyqt5.so ; do
|
|
|
|
|
chmod a+rx $i
|
|
|
|
|
test -x $i || chmod a+rx $i
|
|
|
|
|
done
|
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
@ -268,7 +271,7 @@ done
|
|
|
|
|
make install DESTDIR=%{buildroot} INSTALL_ROOT=%{buildroot} -C %{_target_platform}
|
|
|
|
|
# ensure .so modules are executable for proper -debuginfo extraction
|
|
|
|
|
for i in %{buildroot}%{python2_sitearch}/PyQt5/*.so %{buildroot}%{python2_dbus_dir}/pyqt5.so ; do
|
|
|
|
|
chmod a+rx $i
|
|
|
|
|
test -x $i || chmod a+rx $i
|
|
|
|
|
done
|
|
|
|
|
%endif # with_python2
|
|
|
|
|
|
|
|
|
|