pyPdf-vl.spec 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. Name: pyPdf
  3. Version: 1.12
  4. Release: 1%{?_dist_release}
  5. Summary: PDF toolkit
  6. Summary(ja): PDF ツールキット
  7. Group: Development/Languages
  8. License: BSD
  9. URL: http://pybrary.net/pyPdf/
  10. Source0: http://pybrary.net/pyPdf/%{name}-%{version}.tar.gz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildArch: noarch
  13. BuildRequires: python-devel
  14. %description
  15. A Pure-Python library built as a PDF toolkit. It is capable of:
  16. * extracting document information (title, author, ...),
  17. * splitting documents page by page,
  18. * merging documents page by page,
  19. * cropping pages,
  20. * merging multiple pages into a single page,
  21. * encrypting and decrypting PDF files.
  22. %prep
  23. %setup -q
  24. %build
  25. %{__python} setup.py build
  26. %install
  27. rm -rf $RPM_BUILD_ROOT
  28. %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
  29. %clean
  30. rm -rf $RPM_BUILD_ROOT
  31. %files
  32. %defattr(-,root,root,-)
  33. %doc README CHANGELOG
  34. %{python_sitelib}/pyPdf*
  35. %changelog
  36. * Thu Feb 11 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.12-1
  37. - initial build for VineSeed
  38. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-4
  39. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  40. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-3
  41. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  42. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.12-2
  43. - Rebuild for Python 2.6
  44. * Mon Sep 15 2008 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 1.12-1
  45. - update to 1.12
  46. * Sun Jun 15 2008 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 1.11-1
  47. - update to 1.11
  48. * Tue Apr 01 2008 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 1.10-4
  49. - added CHANGELOG to doc, more specific file list
  50. * Thu Mar 27 2008 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 1.10-3
  51. - removed unnecessary python_sitearch macro declaration
  52. * Tue Mar 25 2008 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 1.10-2
  53. - fixed spec file naming and license tag
  54. * Tue Mar 25 2008 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 1.10-1
  55. - Initial spec file creation