]> git.pld-linux.org Git - packages/python-pyPdf.git/blame - python-pyPdf.spec
- release 3
[packages/python-pyPdf.git] / python-pyPdf.spec
CommitLineData
860301cd
AM
1%define module pyPdf
2
3Summary: A Pure-Python library built as a PDF toolkit
4b93f68a 4Summary(pl.UTF-8): Biblioteka toolkitu PDF napisana w czystym Pythonie
860301cd 5Name: python-%{module}
bd9eea7c 6Version: 1.12
7d31c6a8 7Release: 3
860301cd
AM
8License: BSD
9Group: Development/Languages/Python
10Source0: http://pybrary.net/pyPdf/pyPdf-%{version}.tar.gz
bd9eea7c 11# Source0-md5: 7be5f7f4659f64fd194e9eb9a38ad425
860301cd 12URL: http://pybrary.net/pyPdf/
e3c6b219 13BuildRequires: python-devel
860301cd
AM
14BuildRequires: rpm-pythonprov
15%pyrequires_eq python
16BuildArch: noarch
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20A 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
29pyPdf to napisana w czystym Pythonie biblioteka stworzona jako toolkit
30PDF. 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
42python ./setup.py build
43
44%install
45rm -rf $RPM_BUILD_ROOT
46
47python ./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
56rm -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
This page took 0.056896 seconds and 4 git commands to generate.