78 lines
2.2 KiB
RPMSpec
78 lines
2.2 KiB
RPMSpec
Name: python-pypdf
|
|
Version: 1.13
|
|
Release: 2mamba
|
|
Summary: PDF toolkit
|
|
Group: System/Libraries/Python
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Automatic Build System <autodist@mambasoft.it>
|
|
URL: http://pybrary.net/pyPdf/
|
|
Source: http://pybrary.net/pyPdf/pyPdf-%{version}.tar.gz
|
|
Patch: python-pypdf-1.12-git20100718.patch
|
|
License: BSD
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: libpython-devel
|
|
## AUTOBUILDREQ-END
|
|
Provides: python-pyPdf
|
|
Obsoletes: python-pyPdf
|
|
Requires: python >= %python_version
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
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.
|
|
|
|
%prep
|
|
%setup -q -n pyPdf-%{version}
|
|
#%patch -p1
|
|
|
|
%build
|
|
%{__python} setup.py build
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%{__python} setup.py install \
|
|
-O1 --skip-build \
|
|
--root="%{buildroot}" \
|
|
--install-headers=%{_includedir}/python \
|
|
--install-lib=%{python_sitearch} \
|
|
--record=%{name}.filelist
|
|
|
|
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files -f %{name}.filelist
|
|
%defattr(-,root,root)
|
|
%doc README CHANGELOG
|
|
|
|
%changelog
|
|
* 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
|