From 758fa7d772f2f985c4b3c476ee10ef23a539f5df Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Wed, 16 Jun 2021 23:00:16 -0400 Subject: [PATCH] Update to build with sip5+ --- python3-poppler-qt5.spec | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/python3-poppler-qt5.spec b/python3-poppler-qt5.spec index 6400982..6aaa4e2 100644 --- a/python3-poppler-qt5.spec +++ b/python3-poppler-qt5.spec @@ -1,6 +1,6 @@ Name: python3-poppler-qt5 Version: 21.1.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Python bindings for the Poppler PDF rendering library License: LGPLv2+ @@ -12,8 +12,8 @@ Requires: python3-qt5 BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-qt5-devel -BuildRequires: python3-sip5 -%{?_sip_api:Requires: python%{python3_pkgversion}-pyqt5-sip-api(%{_sip_api_major}) >= %{_sip_api}} +BuildRequires: %{py3_dist sip} >= 5 +BuildRequires: %{py3_dist PyQt-builder} BuildRequires: pkgconfig(poppler-qt5) # we don't want to provide private python extension libs @@ -34,18 +34,27 @@ run programs written in Python 3 and using Poppler set. %patch1 -p1 %build -%py3_build +sip-build --qmake=%{_qt5_qmake} --verbose --no-make \ + --qmake-setting 'QMAKE_CFLAGS_RELEASE="%{optflags}"' \ + --qmake-setting 'QMAKE_CXXFLAGS_RELEASE="%{optflags}"' \ + --qmake-setting 'QMAKE_LFLAGS_RELEASE="%{?__global_ldflags}"' +%make_build -C build %install -%py3_install +%make_install INSTALL_ROOT=%{buildroot} -C build +chmod +x %{buildroot}/%{python3_sitearch}/*.so %files %license LICENSE %doc README.rst %{python3_sitearch}/popplerqt5.cpython-*.so %{python3_sitearch}/python_poppler* +%{python3_sitearch}/PyQt5/bindings/popplerqt5 %changelog +* Sat Jul 03 2021 Scott Talbert - 21.1.0-3 +- Update to build with sip5+ + * Fri Jun 04 2021 Python Maint - 21.1.0-2 - Rebuilt for Python 3.10