|
|
df16d78 |
%global with_python3 1
|
|
|
65bf3e8 |
%global sum Python PDF toolkit and library
|
|
|
df16d78 |
|
|
|
df16d78 |
Name: python-PyPDF2
|
|
|
df16d78 |
Version: 1.25.1
|
|
|
28a8a0d |
Release: 9%{?dist}
|
|
|
df16d78 |
License: BSD
|
|
|
65bf3e8 |
Summary: %{sum}
|
|
|
df16d78 |
Group: Development/Libraries
|
|
|
df16d78 |
Source: https://pypi.python.org/packages/source/P/PyPDF2/PyPDF2-%{version}.tar.gz
|
|
|
df16d78 |
URL: https://github.com/mstamy2/PyPDF2
|
|
|
df16d78 |
|
|
|
df16d78 |
BuildArch: noarch
|
|
|
df16d78 |
|
|
|
df16d78 |
|
|
|
df16d78 |
%description
|
|
|
df16d78 |
A pure Python library built as a PDF toolkit. It is capable of:
|
|
|
65bf3e8 |
|
|
|
65bf3e8 |
- extracting document information (title, author, ...),
|
|
|
65bf3e8 |
- splitting documents page by page,
|
|
|
65bf3e8 |
- merging documents page by page,
|
|
|
65bf3e8 |
- cropping pages,
|
|
|
65bf3e8 |
- merging multiple pages into a single page,
|
|
|
65bf3e8 |
- encryption and decryption of PDF files.
|
|
|
65bf3e8 |
|
|
|
65bf3e8 |
By being pure Python, it should run on any Python platform without any
|
|
|
65bf3e8 |
dependencies on external libraries. It can also work entirely on StringIO
|
|
|
65bf3e8 |
objects rather than file streams, allowing for PDF manipulation in memory.
|
|
|
65bf3e8 |
It is therefore a useful tool for websites that manage or manipulate PDFs.
|
|
|
65bf3e8 |
|
|
|
65bf3e8 |
%package -n python2-PyPDF2
|
|
|
65bf3e8 |
Summary: %{sum}
|
|
|
65bf3e8 |
BuildRequires: python2-devel
|
|
|
65bf3e8 |
BuildRequires: python-libs
|
|
|
53f73d0 |
Obsoletes: python-PyPDF2 <= 1.25.1-6
|
|
|
28a8a0d |
%{?python_provide:%python_provide python2-PyPDF}
|
|
|
65bf3e8 |
|
|
|
65bf3e8 |
|
|
|
65bf3e8 |
%description -n python2-PyPDF2
|
|
|
65bf3e8 |
A pure Python library built as a PDF toolkit. It is capable of:
|
|
|
65bf3e8 |
|
|
|
df16d78 |
- extracting document information (title, author, ...),
|
|
|
df16d78 |
- splitting documents page by page,
|
|
|
df16d78 |
- merging documents page by page,
|
|
|
df16d78 |
- cropping pages,
|
|
|
df16d78 |
- merging multiple pages into a single page,
|
|
|
df16d78 |
- encryption and decryption of PDF files.
|
|
|
df16d78 |
|
|
|
df16d78 |
By being pure Python, it should run on any Python platform without any
|
|
|
df16d78 |
dependencies on external libraries. It can also work entirely on StringIO
|
|
|
df16d78 |
objects rather than file streams, allowing for PDF manipulation in memory.
|
|
|
df16d78 |
It is therefore a useful tool for websites that manage or manipulate PDFs.
|
|
|
df16d78 |
|
|
|
df16d78 |
%package -n python3-PyPDF2
|
|
|
65bf3e8 |
Summary: %{sum}
|
|
|
65bf3e8 |
BuildRequires: python3-devel
|
|
|
65bf3e8 |
BuildRequires: python-libs
|
|
|
28a8a0d |
%{?python_provide:%python_provide python3-PyPDF2}
|
|
|
df16d78 |
|
|
|
65bf3e8 |
|
|
|
65bf3e8 |
%description -n python3-PyPDF2
|
|
|
df16d78 |
A pure Python library built as a PDF toolkit. It is capable of:
|
|
|
65bf3e8 |
|
|
|
df16d78 |
- extracting document information (title, author, ...),
|
|
|
df16d78 |
- splitting documents page by page,
|
|
|
df16d78 |
- merging documents page by page,
|
|
|
df16d78 |
- cropping pages,
|
|
|
df16d78 |
- merging multiple pages into a single page,
|
|
|
df16d78 |
- encryption and decryption of PDF files.
|
|
|
df16d78 |
|
|
|
df16d78 |
By being pure Python, it should run on any Python platform without any
|
|
|
df16d78 |
dependencies on external libraries. It can also work entirely on StringIO
|
|
|
df16d78 |
objects rather than file streams, allowing for PDF manipulation in memory.
|
|
|
df16d78 |
It is therefore a useful tool for websites that manage or manipulate PDFs.
|
|
|
df16d78 |
|
|
|
df16d78 |
%package -n python-PyPDF2-doc
|
|
|
df16d78 |
Summary: Documentation for python-PyPDF2
|
|
|
df16d78 |
|
|
|
df16d78 |
%description -n python-PyPDF2-doc
|
|
|
df16d78 |
python-PyPDF2 contains documentation and examples for the python-PyPDF package
|
|
|
df16d78 |
|
|
|
df16d78 |
%prep
|
|
|
65bf3e8 |
%autosetup -n PyPDF2-%{version}
|
|
|
df16d78 |
|
|
|
df16d78 |
# non-executable script
|
|
|
65bf3e8 |
sed -i -e '/^#!\//, 1d' PyPDF2/pagerange.py
|
|
|
df16d78 |
|
|
|
df16d78 |
# Lots of things in the repo shouldn't be executable
|
|
|
df16d78 |
chmod a-x Scripts/* Sample_Code/* LICENSE README.md CHANGELOG
|
|
|
df16d78 |
|
|
|
df16d78 |
|
|
|
65bf3e8 |
%build
|
|
|
65bf3e8 |
%py2_build
|
|
|
65bf3e8 |
%py3_build
|
|
|
df16d78 |
|
|
|
df16d78 |
|
|
|
65bf3e8 |
%install
|
|
|
65bf3e8 |
%py3_install
|
|
|
65bf3e8 |
%py2_install
|
|
|
df16d78 |
|
|
|
df16d78 |
|
|
|
df16d78 |
%check
|
|
|
df16d78 |
# NOTE: Upstream has some testing bugs
|
|
|
df16d78 |
#python -m unittest Tests.tests
|
|
|
df16d78 |
|
|
|
df16d78 |
|
|
|
65bf3e8 |
%files -n python2-PyPDF2
|
|
|
df16d78 |
%defattr(-,root,root,-)
|
|
|
df16d78 |
%{python2_sitelib}/*
|
|
|
df16d78 |
%license LICENSE
|
|
|
df16d78 |
|
|
|
df16d78 |
%files -n python3-PyPDF2
|
|
|
301e5bc |
%defattr(-,root,root,-)
|
|
|
df16d78 |
%{python3_sitelib}/*
|
|
|
df16d78 |
%license LICENSE
|
|
|
df16d78 |
|
|
|
df16d78 |
%files -n python-PyPDF2-doc
|
|
|
df16d78 |
%doc README.md CHANGELOG Scripts/ Sample_Code/
|
|
|
df16d78 |
%license LICENSE
|
|
|
df16d78 |
|
|
|
df16d78 |
%changelog
|
|
|
28a8a0d |
* Thu May 19 2016 Major Hayden <major@mhtx.net> - 1.25.1-9
|
|
|
28a8a0d |
- Removing srcname variable in Provides
|
|
|
28a8a0d |
|
|
|
53f73d0 |
* Mon May 16 2016 Major Hayden <major@mhtx.net> - 1.25.1-8
|
|
|
53f73d0 |
- Correcting typo
|
|
|
53f73d0 |
|
|
|
c7f3c9b |
* Mon May 16 2016 Major Hayden <major@mhtx.net> - 1.25.1-7
|
|
|
c7f3c9b |
- Adding version number to obsoletes tag
|
|
|
c7f3c9b |
|
|
|
301e5bc |
* Thu May 5 2016 Major Hayden <major@mhtx.net> - 1.25.1-6
|
|
|
301e5bc |
- Adding obsoletes tag
|
|
|
301e5bc |
|
|
|
65bf3e8 |
* Thu May 5 2016 Major Hayden <major@mhtx.net> - 1.25.1-5
|
|
|
65bf3e8 |
- Fixed Python 3 packaging
|
|
|
65bf3e8 |
|
|
|
e611d95 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.25.1-4
|
|
|
e611d95 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
e611d95 |
|
|
|
399d683 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.25.1-3
|
|
|
399d683 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
399d683 |
|
|
|
df16d78 |
* Wed Sep 23 2015 Major Hayden <major@mhtx.net> - 1.25.1-2
|
|
|
df16d78 |
- Additional package review fixes
|
|
|
df16d78 |
|
|
|
df16d78 |
* Fri Sep 11 2015 Major Hayden <major@mhtx.net> - 1.25.1-1
|
|
|
df16d78 |
- Initial package
|