forked from pool/python-qpageview
Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| fb48d7e265 | |||
| ded01138fe |
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 3 17:31:42 UTC 2025 - Cor Blom <cornelis@solcon.nl>
|
||||
|
||||
- Update to 1.0.0:
|
||||
* No longer dependend on poppler
|
||||
* requires Qt6 and python3-qt6
|
||||
- Remove qpageview.pdf and qpageview_smoketest.py
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 6 17:31:50 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package qpageview
|
||||
# spec file for package python-qpageview
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,55 +17,40 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python3-%{**}}
|
||||
%define skip_python2 1
|
||||
%define X_display ":98"
|
||||
Name: python-qpageview
|
||||
Version: 0.6.2
|
||||
Version: 1.0.0
|
||||
Release: 0
|
||||
Summary: Widget to display page-based documents for Qt5/PyQt5
|
||||
License: GPL-3.0-only
|
||||
URL: https://github.com/frescobaldi/qpageview
|
||||
Source: https://files.pythonhosted.org/packages/source/q/qpageview/qpageview-%{version}.tar.gz
|
||||
Source1: qpageview_smoketest.py
|
||||
# Created with Sphinx by `make latexpdf` in the docs subdir
|
||||
Source2: qpageview.pdf
|
||||
BuildRequires: %{python_module poppler-qt5}
|
||||
BuildRequires: %{python_module qt5}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: xorg-x11-server
|
||||
BuildRequires: %{python_module cups}
|
||||
BuildRequires: %{python_module hatchling}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module qt6}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-poppler-qt5
|
||||
Requires: python-qt5
|
||||
Requires: python-qt6
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Widget to display page-based documents for Qt5/PyQt5
|
||||
Widget to display page-based documents for Qt6/PyQt6
|
||||
|
||||
%prep
|
||||
%setup -q -n qpageview-%{version}
|
||||
cp %{SOURCE1} %{SOURCE2} .
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
#############################################
|
||||
### Launch a virtual framebuffer X server ###
|
||||
#############################################
|
||||
export DISPLAY=%{X_display}
|
||||
Xvfb %{X_display} >& Xvfb.log &
|
||||
trap "kill $! || true" EXIT
|
||||
sleep 2
|
||||
%python_expand $python qpageview_smoketest.py
|
||||
|
||||
%files %{python_files}
|
||||
%doc ChangeLog README.rst
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/qpageview
|
||||
%{python_sitelib}/qpageview-%{version}*-info
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1c1e3d6dc5374264e1f7c7d4a78616a811e8131c7ed214aed7e08a71f12923e9
|
||||
size 162193
|
||||
3
qpageview-1.0.0.tar.gz
Normal file
3
qpageview-1.0.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:997a22b5cadc97baebf6f5bbf1d40de006ed3fa8ea16d73e4f774f4d22297d51
|
||||
size 162621
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:350afd0bd065d578ff16a2f24c9aefbc9148c0d8cdfa81a37c5beff3ff6ddb4e
|
||||
size 517896
|
||||
@@ -1,14 +0,0 @@
|
||||
# https://qpageview.org/index.html
|
||||
import qpageview
|
||||
|
||||
from PyQt5.Qt import QApplication
|
||||
a = QApplication([])
|
||||
|
||||
v = qpageview.View()
|
||||
v.show()
|
||||
v.loadPdf("qpageview.pdf")
|
||||
|
||||
v.close()
|
||||
a.quit()
|
||||
|
||||
print("Sucessfully opened and closed a widget")
|
||||
Reference in New Issue
Block a user