%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: pyPdf Version: 1.10 Release: 4%{?dist}.art Summary: PDF toolkit Group: Development/Languages License: BSD URL: http://pybrary.net/pyPdf/ Source0: http://pybrary.net/pyPdf/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel %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 %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README CHANGELOG %{python_sitelib}/pyPdf* %changelog * Tue Apr 01 2008 Felix Schwarz 1.10-4 - added CHANGELOG to doc, more specific file list * Thu Mar 27 2008 Felix Schwarz 1.10-3 - removed unnecessary python_sitearch macro declaration * Tue Mar 25 2008 Felix Schwarz 1.10-2 - fixed spec file naming and license tag * Tue Mar 25 2008 Felix Schwarz 1.10-1 - Initial spec file creation