commit 66e9733930f5ae63bcfe397f92ebd1adeb8a222a02d1a566d21518746b348644 Author: Markéta Machová Date: Mon Oct 10 14:08:56 2022 +0000 Accepting request 1009323 from home:dgarcia Required by new version of python-xhtml2pdf https://github.com/xhtml2pdf/xhtml2pdf/blob/v0.2.8/requirements.txt#L5 OBS-URL: https://build.opensuse.org/request/show/1009323 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyPDF3?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/PyPDF3-1.0.6.tar.gz b/PyPDF3-1.0.6.tar.gz new file mode 100644 index 0000000..d3a40e8 --- /dev/null +++ b/PyPDF3-1.0.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c946f3273419e37258e35e72273f49904ab15723d87a761c1115ef99799f8c5f +size 294825 diff --git a/python-PyPDF3.changes b/python-PyPDF3.changes new file mode 100644 index 0000000..a017b39 --- /dev/null +++ b/python-PyPDF3.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Oct 10 08:44:36 UTC 2022 - Daniel Garcia + +- Initial release diff --git a/python-PyPDF3.spec b/python-PyPDF3.spec new file mode 100644 index 0000000..8b73524 --- /dev/null +++ b/python-PyPDF3.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-PyPDF3 +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-PyPDF3 +Version: 1.0.6 +Release: 0 +Summary: Pure Python PDF toolkit +License: BSD-3-Clause +URL: https://github.com/sfneal/PyPDF3 +Source: https://files.pythonhosted.org/packages/source/P/PyPDF3/PyPDF3-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +# SECTION test requirements +BuildRequires: %{python_module tqdm} +BuildRequires: %{python_module pytest} +# /SECTION +BuildRequires: fdupes +Requires: python-tqdm +BuildArch: noarch +%python_subpackages + +%description +PyPDF3 is a pure-python PDF library capable of splitting, merging together, +cropping, and transforming the pages of PDF files. It can also add custom data, +viewing options, and passwords to PDF files. It can retrieve text and metadata +from PDFs as well as merge entire files together. + +%prep +%setup -q -n PyPDF3-%{version} +#remove shebang +sed -i '1{\@^#!/usr/bin/env@ d}' PyPDF3/pagerange.py + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest tests/*.py + +%files %{python_files} +%doc CHANGELOG README.md +%license LICENSE +%{python_sitelib}/* + +%changelog