RPM: update pytqt

Signed-off-by: François Andriot <albator78@libertysurf.fr>
pull/219/head
François Andriot 2 years ago
parent c0dd088baf
commit 09e63fe074

@ -73,19 +73,9 @@ BuildRequires: libtqscintilla-devel >= %{?epoch:%{epoch}:}1.7.1
BuildRequires: gcc-c++ BuildRequires: gcc-c++
# PYTHON support # PYTHON support
%if 0%{?sle_version} >= 150400
%define python python3 %define python python3
%define __python %__python3 %define __python %__python3
%else %{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%if 0%{?rhel} >= 8 || 0%{?fedora} >= 31 || 0%{?suse_version} >= 1550 || 0%{?mgaversion} >= 8
%global python python2
%global __python %__python2
%global python_sitearch %{python2_sitearch}
%else
%global python python
%endif
%{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%endif
BuildRequires: %{python} BuildRequires: %{python}
BuildRequires: %{python}-devel BuildRequires: %{python}-devel
@ -148,15 +138,15 @@ same way in both languages (with syntax differences, of course)
%files -n pytqt %files -n pytqt
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc NEWS README %doc NEWS README
%dir %{python_sitearch}/python_tqt %dir %{python_sitearch}/PyTQt
%{python_sitearch}/python_tqt/__init__.py* %{python_sitearch}/PyTQt/__init__.py*
%{python_sitearch}/python_tqt/qt.so %{python_sitearch}/PyTQt/tqt.so
%{python_sitearch}/python_tqt/qtcanvas.so %{python_sitearch}/PyTQt/tqtcanvas.so
%{python_sitearch}/python_tqt/qtnetwork.so %{python_sitearch}/PyTQt/tqtnetwork.so
%{python_sitearch}/python_tqt/qtsql.so %{python_sitearch}/PyTQt/tqtsql.so
%{python_sitearch}/python_tqt/qttable.so %{python_sitearch}/PyTQt/tqttable.so
%{python_sitearch}/python_tqt/qtui.so %{python_sitearch}/PyTQt/tqtui.so
%{python_sitearch}/python_tqt/qtxml.so %{python_sitearch}/PyTQt/tqtxml.so
########## ##########
@ -174,7 +164,7 @@ portable graphics-capable scripts.
%files -n pytqt-gl %files -n pytqt-gl
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{python_sitearch}/python_tqt/qtgl.so %{python_sitearch}/PyTQt/tqtgl.so
########## ##########
@ -193,7 +183,7 @@ pytqt Extensions. Contains:
%files -n pytqt-tqtext %files -n pytqt-tqtext
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{python_sitearch}/python_tqt/qtext.so %{python_sitearch}/PyTQt/tqtext.so
########## ##########
@ -211,8 +201,9 @@ Linguist translation files from Python code.
%files -n trinity-pytqt-tools %files -n trinity-pytqt-tools
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{tde_bindir}/pylupdate %{tde_bindir}/pytqlupdate
%{tde_bindir}/pyuic %{tde_bindir}/pytquic
%{python_sitearch}/PyTQt/__pycache__/
########## ##########
@ -232,7 +223,7 @@ packages based on them, like PyTDE.
%files -n pytqt-devel %files -n pytqt-devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{python_sitearch}/python_tqt/pyqtconfig.py* %{python_sitearch}/PyTQt/pytqtconfig.py*
%dir %{_datadir}/sip %dir %{_datadir}/sip
%{_datadir}/sip/tqt/ %{_datadir}/sip/tqt/
@ -255,16 +246,13 @@ export PATH="%{tde_bindir}:${PATH}"
mkdir build mkdir build
cd build cd build
# WTF ? CentOS 6 !
cp -rf ../pyuic3 ../pylupdate3
echo yes | %__python ../configure.py \ echo yes | %__python ../configure.py \
-c -n %{_includedir}/tqscintilla \ -c -n %{_includedir}/tqt3 \
-g %{_includedir}/tqt3 \ -g %{_includedir}/tqt3 \
-q %{_datadir}/tqt3 \ -q %{_datadir}/tqt3 \
-y tqt-mt \ -y tqt-mt \
-o %{_libdir} -u -j 10 \ -o %{_libdir} -u -j 10 \
-d %{python_sitearch}/python_tqt \ -d %{python_sitearch}/PyTQt \
-v %{_datadir}/sip/tqt \ -v %{_datadir}/sip/tqt \
-b %{tde_bindir} \ -b %{tde_bindir} \
-w \ -w \
@ -282,7 +270,7 @@ echo yes | %__python ../configure.py \
%clean %clean
%__rm -rf %{?buildroot}%{python_sitearch}/python_tqt/__init__.py %__rm -rf %{?buildroot}%{python_sitearch}/PyTQt/__init__.py
%changelog %changelog

Loading…
Cancel
Save