pyPdf-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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.13
  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. #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. * Sat Feb 12 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.13-1
  39. - new upstream release
  40. - dropt Patch0 to merge upstream
  41. * Tue May 25 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.12-2
  42. - added Pacth0 from Debian to fix incorrect backspace parse
  43. * Thu Feb 11 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.12-1
  44. - initial build for VineSeed
  45. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-4
  46. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  47. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-3
  48. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  49. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.12-2
  50. - Rebuild for Python 2.6
  51. * Mon Sep 15 2008 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 1.12-1
  52. - update to 1.12
  53. * Sun Jun 15 2008 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 1.11-1
  54. - update to 1.11
  55. * Tue Apr 01 2008 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 1.10-4
  56. - added CHANGELOG to doc, more specific file list
  57. * Thu Mar 27 2008 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 1.10-3
  58. - removed unnecessary python_sitearch macro declaration
  59. * Tue Mar 25 2008 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 1.10-2
  60. - fixed spec file naming and license tag
  61. * Tue Mar 25 2008 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 1.10-1
  62. - Initial spec file creation