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