source: projects/specs/branches/6/p/pypoppler/pypoppler-vl.spec @ 2998

Revision 2998, 2.7 KB checked in by inagaki, 13 years ago (diff)

update: calibre, evince, epdfview, gimp, gambas{2,3}, gnome-commander, inkscape, poppler, pypopper, rcairo, ruby-gnome2, tracker

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