]> git.pld-linux.org Git - packages/python-pyPdf.git/commitdiff
- new
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 10 Jun 2007 21:51:22 +0000 (21:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-pyPdf.spec -> 1.1

python-pyPdf.spec [new file with mode: 0644]

diff --git a/python-pyPdf.spec b/python-pyPdf.spec
new file mode 100644 (file)
index 0000000..5621d05
--- /dev/null
@@ -0,0 +1,52 @@
+%define                module  pyPdf
+
+Summary:       A Pure-Python library built as a PDF toolkit
+Name:          python-%{module}
+Version:       1.9
+Release:       1
+License:       BSD
+Group:         Development/Languages/Python
+Source0:       http://pybrary.net/pyPdf/pyPdf-%{version}.tar.gz
+# Source0-md5: 2caddd42b685246621ecd19ce62f99ac
+URL:           http://pybrary.net/pyPdf/
+BuildRequires: python-devel
+BuildRequires: rpm-pythonprov
+%pyrequires_eq python
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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 %{module}-%{version}
+
+%build
+python ./setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+python ./setup.py install \
+       --optimize 2 \
+       --root=$RPM_BUILD_ROOT
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG
+%dir %{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{module}/*.py[co]
+%{py_sitescriptdir}/*.egg-info
This page took 0.322073 seconds and 4 git commands to generate.