pypoppler-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  2. Name: pypoppler
  3. Version: 0.12.1
  4. Release: 5%{?_dist_release}
  5. Summary: Python bindings for the Poppler PDF rendering library
  6. Summary(ja): Poppler PDF レンダリングライブラリの Python バインディング
  7. Group: Applications/Publishing
  8. License: GPLv2+
  9. URL: https://launchpad.net/poppler-python
  10. Source0: http://launchpad.net/poppler-python/trunk/development/+download/%{name}-%{version}.tar.gz
  11. # Release the GIL on blocking functions like rendering pages and getting
  12. # thumbnails, see bug #504240 reported by BenjaminBerg.
  13. # bzr rev 75
  14. Patch0: 75_74.diff
  15. # Manually wrap poppler_page_render_to_pixbuf and
  16. # poppler_page_render_to_pixbuf_for_printing returning the Pixbuf
  17. # bzr rev 76
  18. #Patch1: 76_75.diff
  19. # Fix a few leaks by using the right functions while freeing the returned lists
  20. # bzr 79
  21. Patch2: 79_78.diff
  22. # Changes for poppler 1.5
  23. Patch3: pypoppler-0.12.1-poppler0.15.0-changes.patch
  24. # Minimal fix for changes in poppler 0.18
  25. Patch4: pypoppler-0.12.1-poppler-0.18.0-minimal-fix.patch
  26. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  27. BuildRequires: pygtk2-devel
  28. BuildRequires: atk-devel
  29. BuildRequires: poppler-devel
  30. BuildRequires: pycairo-devel
  31. #BuildRequires: poppler-glib-devel >= 0.10.5
  32. %description
  33. Python bindings for the Poppler PDF rendering library. It is needed to
  34. run programs written in Python and using Poppler set.
  35. %prep
  36. %setup -q
  37. %patch0 -p0 -b .bzr75
  38. #%patch1 -p0 -b .bzr76
  39. %patch2 -p0 -b .bzr79
  40. %patch3 -p1 -b .poppler15
  41. %patch4 -p1 -b .poppler-18-minimal
  42. %build
  43. %configure --disable-static
  44. make %{?_smp_mflags}
  45. %install
  46. rm -rf %{buildroot}
  47. make install DESTDIR=%{buildroot} INSTALL="install -p"
  48. find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
  49. %clean
  50. rm -rf %{buildroot}
  51. %files
  52. %defattr(-,root,root,-)
  53. %doc AUTHORS ChangeLog COPYING NEWS
  54. %{python_sitearch}/poppler*
  55. %changelog
  56. * Thu May 03 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.12.1-5
  57. - rebuilt with poppler-0.18.4
  58. - dropt Pacth1
  59. - added Patch4 from Fedora rawhide
  60. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.12.1-4
  61. - rebuild with python-2.7.2
  62. * Sat Mar 12 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.12.1-3
  63. - rebuilt with poppler-0.16.3
  64. - added Patch0-3 from Fedora
  65. * Wed Oct 06 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.12.1-2
  66. - rebuild with poppler-0.14.2
  67. * Thu Feb 11 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.12.1-1
  68. - initail build for VineSeed
  69. * Thu Nov 19 2009 Fabian Affolter <fabian@bernewireless.net> - 0.12.1-1
  70. - Updated to new upstream version 0.12.1
  71. * Thu Sep 17 2009 Fabian Affolter <fabian@bernewireless.net> - 0.10.1-1
  72. - Updated to new upstream version 0.10.1
  73. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-2
  74. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  75. * Sat Apr 25 2009 Fabian Affolter <fabian@bernewireless.net> - 0.10.0-1
  76. - Initial package for Fedora