%define branch_ver %(echo %version |cut -d. -f3 | tr _ -) Name: PythonQt Version: 3.2 Release: 2mamba Summary: A dynamic Python binding for the Qt framework Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://pythonqt.sourceforge.net/ Source: http://downloads.sourceforge.net/project/pythonqt/pythonqt/PythonQt-%{version}/PythonQt%{version}.zip Source1: pythonqt-pkgconfig_file.prf Patch0: PythonQt-3.2-faster_build.patch Patch1: PythonQt-3.2-pkgconfig-file.patch License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: ldconfig BuildRequires: libGL-devel BuildRequires: libQt5WebKit-devel BuildRequires: libgcc BuildRequires: libpython3-devel BuildRequires: libqt5-devel BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description %{summary}. %package -n lib%{name} Group: System/Libraries Summary: A dynamic Python binding for the Qt framework %description -n lib%{name} PythonQt is a dynamic Python binding for the Qt framework. This package contains the %{name} shared library. %package -n lib%{name}-devel Group: Development/Libraries Summary: Development files for %{name} Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} %description -n lib%{name}-devel This package contains libraries and header files for developing applications that use %{name}. %debug_package %prep %setup -q -n PythonQt%{version} #-D -T #:<< _EOF %patch0 -p1 %patch1 -p1 sed -i "s|PYTHON_VERSION=2.7|PYTHON_VERSION=3.6|" build/python.prf cp %{SOURCE1} build/pkgconfig_file.prf %build #:<< _EOF qmake-qt5 \ QMAKE_CFLAGS="%{optflags}" \ QMAKE_CXXFLAGS="%{optflags}" \ CONFIG+=release \ CONFIG+=c++14 %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" # Includes mkdir -p %{buildroot}%{_includedir}/PythonQt/{gui,extensions/PythonQt_QtAll} cp src/*.h %{buildroot}%{_includedir}/PythonQt/ cp src/gui/*.h %{buildroot}%{_includedir}/PythonQt/gui/ cp extensions/PythonQt_QtAll/*.h %{buildroot}%{_includedir}/PythonQt/extensions/PythonQt_QtAll/ # Library mkdir -p %{buildroot}%{_libdir} cp -a lib/*.so* %{buildroot}%{_libdir} # pkg-config file mkdir -p %{buildroot}%{_datadir} cp -R pkgconfig %{buildroot}%{_datadir}/ %post -n lib%{name} -p /sbin/ldconfig %postun -n lib%{name} -p /sbin/ldconfig %files -n lib%{name} %defattr(-,root,root) %{_libdir}/libPythonQt-Qt5-Python3.6.so.* %{_libdir}/libPythonQt_QtAll-Qt5-Python3.6.so.* %doc COPYING %files -n lib%{name}-devel %defattr(-,root,root) %dir %{_includedir}/PythonQt %{_includedir}/PythonQt/*.h %dir %{_includedir}/PythonQt/extensions %dir %{_includedir}/PythonQt/extensions/PythonQt_QtAll %{_includedir}/PythonQt/extensions/PythonQt_QtAll/*.h %dir %{_includedir}/PythonQt/gui/ %{_includedir}/PythonQt/gui/*.h %{_libdir}/libPythonQt-Qt5-Python3.6.so %{_libdir}/libPythonQt_QtAll-Qt5-Python3.6.so %{_datadir}/pkgconfig/PythonQt.pc %changelog * Sun Dec 22 2019 Silvan Calarco 3.2-2mamba - rebuilt based on python 3.6 for calamares * Sat Dec 21 2019 Silvan Calarco 3.2-1mamba - update to 3.2 * Sat Dec 21 2019 Silvan Calarco 1.20191221git.patched_9-1mamba - update to 1.20191221git.patched-9 * Fri Jul 05 2019 Silvan Calarco 0.r455-2mamba - rebuilt with -DPythonQt_Wrap_QtAll=ON * Sun Jun 30 2019 Silvan Calarco 0.r455-1mamba - package created using the webbuild interface