pyPdf-vl.spec 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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: 2%{?_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. Patch0: 01_backspace_parsed.dpatch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildArch: noarch
  14. BuildRequires: python-devel
  15. %description
  16. A Pure-Python library built as a PDF toolkit. It is capable of:
  17. * extracting document information (title, author, ...),
  18. * splitting documents page by page,
  19. * merging documents page by page,
  20. * cropping pages,
  21. * merging multiple pages into a single page,
  22. * encrypting and decrypting PDF files.
  23. %prep
  24. %setup -q
  25. %patch0 -p1
  26. %build
  27. %{__python} setup.py build
  28. %install
  29. rm -rf $RPM_BUILD_ROOT
  30. %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
  31. %clean
  32. rm -rf $RPM_BUILD_ROOT
  33. %files
  34. %defattr(-,root,root,-)
  35. %doc README CHANGELOG
  36. %{python_sitelib}/pyPdf*
  37. %changelog
  38. * Tue May 25 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.12-2
  39. - added Pacth0 from Debian to fix incorrect backspace parse
  40. * Thu Feb 11 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.12-1
  41. - initial build for VineSeed
  42. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-4
  43. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  44. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-3
  45. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  46. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.12-2
  47. - Rebuild for Python 2.6
  48. * Mon Sep 15 2008 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 1.12-1
  49. - update to 1.12
  50. * Sun Jun 15 2008 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 1.11-1
  51. - update to 1.11
  52. * Tue Apr 01 2008 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 1.10-4
  53. - added CHANGELOG to doc, more specific file list
  54. * Thu Mar 27 2008 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 1.10-3
  55. - removed unnecessary python_sitearch macro declaration
  56. * Tue Mar 25 2008 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 1.10-2
  57. - fixed spec file naming and license tag
  58. * Tue Mar 25 2008 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 1.10-1
  59. - Initial spec file creation