2024-01-05 16:28:07 +01:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
2024-01-05 16:28:06 +01:00
|
|
|
Name: python-pypdf
|
2024-09-19 09:42:16 +02:00
|
|
|
Version: 5.0.0
|
2024-01-05 16:28:12 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 16:28:06 +01:00
|
|
|
Summary: PDF toolkit
|
|
|
|
Group: System/Libraries/Python
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-05 16:28:07 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://pypi.org/project/pypdf/
|
|
|
|
Source: https://pypi.debian.net/pypdf/pypdf-%{version}.tar.gz
|
2024-01-05 16:28:06 +01:00
|
|
|
Patch: python-pypdf-1.12-git20100718.patch
|
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-05 16:28:22 +01:00
|
|
|
BuildRequires: libpython311-devel
|
2024-01-05 16:28:06 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
A Pure-Python library built as a PDF toolkit.
|
|
|
|
|
|
|
|
It is capable of:
|
|
|
|
* extracting document information (title, author, ...),
|
|
|
|
* splitting documents page by page,
|
|
|
|
* merging documents page by page,
|
|
|
|
* cropping pages,
|
|
|
|
* merging multiple pages into a single page,
|
|
|
|
* encrypting and decrypting PDF files.
|
|
|
|
|
2024-01-05 16:28:07 +01:00
|
|
|
%if 0%{?with_pyver}
|
2024-01-05 16:28:11 +01:00
|
|
|
%if "%{?with_pyver}" == "3"
|
2024-01-05 16:28:07 +01:00
|
|
|
%define py_requires_append \
|
|
|
|
Provides: python-pyPdf \
|
|
|
|
Obsoletes: python-pyPdf < 3.2.1 \
|
|
|
|
Provides: python-pypdf \
|
|
|
|
Obsoletes: python-pypdf < 3.2.1
|
2024-01-05 16:28:11 +01:00
|
|
|
%endif
|
2024-01-05 16:28:07 +01:00
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
2024-01-05 16:28:06 +01:00
|
|
|
%prep
|
2024-01-05 16:28:07 +01:00
|
|
|
%setup -q -n pypdf-%{version}
|
2024-01-05 16:28:06 +01:00
|
|
|
#%patch -p1
|
|
|
|
|
|
|
|
%build
|
2024-01-05 16:28:07 +01:00
|
|
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
2024-01-05 16:28:06 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 16:28:07 +01:00
|
|
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
2024-01-05 16:28:06 +01:00
|
|
|
|
2024-01-05 16:28:07 +01:00
|
|
|
#%if "%{?with_pyver}" != "3"
|
|
|
|
## Rename any conflicting file outside of python site packages tree
|
|
|
|
#for f in %{_bindir}/pdm; do
|
|
|
|
# mv %{buildroot}${f}{,-%{?pyappend}}
|
|
|
|
#done
|
|
|
|
#%endif
|
2024-01-05 16:28:06 +01:00
|
|
|
|
2024-01-05 16:28:07 +01:00
|
|
|
%files %{?pyappend}
|
2024-01-05 16:28:06 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-05 16:28:07 +01:00
|
|
|
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
|
|
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
|
|
|
%dir %{python_sitelib}/%{pkgname}
|
|
|
|
%{python_sitelib}/%{pkgname}/*
|
2024-01-05 16:28:06 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-09-19 09:42:16 +02:00
|
|
|
* Wed Sep 18 2024 Automatic Build System <autodist@openmamba.org> 5.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-07-22 10:42:10 +02:00
|
|
|
* Mon Jul 22 2024 Automatic Build System <autodist@openmamba.org> 4.3.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-07-18 01:21:10 +02:00
|
|
|
* Tue Jul 16 2024 Automatic Build System <autodist@openmamba.org> 4.3.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-04-09 11:10:40 +02:00
|
|
|
* Mon Apr 08 2024 Automatic Build System <autodist@openmamba.org> 4.2.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-03-04 11:43:52 +01:00
|
|
|
* Mon Mar 04 2024 Automatic Build System <autodist@openmamba.org> 4.1.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-02-19 09:56:30 +01:00
|
|
|
* Mon Feb 19 2024 Automatic Build System <autodist@openmamba.org> 4.0.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-29 21:01:40 +01:00
|
|
|
* Mon Jan 29 2024 Automatic Build System <autodist@openmamba.org> 4.0.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-20 11:14:30 +01:00
|
|
|
* Fri Jan 19 2024 Automatic Build System <autodist@openmamba.org> 4.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:25 +01:00
|
|
|
* Sun Dec 24 2023 Automatic Build System <autodist@mambasoft.it> 3.17.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:24 +01:00
|
|
|
* Mon Dec 18 2023 Automatic Build System <autodist@mambasoft.it> 3.17.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:24 +01:00
|
|
|
* Sun Dec 10 2023 Automatic Build System <autodist@mambasoft.it> 3.17.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:24 +01:00
|
|
|
* Tue Nov 14 2023 Automatic Build System <autodist@mambasoft.it> 3.17.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:23 +01:00
|
|
|
* Sun Oct 29 2023 Automatic Build System <autodist@mambasoft.it> 3.17.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:23 +01:00
|
|
|
* Wed Oct 11 2023 Automatic Build System <autodist@mambasoft.it> 3.16.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:23 +01:00
|
|
|
* Sun Oct 08 2023 Automatic Build System <autodist@mambasoft.it> 3.16.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:22 +01:00
|
|
|
* Mon Sep 25 2023 Automatic Build System <autodist@mambasoft.it> 3.16.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:22 +01:00
|
|
|
* Mon Sep 18 2023 Automatic Build System <autodist@mambasoft.it> 3.16.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:22 +01:00
|
|
|
* Mon Sep 11 2023 Automatic Build System <autodist@mambasoft.it> 3.16.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:21 +01:00
|
|
|
* Mon Sep 04 2023 Automatic Build System <autodist@mambasoft.it> 3.15.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:21 +01:00
|
|
|
* Sun Aug 27 2023 Automatic Build System <autodist@mambasoft.it> 3.15.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:21 +01:00
|
|
|
* Sat Aug 26 2023 Automatic Build System <autodist@mambasoft.it> 3.15.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:20 +01:00
|
|
|
* Mon Aug 21 2023 Automatic Build System <autodist@mambasoft.it> 3.15.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:20 +01:00
|
|
|
* Mon Aug 14 2023 Automatic Build System <autodist@mambasoft.it> 3.15.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:19 +01:00
|
|
|
* Mon Aug 07 2023 Automatic Build System <autodist@mambasoft.it> 3.15.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:18 +01:00
|
|
|
* Sun Jul 30 2023 Automatic Build System <autodist@mambasoft.it> 3.14.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:18 +01:00
|
|
|
* Mon Jul 24 2023 Automatic Build System <autodist@mambasoft.it> 3.13.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:17 +01:00
|
|
|
* Mon Jul 17 2023 Automatic Build System <autodist@mambasoft.it> 3.12.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:17 +01:00
|
|
|
* Mon Jul 10 2023 Automatic Build System <autodist@mambasoft.it> 3.12.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:16 +01:00
|
|
|
* Mon Jul 03 2023 Automatic Build System <autodist@mambasoft.it> 3.12.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:15 +01:00
|
|
|
* Wed Jun 28 2023 Automatic Build System <autodist@mambasoft.it> 3.11.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:15 +01:00
|
|
|
* Sat Jun 24 2023 Automatic Build System <autodist@mambasoft.it> 3.11.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:14 +01:00
|
|
|
* Mon Jun 19 2023 Automatic Build System <autodist@mambasoft.it> 3.10.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:13 +01:00
|
|
|
* Mon Jun 05 2023 Automatic Build System <autodist@mambasoft.it> 3.9.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:13 +01:00
|
|
|
* Mon May 22 2023 Automatic Build System <autodist@mambasoft.it> 3.9.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:12 +01:00
|
|
|
* Mon Apr 24 2023 Automatic Build System <autodist@mambasoft.it> 3.8.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:12 +01:00
|
|
|
* Mon Apr 17 2023 Automatic Build System <autodist@mambasoft.it> 3.8.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:11 +01:00
|
|
|
* Wed Apr 12 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 3.7.1-2mamba
|
|
|
|
- fix cross obsoletes
|
|
|
|
|
|
|
|
* Mon Apr 10 2023 Automatic Build System <autodist@mambasoft.it> 3.7.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:11 +01:00
|
|
|
* Tue Mar 28 2023 Automatic Build System <autodist@mambasoft.it> 3.7.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:10 +01:00
|
|
|
* Sun Mar 19 2023 Automatic Build System <autodist@mambasoft.it> 3.6.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:10 +01:00
|
|
|
* Mon Mar 13 2023 Automatic Build System <autodist@mambasoft.it> 3.5.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:09 +01:00
|
|
|
* Sun Mar 05 2023 Automatic Build System <autodist@mambasoft.it> 3.5.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:09 +01:00
|
|
|
* Tue Feb 28 2023 Automatic Build System <autodist@mambasoft.it> 3.5.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:08 +01:00
|
|
|
* Mon Feb 13 2023 Automatic Build System <autodist@mambasoft.it> 3.4.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:08 +01:00
|
|
|
* Tue Feb 07 2023 Automatic Build System <autodist@mambasoft.it> 3.4.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:07 +01:00
|
|
|
* Mon Jan 23 2023 Automatic Build System <autodist@mambasoft.it> 3.3.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:28:07 +01:00
|
|
|
* Wed Jan 18 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.1-1mamba
|
|
|
|
- update to 3.2.1
|
|
|
|
|
2024-01-05 16:28:06 +01:00
|
|
|
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.13-2mamba
|
|
|
|
- python 2.7 mass rebuild
|
|
|
|
|
|
|
|
* Fri Dec 31 2010 Automatic Build System <autodist@mambasoft.it> 1.13-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu Oct 14 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 1.12-4mamba
|
|
|
|
- updated the patch to git version 20100718 to fix all DeprecationWarnings
|
|
|
|
|
|
|
|
* Wed Oct 13 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 1.12-3mamba
|
|
|
|
- added a patch to fix a python DeprecationWarning
|
|
|
|
|
|
|
|
* Tue Oct 12 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 1.12-2mamba
|
|
|
|
- package renamed from python-pyPdf to python-pypdf
|
|
|
|
- added missing build requirements
|
|
|
|
- changed arch to noarch
|
|
|
|
|
|
|
|
* Fri May 15 2009 gil <puntogil@libero.it> 1.12-1mamba
|
|
|
|
- package created by autospec
|