1 |
%define module pyPdf |
2 |
|
3 |
Summary: Pure-Python PDF toolkit |
4 |
Name: python-pypdf |
5 |
Version: 1.13 |
6 |
Release: %mkrel 2 |
7 |
Source0: http://pybrary.net/pyPdf/%{module}-%{version}.tar.gz |
8 |
License: BSD |
9 |
Group: Development/Python |
10 |
Url: http://pybrary.net/pyPdf/ |
11 |
Provides: %{module} |
12 |
BuildRequires: python-devel |
13 |
BuildArch: noarch |
14 |
|
15 |
%description |
16 |
A Pure-Python library built as a PDF toolkit. It is capable of: |
17 |
* extracting document information (title, author, ...), |
18 |
* splitting documents page by page, |
19 |
* merging documents page by page, |
20 |
* cropping pages, |
21 |
* merging multiple pages into a single page, |
22 |
* encrypting and decrypting PDF files. |
23 |
|
24 |
|
25 |
%prep |
26 |
%setup -q -n %{module}-%{version} |
27 |
|
28 |
%build |
29 |
|
30 |
%install |
31 |
%__rm -rf %{buildroot} |
32 |
%__python setup.py install --root=%{buildroot} |
33 |
|
34 |
%clean |
35 |
%__rm -rf %{buildroot} |
36 |
|
37 |
%files |
38 |
%defattr(-,root,root) |
39 |
%doc README CHANGELOG |
40 |
%{py_puresitedir}/pyPdf-%{version}-py%{pyver}.egg-info |
41 |
%dir %{py_puresitedir}/%{module} |
42 |
%{py_puresitedir}/%{module}/* |