pypoppler-vl.spec 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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: 4%{?_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. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.12.1-4
  54. - rebuild with python-2.7.2
  55. * Sat Mar 12 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.12.1-3
  56. - rebuilt with poppler-0.16.3
  57. - added Patch0-3 from Fedora
  58. * Wed Oct 06 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.12.1-2
  59. - rebuild with poppler-0.14.2
  60. * Thu Feb 11 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.12.1-1
  61. - initail build for VineSeed
  62. * Thu Nov 19 2009 Fabian Affolter <fabian@bernewireless.net> - 0.12.1-1
  63. - Updated to new upstream version 0.12.1
  64. * Thu Sep 17 2009 Fabian Affolter <fabian@bernewireless.net> - 0.10.1-1
  65. - Updated to new upstream version 0.10.1
  66. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-2
  67. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  68. * Sat Apr 25 2009 Fabian Affolter <fabian@bernewireless.net> - 0.10.0-1
  69. - Initial package for Fedora