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