1 | %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
2 | |
---|
3 | %define glib_version 2.20.0 |
---|
4 | %define gtk_version 2.16.0 |
---|
5 | %define gnome_panel_version 2.26.0 |
---|
6 | %define gnome_python_version 2.26.0 |
---|
7 | %define gtkhtml2_version 2.3.1 |
---|
8 | %define gecko_version 1.9.1 |
---|
9 | %define gtkspell_version 2.0.7 |
---|
10 | %define libgda_version 4.0 |
---|
11 | %define libgdl_version 0.7.1 |
---|
12 | |
---|
13 | %define build_gdl 0 |
---|
14 | |
---|
15 | ### Abstract ### |
---|
16 | |
---|
17 | Name: gnome-python-extras |
---|
18 | Version: 2.25.3 |
---|
19 | Release: 3%{?_dist_release} |
---|
20 | License: GPL/LGPL |
---|
21 | Group: Development/Languages |
---|
22 | Summary: The sources for additional. PyGNOME Python extension modules. |
---|
23 | URL: http://www.pygtk.org/ |
---|
24 | |
---|
25 | Source: gnome-python-extras-%{version}.tar.bz2 |
---|
26 | Patch1: gnome-python-extras-2.10.0-gtkspell-static.patch |
---|
27 | Patch4: gnome-python-extras-2.19.1-buildfix.patch |
---|
28 | |
---|
29 | |
---|
30 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
31 | |
---|
32 | ### Dependencies ### |
---|
33 | |
---|
34 | Requires: gnome-python >= %{gnome_python_version} |
---|
35 | |
---|
36 | ### Build Dependencies ### |
---|
37 | |
---|
38 | BuildRequires: gecko-devel >= %{gecko_version} |
---|
39 | BuildRequires: glib2 >= %{glib_version} |
---|
40 | BuildRequires: gnome-panel >= %{gnome_panel_version} |
---|
41 | BuildRequires: gnome-python-devel >= %{gnome_python_version} |
---|
42 | BuildRequires: gtk2 >= %{gtk_version} |
---|
43 | BuildRequires: gtkhtml2-devel >= %{gtkhtml2_version} |
---|
44 | BuildRequires: gtkspell-devel >= %{gtkspell_version} |
---|
45 | BuildRequires: libbonoboui-devel |
---|
46 | BuildRequires: libgda-devel >= %{libgda_version} |
---|
47 | BuildRequires: libgksu-devel |
---|
48 | BuildRequires: pygtk2-devel |
---|
49 | BuildRequires: python-devel |
---|
50 | |
---|
51 | %if %{build_gdl} |
---|
52 | BuildRequires: libgdl-devel >= %{libgdl_version} |
---|
53 | %endif |
---|
54 | |
---|
55 | %description |
---|
56 | The gnome-python-extra package contains the source packages for additional |
---|
57 | Python bindings for GNOME. It should be used together with gnome-python. |
---|
58 | |
---|
59 | %if %{build_gdl} |
---|
60 | %package -n gnome-python-gdl |
---|
61 | Summary: Python bindings for the GNOME Development Library |
---|
62 | Group: Development/Languages |
---|
63 | Requires: %{name} = %{version}-%{release} |
---|
64 | Requires: libgdl >= %{libgdl_version} |
---|
65 | |
---|
66 | %description -n gnome-python-gdl |
---|
67 | This module contains a wrapper that allows the use of the GNOME Development |
---|
68 | Library (gdl) via Python. |
---|
69 | %endif |
---|
70 | |
---|
71 | %package -n gnome-python-gtkhtml2 |
---|
72 | Summary: Python bindings for interacting with gtkhtml2 |
---|
73 | Group: Development/Languages |
---|
74 | Requires: %{name} = %{version}-%{release} |
---|
75 | Requires: gtkhtml2 >= %{gtkhtml2_version} |
---|
76 | Obsoletes: pygnome-gtkhtml |
---|
77 | |
---|
78 | %description -n gnome-python-gtkhtml2 |
---|
79 | This module contains a wrapper that allows the use of gtkhtml2 via Python. |
---|
80 | |
---|
81 | %package -n gnome-python-gtkmozembed |
---|
82 | Summary: Python bindings for interacting with gtkmozembed |
---|
83 | Group: Development/Languages |
---|
84 | Requires: %{name} = %{version}-%{release} |
---|
85 | Requires: gecko-libs >= %{gecko_version} |
---|
86 | |
---|
87 | %description -n gnome-python-gtkmozembed |
---|
88 | This module contains a wrapper that allows the use of gtkmozembed via Python. |
---|
89 | |
---|
90 | %package -n gnome-python-gtkspell |
---|
91 | Summary: Python bindings for interacting with gtkspell |
---|
92 | Group: Development/Languages |
---|
93 | Requires: %{name} = %{version}-%{release} |
---|
94 | Requires: gtkspell >= %{gtkspell_version} |
---|
95 | |
---|
96 | %description -n gnome-python-gtkspell |
---|
97 | This module contains a wrapper that allows the use of gtkspell via Python. |
---|
98 | |
---|
99 | %package -n gnome-python-libegg |
---|
100 | Summary: Python bindings for recent files and tray icons |
---|
101 | Group: Development/Languages |
---|
102 | Requires: %{name} = %{version}-%{release} |
---|
103 | |
---|
104 | %description -n gnome-python-libegg |
---|
105 | This module contains a wrapper that allows the use of recent files and tray |
---|
106 | icons via Python. |
---|
107 | |
---|
108 | %package -n gnome-python-libgksu |
---|
109 | Summary: Python bindings for interacting with libgksu |
---|
110 | Group: Development/Languages |
---|
111 | Requires: %{name} = %{version}-%{release} |
---|
112 | Requires: libgksu |
---|
113 | |
---|
114 | %description -n gnome-python-libgksu |
---|
115 | This module contains a wrapper that allows the use of libgksu via Python. |
---|
116 | |
---|
117 | %package -n gnome-python-gda |
---|
118 | Summary: Python bindings for interacting with libgda |
---|
119 | Group: Development/Languages |
---|
120 | Requires: %{name} = %{version}-%{release} |
---|
121 | Requires: libgda >= %{libgda_version} |
---|
122 | |
---|
123 | %description -n gnome-python-gda |
---|
124 | This module contains a wrapper that allows the use of libgda via Python. |
---|
125 | |
---|
126 | %package -n gnome-python-gda-devel |
---|
127 | Summary: Headers for developing programs that will use gnome-python-gda |
---|
128 | Group: Development/Libraries |
---|
129 | Requires: gnome-python-gda = %{version}-%{release} |
---|
130 | Requires: pkgconfig |
---|
131 | Requires: pygobject-devel |
---|
132 | Requires: libgda-devel >= %{libgda_version} |
---|
133 | |
---|
134 | %description -n gnome-python-gda-devel |
---|
135 | This module contains files needed for developing applications using |
---|
136 | gnome-python-gda. |
---|
137 | |
---|
138 | %prep |
---|
139 | %setup -q -n gnome-python-extras-%{version} |
---|
140 | %patch1 -p1 -b .gtkspell-static |
---|
141 | %patch4 -p1 -b .buildfix |
---|
142 | |
---|
143 | %build |
---|
144 | %if %{build_gdl} |
---|
145 | %configure --with-gtkmozembed=mozilla |
---|
146 | %else |
---|
147 | %configure --with-gtkmozembed=mozilla --disable-gdl |
---|
148 | %endif |
---|
149 | make |
---|
150 | |
---|
151 | %install |
---|
152 | rm -rf $RPM_BUILD_ROOT |
---|
153 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
154 | |
---|
155 | find $RPM_BUILD_ROOT -name '*.la' -exec rm {} \; |
---|
156 | |
---|
157 | rm -rf $RPM_BUILD_ROOT/%{python_sitearch}/gtk-2.0/gksu |
---|
158 | |
---|
159 | %clean |
---|
160 | rm -rf $RPM_BUILD_ROOT |
---|
161 | |
---|
162 | %files |
---|
163 | %defattr(-,root,root,-) |
---|
164 | %doc AUTHORS ChangeLog NEWS |
---|
165 | %{_libdir}/pkgconfig/gnome-python-extras-2.0.pc |
---|
166 | %{_datadir}/pygtk |
---|
167 | |
---|
168 | %if %{build_gdl} |
---|
169 | %files -n gnome-python-gdl |
---|
170 | %defattr(-,root,root,-) |
---|
171 | %{python_sitearch}/gtk-2.0/gdl.so |
---|
172 | %endif |
---|
173 | |
---|
174 | %files -n gnome-python-gtkhtml2 |
---|
175 | %defattr(-,root,root,-) |
---|
176 | %{python_sitearch}/gtk-2.0/gtkhtml* |
---|
177 | %defattr(644,root,root,755) |
---|
178 | %doc examples/gtkhtml2/* |
---|
179 | |
---|
180 | %files -n gnome-python-gtkmozembed |
---|
181 | %defattr(-,root,root,-) |
---|
182 | %{python_sitearch}/gtk-2.0/gtkmozembed.so |
---|
183 | |
---|
184 | %files -n gnome-python-gtkspell |
---|
185 | %defattr(-,root,root,-) |
---|
186 | %{python_sitearch}/gtk-2.0/gtkspell.so |
---|
187 | |
---|
188 | %files -n gnome-python-libegg |
---|
189 | %defattr(-,root,root,-) |
---|
190 | %{python_sitearch}/gtk-2.0/egg |
---|
191 | %defattr(644,root,root,755) |
---|
192 | %doc examples/egg/* |
---|
193 | |
---|
194 | %files -n gnome-python-libgksu |
---|
195 | %defattr(-,root,root,-) |
---|
196 | %{python_sitearch}/gtk-2.0/gksu2 |
---|
197 | |
---|
198 | %files -n gnome-python-gda |
---|
199 | %defattr(-,root,root,-) |
---|
200 | %{python_sitearch}/gtk-2.0/gda.so |
---|
201 | |
---|
202 | %files -n gnome-python-gda-devel |
---|
203 | %defattr(-,root,root,-) |
---|
204 | %{_includedir}/pygda-?.?/ |
---|
205 | %{_libdir}/pkgconfig/pygda-?.?.pc |
---|
206 | |
---|
207 | %changelog |
---|
208 | * Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.25.3-3 |
---|
209 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
210 | |
---|
211 | * Fri Apr 09 2010 Shu KONNO <owa@bg.wakwak.com> 2.25.3-2 |
---|
212 | - rebuilt with python-2.6 |
---|
213 | - added --disable-gdl option to configure |
---|
214 | |
---|
215 | * Sun Jul 12 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.25.3-1 |
---|
216 | - new upstream release |
---|
217 | |
---|
218 | * Fri Aug 15 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.19.1-1 |
---|
219 | - new upstream release |
---|
220 | - split to subpackages |
---|
221 | - build with xulrunner |
---|
222 | |
---|
223 | * Sat Aug 5 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.12.0-0vl3 |
---|
224 | - added missing BuildRequires for gtkspell |
---|
225 | |
---|
226 | * Thu Jul 27 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.12.0-0vl2 |
---|
227 | - rebuilt |
---|
228 | |
---|
229 | * Thu Oct 13 2005 Shu KONNO <owa@bg.wakwak.com> 2.12.0-0vl1 |
---|
230 | - Initial build. |
---|