pypoppler-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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: 10%{?_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. Vendor: Project Vine
  33. Distribution: Vine Linux
  34. %description
  35. Python bindings for the Poppler PDF rendering library. It is needed to
  36. run programs written in Python and using Poppler set.
  37. %prep
  38. %setup -q
  39. %patch0 -p0 -b .bzr75
  40. #%patch1 -p0 -b .bzr76
  41. %patch2 -p0 -b .bzr79
  42. %patch3 -p1 -b .poppler15
  43. %patch4 -p1 -b .poppler-18-minimal
  44. %build
  45. %configure --disable-static
  46. make %{?_smp_mflags}
  47. %install
  48. rm -rf %{buildroot}
  49. make install DESTDIR=%{buildroot} INSTALL="install -p"
  50. find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
  51. %clean
  52. rm -rf %{buildroot}
  53. %files
  54. %defattr(-,root,root,-)
  55. %doc AUTHORS ChangeLog COPYING NEWS
  56. %{python_sitearch}/poppler*
  57. %changelog
  58. * Sun Nov 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.12.1-10
  59. - rebuild with poppler-0.37.0
  60. * Tue Jul 08 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.12.1-9
  61. - rebuild with poppler-0.26.2
  62. * Sat May 03 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.12.1-8
  63. - rebuild with poppler-0.24.5
  64. * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.12.1-7
  65. - rebuild with VineSeed environment
  66. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.12.1-6
  67. - rebuild with poppler-0.24.2
  68. * Thu May 03 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.12.1-5
  69. - rebuilt with poppler-0.18.4
  70. - dropt Pacth1
  71. - added Patch4 from Fedora rawhide
  72. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.12.1-4
  73. - rebuild with python-2.7.2
  74. * Sat Mar 12 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.12.1-3
  75. - rebuilt with poppler-0.16.3
  76. - added Patch0-3 from Fedora
  77. * Wed Oct 06 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.12.1-2
  78. - rebuild with poppler-0.14.2
  79. * Thu Feb 11 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.12.1-1
  80. - initail build for VineSeed
  81. * Thu Nov 19 2009 Fabian Affolter <fabian@bernewireless.net> - 0.12.1-1
  82. - Updated to new upstream version 0.12.1
  83. * Thu Sep 17 2009 Fabian Affolter <fabian@bernewireless.net> - 0.10.1-1
  84. - Updated to new upstream version 0.10.1
  85. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-2
  86. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  87. * Sat Apr 25 2009 Fabian Affolter <fabian@bernewireless.net> - 0.10.0-1
  88. - Initial package for Fedora