Compare commits
23 Commits
rawhide
...
main-riscv
Author | SHA1 | Date |
---|---|---|
David Abdurachmanov | 49e1826faf | |
Elliott Sales de Andrade | ba17f56225 | |
Elliott Sales de Andrade | bc419830b5 | |
Elliott Sales de Andrade | c82b18054b | |
Elliott Sales de Andrade | ae960c55d4 | |
Elliott Sales de Andrade | 931e2a9a53 | |
Elliott Sales de Andrade | dceafff9ff | |
Elliott Sales de Andrade | c0930c826d | |
Elliott Sales de Andrade | f70963105f | |
Fedora Release Engineering | db6c939414 | |
Python Maint | f0c33b4226 | |
Tomáš Hrnčiar | c97807bc97 | |
Python Maint | 07018b8eb9 | |
Elliott Sales de Andrade | 2b65199b2f | |
Tomáš Hrnčiar | 302ecf14a8 | |
Tomáš Hrnčiar | 1449a4c86e | |
Elliott Sales de Andrade | 71c3f8dde5 | |
Elliott Sales de Andrade | 3961714e0b | |
Fedora Release Engineering | dfe9e6cf79 | |
Elliott Sales de Andrade | d120ff7784 | |
Elliott Sales de Andrade | e7a519b03e | |
Elliott Sales de Andrade | 23a8939428 | |
Elliott Sales de Andrade | 1f4be93b74 |
|
@ -89,3 +89,18 @@
|
|||
/pikepdf-6.0.2.tar.gz
|
||||
/pikepdf-6.2.0.tar.gz
|
||||
/pikepdf-6.2.1.tar.gz
|
||||
/pikepdf-6.2.4.tar.gz
|
||||
/pikepdf-6.2.5.tar.gz
|
||||
/pikepdf-6.2.6.tar.gz
|
||||
/pikepdf-6.2.7.tar.gz
|
||||
/pikepdf-7.1.1.tar.gz
|
||||
/pikepdf-7.1.2.tar.gz
|
||||
/pikepdf-7.2.0.tar.gz
|
||||
/pikepdf-8.2.2.tar.gz
|
||||
/pikepdf-8.3.2.tar.gz
|
||||
/pikepdf-8.4.0.tar.gz
|
||||
/pikepdf-8.4.1.tar.gz
|
||||
/pikepdf-8.5.0.tar.gz
|
||||
/pikepdf-8.5.3.tar.gz
|
||||
/pikepdf-8.7.1.tar.gz
|
||||
/pikepdf-8.8.0.tar.gz
|
||||
|
|
|
@ -1,19 +1,25 @@
|
|||
%global srcname pikepdf
|
||||
|
||||
# Bconds are needed for Python bootstrap
|
||||
%bcond docs 0
|
||||
%bcond tests 0
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: 6.2.1
|
||||
Release: %autorelease
|
||||
Version: 8.8.0
|
||||
Release: %autorelease -e 0.riscv64
|
||||
Summary: Read and write PDFs with Python, powered by qpdf
|
||||
|
||||
License: MPLv2.0
|
||||
License: MPL-2.0
|
||||
URL: https://github.com/pikepdf/pikepdf
|
||||
Source0: %pypi_source
|
||||
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: qpdf-devel >= 11.1.0
|
||||
BuildRequires: qpdf-devel >= 11.5.0
|
||||
BuildRequires: python3-devel
|
||||
%if %{with tests}
|
||||
# Tests:
|
||||
BuildRequires: poppler-utils
|
||||
%endif
|
||||
|
||||
%description
|
||||
pikepdf is a Python library for reading and writing PDF files. pikepdf is
|
||||
|
@ -28,6 +34,7 @@ pikepdf is a Python library for reading and writing PDF files. pikepdf is
|
|||
based on QPDF, a powerful PDF manipulation and repair library.
|
||||
|
||||
|
||||
%if %{with docs}
|
||||
%package -n python-%{srcname}-doc
|
||||
Summary: pikepdf documentation
|
||||
|
||||
|
@ -36,6 +43,7 @@ BuildRequires: python3-ipython-sphinx
|
|||
|
||||
%description -n python-%{srcname}-doc
|
||||
Documentation for pikepdf
|
||||
%endif
|
||||
|
||||
|
||||
%prep
|
||||
|
@ -44,24 +52,28 @@ Documentation for pikepdf
|
|||
# Drop coverage requirements
|
||||
sed -i -e '/coverage/d' -e '/pytest-cov/d' setup.cfg
|
||||
|
||||
%if %{with docs}
|
||||
# We don't build docs against the installed version, so force the version.
|
||||
sed -i -e "s/release = .\+/release = '%{version}'/g" docs/conf.py
|
||||
%endif
|
||||
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires -r -x docs -x test
|
||||
%pyproject_buildrequires %{?with_docs: -x docs} %{?with_tests: -x test}
|
||||
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%if %{with docs}
|
||||
# generate html docs
|
||||
export PYTHONPATH="%{pyproject_build_lib}"
|
||||
export PYTHONPATH="$PWD/build/lib.%{python3_platform}-cpython-%{python3_version_nodots}"
|
||||
pushd docs
|
||||
sphinx-build-3 . ../html
|
||||
popd
|
||||
# remove the sphinx-build leftovers
|
||||
rm -rf html/.{doctrees,buildinfo}
|
||||
%endif
|
||||
|
||||
|
||||
%install
|
||||
|
@ -69,17 +81,25 @@ rm -rf html/.{doctrees,buildinfo}
|
|||
%pyproject_save_files %{srcname}
|
||||
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
%{pytest} -ra
|
||||
%{pytest} -ra \
|
||||
%if %{fedora} >= 39
|
||||
-k 'not test_stack_depth' \
|
||||
%endif
|
||||
%{nil}
|
||||
%endif
|
||||
|
||||
|
||||
%files -n python3-%{srcname} -f %{pyproject_files}
|
||||
%license LICENSE.txt
|
||||
%doc README.md
|
||||
|
||||
%if %{with docs}
|
||||
%files -n python-%{srcname}-doc
|
||||
%doc html
|
||||
%license LICENSE.txt
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
|
|
2
sources
2
sources
|
@ -1 +1 @@
|
|||
SHA512 (pikepdf-6.2.1.tar.gz) = e0a8c2648b2327edaf0958a2cca738320cf24afa5b13f27e065f92b41fd943d4a4b6831d4e6d6a00315e48b503dba15edf39376ff70d3fa9114dd8154ee0a389
|
||||
SHA512 (pikepdf-8.8.0.tar.gz) = 91bdf67a800c18559172c7a253859e6e5ef443b0f6e2d2f3af21042db2640f9d96a8fb5764e6ddd64ace248788e32b071ed624c95a6a0557ba19dc6fc33fdf76
|
||||
|
|
Loading…
Reference in New Issue