]>
Commit | Line | Data |
---|---|---|
860301cd AM |
1 | %define module pyPdf |
2 | ||
3 | Summary: A Pure-Python library built as a PDF toolkit | |
4b93f68a | 4 | Summary(pl.UTF-8): Biblioteka toolkitu PDF napisana w czystym Pythonie |
860301cd | 5 | Name: python-%{module} |
302f86f5 | 6 | Version: 1.13 |
7 | Release: 1 | |
860301cd AM |
8 | License: BSD |
9 | Group: Development/Languages/Python | |
10 | Source0: http://pybrary.net/pyPdf/pyPdf-%{version}.tar.gz | |
302f86f5 | 11 | # Source0-md5: 7a75ef56f227b78ae62d6e38d4b6b1da |
860301cd | 12 | URL: http://pybrary.net/pyPdf/ |
e3c6b219 | 13 | BuildRequires: python-devel |
860301cd AM |
14 | BuildRequires: rpm-pythonprov |
15 | %pyrequires_eq python | |
16 | BuildArch: noarch | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | A Pure-Python library built as a PDF toolkit. It is capable of: | |
21 | * extracting document information (title, author, ...), | |
22 | * splitting documents page by page, | |
23 | * merging documents page by page, | |
24 | * cropping pages, | |
25 | * merging multiple pages into a single page, | |
26 | * encrypting and decrypting PDF files. | |
27 | ||
4b93f68a JB |
28 | %description -l pl.UTF-8 |
29 | pyPdf to napisana w czystym Pythonie biblioteka stworzona jako toolkit | |
30 | PDF. Potrafi: | |
31 | - wyciągać informacje z dokumentów (tytuł, autora...), | |
32 | - dzielić dokumenty na strony, | |
33 | - łączyć dokumenty z pojedynczych stron, | |
34 | - przycinać strony, | |
35 | - łączyć wiele stron w jedną, | |
36 | - szyfrować i odszyfrowywać pliki PDF. | |
37 | ||
860301cd AM |
38 | %prep |
39 | %setup -q -n %{module}-%{version} | |
40 | ||
41 | %build | |
42 | python ./setup.py build | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | python ./setup.py install \ | |
48 | --optimize 2 \ | |
49 | --root=$RPM_BUILD_ROOT | |
50 | ||
51 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
52 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
53 | %py_postclean | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc CHANGELOG | |
61 | %dir %{py_sitescriptdir}/%{module} | |
62 | %{py_sitescriptdir}/%{module}/*.py[co] | |
32c3470b | 63 | %{py_sitescriptdir}/*.egg-info |