pypoppler-vl.spec 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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: 3%{?_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. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  25. BuildRequires: pygtk2-devel
  26. BuildRequires: atk-devel
  27. BuildRequires: poppler-devel
  28. BuildRequires: pycairo-devel
  29. #BuildRequires: poppler-glib-devel >= 0.10.5
  30. %description
  31. Python bindings for the Poppler PDF rendering library. It is needed to
  32. run programs written in Python and using Poppler set.
  33. %prep
  34. %setup -q
  35. %patch0 -p0 -b .bzr75
  36. %patch1 -p0 -b .bzr76
  37. %patch2 -p0 -b .bzr79
  38. %patch3 -p1 -b .poppler15
  39. %build
  40. %configure --disable-static
  41. make %{?_smp_mflags}
  42. %install
  43. rm -rf %{buildroot}
  44. make install DESTDIR=%{buildroot} INSTALL="install -p"
  45. find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
  46. %clean
  47. rm -rf %{buildroot}
  48. %files
  49. %defattr(-,root,root,-)
  50. %doc AUTHORS ChangeLog COPYING NEWS
  51. %{python_sitearch}/poppler*
  52. %changelog
  53. * Sat Mar 12 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.12.1-3
  54. - rebuilt with poppler-0.16.3
  55. - added Patch0-3 from Fedora
  56. * Wed Oct 06 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.12.1-2
  57. - rebuild with poppler-0.14.2
  58. * Thu Feb 11 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.12.1-1
  59. - initail build for VineSeed
  60. * Thu Nov 19 2009 Fabian Affolter <fabian@bernewireless.net> - 0.12.1-1
  61. - Updated to new upstream version 0.12.1
  62. * Thu Sep 17 2009 Fabian Affolter <fabian@bernewireless.net> - 0.10.1-1
  63. - Updated to new upstream version 0.10.1
  64. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-2
  65. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  66. * Sat Apr 25 2009 Fabian Affolter <fabian@bernewireless.net> - 0.10.0-1
  67. - Initial package for Fedora