Blame python-qpageview.spec

1f87861
# Created by pyp2rpm-3.3.8
1f87861
%global pypi_name qpageview
1f87861
%global pypi_version 0.6.2
1f87861
1f87861
Name:           python-%{pypi_name}
1f87861
Version:        %{pypi_version}
fa49175
Release:        7%{?dist}
1f87861
Summary:        Widget to display page-based documents for Qt5/PyQt5
1f87861
1f87861
License:        GPL-3.0-or-later AND GPL-2.0-or-later
1f87861
URL:            https://github.com/frescobaldi/qpageview
1f87861
Source0:        %{pypi_source %pypi_name}
1f87861
BuildArch:      noarch
1f87861
1f87861
BuildRequires:  python3-devel
1f87861
BuildRequires:  python3dist(setuptools)
1f87861
BuildRequires:  python3dist(sphinx)
1f87861
BuildRequires:  python3-qt5
1f87861
BuildRequires:  python3dist(pip)
1f87861
BuildRequires:  python3dist(wheel)
1f87861
BuildRequires:  python3-docs
1f87861
1f87861
%description
1f87861
The qpageview module *qpageview* provides a page based document viewer widget
1f87861
for Qt5/PyQt5.It has a flexible architecture potentionally supporting many
1f87861
formats. Currently, it supports SVG documents, images, and, using the Poppler-
1f87861
Qt5 binding, PDF documents.:: import qpageview from PyQt5.Qt import * a
1f87861
QApplication([]) v qpageview.View() v.show() v.loadPdf("path/to/afile.pdf")
1f87861
Homepage < •...
1f87861
1f87861
%package -n     python3-%{pypi_name}
1f87861
Summary:        %{summary}
1f87861
1f87861
%description -n python3-%{pypi_name}
1f87861
The qpageview module *qpageview* provides a page based document viewer widget
1f87861
for Qt5/PyQt5.It has a flexible architecture potentionally supporting many
1f87861
formats. Currently, it supports SVG documents, images, and, using the Poppler-
1f87861
Qt5 binding, PDF documents.:: import qpageview from PyQt5.Qt import * a
1f87861
QApplication([]) v qpageview.View() v.show() v.loadPdf("path/to/afile.pdf")
1f87861
Homepage < •...
1f87861
1f87861
%package doc
1f87861
Summary:        Documentation for qpageview
1f87861
%description doc
1f87861
Documentation for qpageview
1f87861
1f87861
%prep
1f87861
%autosetup -n %{pypi_name}-%{pypi_version}
1f87861
1f87861
# Use local objects.inv for intersphinx
1f87861
sed -e "s|\('https://docs\.python\.org/3', \)None|\1'%{_docdir}/python3-docs/html/objects.inv'|" \
1f87861
  -i docs/source/conf.py
1f87861
1f87861
%build
1f87861
%pyproject_wheel
1f87861
# generate html docs
1f87861
PYTHONPATH=${PWD} sphinx-build-3 docs/source html
1f87861
# remove the sphinx-build leftovers
1f87861
rm -rf html/.{doctrees,buildinfo}
1f87861
1f87861
%install
1f87861
%pyproject_install
1f87861
%pyproject_save_files qpageview
1f87861
1f87861
%check
1f87861
%pyproject_check_import
1f87861
1f87861
%files -n python3-%{pypi_name} -f %{pyproject_files}
1f87861
%license LICENSE docs/source/license.rst
1f87861
%doc README.rst
1f87861
1f87861
%files doc
1f87861
%doc html
1f87861
%license LICENSE docs/source/license.rst
1f87861
1f87861
%changelog
fa49175
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-7
fa49175
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
fa49175
39822dd
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-6
39822dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
39822dd
8efd836
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-5
8efd836
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
8efd836
b03f2d9
* Fri Jun 16 2023 Python Maint <python-maint@redhat.com> - 0.6.2-4
b03f2d9
- Rebuilt for Python 3.12
b03f2d9
f3e52c1
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-3
f3e52c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
f3e52c1
1f87861
* Tue Aug 23 2022 Gwyn Ciesla <gwync@protonmail.com> - 0.6.2-2
1f87861
- Review fixes.
1f87861
1f87861
* Thu May 05 2022 Gwyn Ciesla <gwync@protonmail.com> - 0.6.2-1
1f87861
- Initial package.