65bc87a
Name:           python3-poppler-qt5
ff1a754
Version:        21.3.0
003ab9f
Release:        9%{?dist}
65bc87a
Summary:        Python bindings for the Poppler PDF rendering library
65bc87a
f1cbacc
License:        LGPL-2.1-or-later
e47fbb6
URL:            https://github.com/frescobaldi/python-poppler-qt5
e47fbb6
Source0:        %{url}/archive/v%{version}.tar.gz#/python-poppler-qt5-%{version}.tar.gz
cc5bb24
Patch0:         binpaths.patch
cc5bb24
Patch1:         40e71ad88173d02648bceb2438bc0567e60dacd5.patch
65bc87a
Requires: python3-qt5
65bc87a
BuildRequires:  python3-devel
6775aae
BuildRequires:  python3-setuptools
65bc87a
BuildRequires:  python3-qt5-devel
758fa7d
BuildRequires:  %{py3_dist sip} >= 5
758fa7d
BuildRequires:  %{py3_dist PyQt-builder}
65bc87a
BuildRequires:  pkgconfig(poppler-qt5)
65bc87a
65bc87a
# we don't want to provide private python extension libs
65bc87a
%{?filter_setup:
65bc87a
%filter_provides_in %{python3_sitearch}/.*\.so$
65bc87a
%filter_setup
65bc87a
}
65bc87a
65bc87a
%description
65bc87a
Python 3 bindings for the Poppler PDF rendering library. It is needed to
65bc87a
run programs written in Python 3 and using Poppler set.
65bc87a
65bc87a
65bc87a
%prep
65bc87a
%setup -qn python-poppler-qt5-%{version}
65bc87a
cc5bb24
%patch0 -p0
ff1a754
#%patch1 -p1
65bc87a
65bc87a
%build
758fa7d
sip-build --qmake=%{_qt5_qmake} --verbose --no-make \
758fa7d
  --qmake-setting 'QMAKE_CFLAGS_RELEASE="%{optflags}"' \
758fa7d
  --qmake-setting 'QMAKE_CXXFLAGS_RELEASE="%{optflags}"' \
758fa7d
  --qmake-setting 'QMAKE_LFLAGS_RELEASE="%{?__global_ldflags}"'
758fa7d
%make_build -C build
65bc87a
65bc87a
%install
758fa7d
%make_install INSTALL_ROOT=%{buildroot} -C build
758fa7d
chmod +x %{buildroot}/%{python3_sitearch}/*.so
65bc87a
65bc87a
%files
65bc87a
%license LICENSE
65bc87a
%doc README.rst
65bc87a
%{python3_sitearch}/popplerqt5.cpython-*.so
65bc87a
%{python3_sitearch}/python_poppler*
758fa7d
%{python3_sitearch}/PyQt5/bindings/popplerqt5
65bc87a
65bc87a
%changelog
003ab9f
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 21.3.0-9
003ab9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
003ab9f
c8bfbee
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 21.3.0-8
c8bfbee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
c8bfbee
7029a02
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 21.3.0-7
7029a02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
7029a02
0386df2
* Fri Jun 16 2023 Python Maint <python-maint@redhat.com> - 21.3.0-6
0386df2
- Rebuilt for Python 3.12
0386df2
f1cbacc
* Fri Mar 03 2023 Gwyn Ciesla <gwync@protonmail.com> - 21.3.0-5
f1cbacc
- migrated to SPDX license
f1cbacc
7d2a4c9
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 21.3.0-4
7d2a4c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
7d2a4c9
b66d165
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 21.3.0-3
b66d165
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
b66d165
092caf4
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 21.3.0-2
092caf4
- Rebuilt for Python 3.11
092caf4
ff1a754
* Tue May 10 2022 Gwyn Ciesla <gwync@protonmail.com> - 21.3.0-1
ff1a754
- 21.3.0
ff1a754
4b43a57
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 21.1.0-5
4b43a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
4b43a57
8e4ae58
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 21.1.0-4
8e4ae58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
8e4ae58
758fa7d
* Sat Jul 03 2021 Scott Talbert <swt@techie.net> - 21.1.0-3
758fa7d
- Update to build with sip5+
758fa7d
d8de6fd
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 21.1.0-2
d8de6fd
- Rebuilt for Python 3.10
d8de6fd
cc5bb24
* Tue Feb 23 2021 Gwyn Ciesla <gwync@protonmail.com> - 21.1.0-1
cc5bb24
- 21.1.0
cc5bb24
fcae25e
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.75.0-7
fcae25e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
fcae25e
93d4d33
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.75.0-6
93d4d33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
93d4d33
6775aae
* Tue Jun 23 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.75.0-5
6775aae
- BR python3-setuptools
6775aae
c73c37b
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.75.0-4
c73c37b
- Rebuilt for Python 3.9
c73c37b
6a782a7
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.75.0-3
6a782a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6a782a7
5d4b535
* Fri Jan 17 2020 Marek Kasik <mkasik@redhat.com> - 0.75.0-2
5d4b535
- Rebuild for poppler-0.84.0
5d4b535
e47fbb6
* Fri Nov 22 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.75.0-1
e47fbb6
- 0.75.0
e47fbb6
503f008
* Wed Sep 18 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.74.0-1
503f008
- 0.74.0
503f008
ee82afe
* Wed Sep 18 2019 Rex Dieter <rdieter@fedoraproject.org> - 0.24.2-15
ee82afe
- fix sip dep harder
ee82afe
5aacdb4
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.24.2-14
5aacdb4
- Rebuilt for Python 3.8
5aacdb4
516df46
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.2-13
516df46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
516df46
901f5cb
* Sun May 26 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.24.2-12
901f5cb
- Fix sip deps again.
901f5cb
cac485a
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.2-11
cac485a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
cac485a
12b0c4d
* Mon Dec 10 2018 Miro Hrončok <mhroncok@redhat.com> - 0.24.2-10
12b0c4d
- Don't drag in Python 2 via sip-devel
12b0c4d
1528908
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.2-9
1528908
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1528908
ae0c218
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.24.2-8
ae0c218
- Rebuilt for Python 3.7
ae0c218
acf9608
* Fri Mar 23 2018 Marek Kasik <mkasik@redhat.com> - 0.24.2-7
acf9608
- Rebuild for poppler-0.63.0
acf9608
52b022a
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.2-6
52b022a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
52b022a
5a47f5d
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.2-5
5a47f5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
5a47f5d
f736662
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.2-4
f736662
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f736662
Igor Gnatenko 6339cb8
* Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.24.2-3
Igor Gnatenko 6339cb8
- Rebuild due to bug in RPM (RHBZ #1468476)
Igor Gnatenko 6339cb8
65bc87a
* Fri Jun 09 2017 Gwyn Ciesla <limburgher@gmail.com> - 0.24.2-2
65bc87a
- Review fixes.
65bc87a
65bc87a
* Thu Jun 08 2017 Gwyn Ciesla <limburgher@gmail.com> - 0.24.2-1
65bc87a
- Initial package for Fedora