Update to build with sip5+
This commit is contained in:
parent
d8de6fd5c5
commit
758fa7d772
@ -1,6 +1,6 @@
|
|||||||
Name: python3-poppler-qt5
|
Name: python3-poppler-qt5
|
||||||
Version: 21.1.0
|
Version: 21.1.0
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Python bindings for the Poppler PDF rendering library
|
Summary: Python bindings for the Poppler PDF rendering library
|
||||||
|
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
@ -12,8 +12,8 @@ Requires: python3-qt5
|
|||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python3-qt5-devel
|
BuildRequires: python3-qt5-devel
|
||||||
BuildRequires: python3-sip5
|
BuildRequires: %{py3_dist sip} >= 5
|
||||||
%{?_sip_api:Requires: python%{python3_pkgversion}-pyqt5-sip-api(%{_sip_api_major}) >= %{_sip_api}}
|
BuildRequires: %{py3_dist PyQt-builder}
|
||||||
BuildRequires: pkgconfig(poppler-qt5)
|
BuildRequires: pkgconfig(poppler-qt5)
|
||||||
|
|
||||||
# we don't want to provide private python extension libs
|
# 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
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%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
|
%install
|
||||||
%py3_install
|
%make_install INSTALL_ROOT=%{buildroot} -C build
|
||||||
|
chmod +x %{buildroot}/%{python3_sitearch}/*.so
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python3_sitearch}/popplerqt5.cpython-*.so
|
%{python3_sitearch}/popplerqt5.cpython-*.so
|
||||||
%{python3_sitearch}/python_poppler*
|
%{python3_sitearch}/python_poppler*
|
||||||
|
%{python3_sitearch}/PyQt5/bindings/popplerqt5
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jul 03 2021 Scott Talbert <swt@techie.net> - 21.1.0-3
|
||||||
|
- Update to build with sip5+
|
||||||
|
|
||||||
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 21.1.0-2
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 21.1.0-2
|
||||||
- Rebuilt for Python 3.10
|
- Rebuilt for Python 3.10
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user