]>
Commit | Line | Data |
---|---|---|
bca112f3 | 1 | %define module gnome-python |
5ce7696c JB |
2 | %define pygobject_ver 2.17.0 |
3 | %define pygtk_ver 2:2.16.0 | |
4 | %define pyorbit_ver 2.14.2 | |
b97890eb | 5 | Summary: GNOME bindings for Python |
1b162a5c | 6 | Summary(pl.UTF-8): Wiązania Pythona do bibliotek GNOME |
b9570cb0 | 7 | Name: python-gnome |
301a3241 | 8 | Version: 2.28.1 |
e490a09c | 9 | Release: 11 |
5ce7696c | 10 | License: LGPL v2.1+ |
b9570cb0 | 11 | Group: Libraries/Python |
2c7d42c2 | 12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-python/2.28/%{module}-%{version}.tar.bz2 |
301a3241 | 13 | # Source0-md5: a17ad952813ed86f520de8e07194a2bf |
87dd4701 PZ |
14 | BuildRequires: GConf2-devel >= 2.22.0 |
15 | BuildRequires: glib2-devel >= 1:2.16.0 | |
04456651 | 16 | BuildRequires: gnome-common >= 2.20.0 |
87dd4701 | 17 | BuildRequires: gnome-vfs2-devel >= 2.22.0 |
04456651 | 18 | BuildRequires: gtk+2-devel >= 2:2.12.0 |
5ce7696c | 19 | BuildRequires: libbonobo-devel >= 2.22.0 |
87dd4701 | 20 | BuildRequires: libbonoboui-devel >= 2.22.0 |
5ce7696c JB |
21 | BuildRequires: libgnome-devel >= 2.22.0 |
22 | BuildRequires: libgnomecanvas-devel >= 2.8.0 | |
87dd4701 | 23 | BuildRequires: libgnomeui-devel >= 2.22.0 |
5ce7696c | 24 | BuildRequires: libxslt-progs |
4c510e20 | 25 | BuildRequires: pkgconfig |
271f44c6 | 26 | BuildRequires: popt-devel |
97159388 | 27 | BuildRequires: python-devel >= 1:2.3.2 |
5ce7696c JB |
28 | BuildRequires: python-pygobject-devel >= %{pygobject_ver} |
29 | BuildRequires: python-pygtk-devel >= %{pygtk_ver} | |
30 | BuildRequires: python-pyorbit-devel >= %{pyorbit_ver} | |
fb7b9f42 | 31 | BuildRequires: rpm-pythonprov |
5ce7696c JB |
32 | BuildRequires: rpmbuild(macros) >= 1.219 |
33 | BuildRequires: sed >= 4.0 | |
34 | Requires: %{name}-common = %{version}-%{release} | |
35 | Requires: libgnome-libs >= 2.22.0 | |
36 | Requires: python-pygobject >= %{pygobject_ver} | |
9bf44066 | 37 | Obsoletes: gnome-python |
38 | Obsoletes: gnome-python-nautilus | |
8101b240 | 39 | Obsoletes: python-gnome-nautilus |
b9570cb0 | 40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
4c510e20 | 42 | %define pydefsdir %(pkg-config --variable=defsdir pygtk-2.0) |
43 | ||
b9570cb0 | 44 | %description |
b97890eb | 45 | GNOME bindings for Python. |
b9570cb0 | 46 | |
de97f07e JR |
47 | %description -l pl.UTF-8 |
48 | Wiązania Pythona do bibliotek GNOME. | |
b9570cb0 | 49 | |
4c510e20 | 50 | %package bonobo |
51 | Summary: Bonobo bindings for Python | |
1b162a5c | 52 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki Bonobo |
4c510e20 | 53 | Group: Libraries/Python |
e490a09c | 54 | Requires: libbonobo >= 2.22.0 |
5ce7696c JB |
55 | Requires: python-pygobject >= %{pygobject_ver} |
56 | Requires: python-pyorbit >= %{pyorbit_ver} | |
4c510e20 | 57 | |
58 | %description bonobo | |
59 | Bonobo bindings for Python. | |
60 | ||
de97f07e JR |
61 | %description bonobo -l pl.UTF-8 |
62 | Wiązania Pythona do biblioteki Bonobo. | |
6b176ae5 | 63 | |
4c510e20 | 64 | %package bonobo-ui |
65 | Summary: Bonobo User Interface bindings for Python | |
1b162a5c | 66 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki interfejsu użytkownika Bonobo |
4c510e20 | 67 | Group: Libraries/Python |
9c5e43ae JB |
68 | Requires: %{name}-bonobo = %{version}-%{release} |
69 | Requires: %{name}-canvas = %{version}-%{release} | |
5ce7696c JB |
70 | Requires: libbonoboui >= 2.22.0 |
71 | Requires: libgnome-libs >= 2.22.0 | |
72 | Requires: python-pygobject >= %{pygobject_ver} | |
73 | Requires: python-pygtk-gtk >= %{pygtk_ver} | |
4c510e20 | 74 | |
75 | %description bonobo-ui | |
76 | Bonobo User Interface bindings for Python. | |
77 | ||
de97f07e JR |
78 | %description bonobo-ui -l pl.UTF-8 |
79 | Wiązania Pythona do biblioteki interfejsu użytkownika Bonobo. | |
6b176ae5 | 80 | |
4c510e20 | 81 | %package canvas |
b97890eb | 82 | Summary: GNOME Canvas bindings for Python |
1b162a5c | 83 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki GNOME Canvas |
4c510e20 | 84 | Group: Libraries/Python |
5ce7696c JB |
85 | Requires: %{name}-common = %{version}-%{release} |
86 | Requires: libgnomecanvas >= 2.8.0 | |
87 | Requires: python-pygobject >= %{pygobject_ver} | |
88 | Requires: python-pygtk-gtk >= %{pygtk_ver} | |
4c510e20 | 89 | |
90 | %description canvas | |
b97890eb | 91 | GNOME Canvas bindings for Python. |
4c510e20 | 92 | |
de97f07e JR |
93 | %description canvas -l pl.UTF-8 |
94 | Wiązania Pythona do biblioteki GNOME Canvas. | |
6b176ae5 | 95 | |
4c510e20 | 96 | %package gconf |
97 | Summary: GConf bindings for Python | |
1b162a5c | 98 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki GConf |
4c510e20 | 99 | Group: Libraries/Python |
5ce7696c JB |
100 | Requires: %{name}-common = %{version}-%{release} |
101 | Requires: GConf2-libs >= 2.22.0 | |
102 | Requires: python-pygobject >= %{pygobject_ver} | |
4c510e20 | 103 | |
104 | %description gconf | |
105 | GConf bindings for Python. | |
106 | ||
de97f07e JR |
107 | %description gconf -l pl.UTF-8 |
108 | Wiązania Pythona do biblioteki GConf. | |
6b176ae5 | 109 | |
4c510e20 | 110 | %package ui |
b97890eb | 111 | Summary: GNOME User Interface bindings for Python |
1b162a5c | 112 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki interfejsu użytkownika GNOME |
4c510e20 | 113 | Group: Libraries/Python |
9c5e43ae | 114 | Requires: %{name}-bonobo-ui = %{version}-%{release} |
5ce7696c JB |
115 | Requires: %{name}-canvas = %{version}-%{release} |
116 | Requires: libgnomeui >= 2.22.0 | |
117 | Requires: python-pygobject >= %{pygobject_ver} | |
118 | Requires: python-pygtk-gtk >= %{pygtk_ver} | |
4c510e20 | 119 | |
120 | %description ui | |
b97890eb | 121 | GNOME User Interface bindings for Python. |
4c510e20 | 122 | |
de97f07e JR |
123 | %description ui -l pl.UTF-8 |
124 | Wiązania Pythona do biblioteki interfejsu użytkownika GNOME. | |
6b176ae5 | 125 | |
4c510e20 | 126 | %package vfs |
b97890eb | 127 | Summary: GNOME VFS bindings for Python |
1b162a5c | 128 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki GNOME VFS |
4c510e20 | 129 | Group: Libraries/Python |
5ce7696c JB |
130 | Requires: %{name}-common = %{version}-%{release} |
131 | Requires: gnome-vfs2-libs >= 2.22.0 | |
e490a09c | 132 | Requires: libbonobo >= 2.22.0 |
5ce7696c JB |
133 | Requires: python-pygobject >= %{pygobject_ver} |
134 | Requires: python-pyorbit >= %{pyorbit_ver} | |
4c510e20 | 135 | |
136 | %description vfs | |
b97890eb | 137 | GNOME VFS bindings for Python. |
4c510e20 | 138 | |
de97f07e JR |
139 | %description vfs -l pl.UTF-8 |
140 | Wiązania Pythona do biblioteki GNOME VFS. | |
6b176ae5 | 141 | |
5ce7696c JB |
142 | %package common |
143 | Summary: Common files for Python GNOME bindings | |
144 | Summary(pl.UTF-8): Pliki wspólne wiązań Pythona do GNOME | |
145 | Group: Libraries/Python | |
146 | Requires: python-libs >= 1:2.3.2 | |
147 | Requires: python-pygobject >= %{pygobject_ver} | |
148 | ||
149 | %description common | |
150 | Common files for Python GNOME bindings. | |
151 | ||
152 | %description common -l pl.UTF-8 | |
153 | Pliki wspólne wiązań Pythona do GNOME. | |
154 | ||
4c510e20 | 155 | %package devel |
5ce7696c | 156 | Summary: Development files for Python GNOME bindings |
1b162a5c | 157 | Summary(pl.UTF-8): Pliki programistyczne wiązań Pythona do GNOME |
5ce7696c JB |
158 | Group: Development/Libraries |
159 | Requires: %{name} = %{version}-%{release} | |
160 | Requires: %{name}-bonobo = %{version}-%{release} | |
161 | Requires: %{name}-bonobo-ui = %{version}-%{release} | |
162 | Requires: %{name}-canvas = %{version}-%{release} | |
163 | Requires: %{name}-gconf = %{version}-%{release} | |
9c5e43ae | 164 | Requires: %{name}-ui = %{version}-%{release} |
5ce7696c JB |
165 | Requires: %{name}-vfs = %{version}-%{release} |
166 | Requires: gnome-vfs2-devel >= 2.22.0 | |
167 | Requires: python-pygtk-devel >= %{pygtk_ver} | |
4c510e20 | 168 | |
169 | %description devel | |
5ce7696c | 170 | Development files for Python GNOME bindings. |
4c510e20 | 171 | |
de97f07e JR |
172 | %description devel -l pl.UTF-8 |
173 | Pliki programistyczne wiązań Pythona do GNOME. | |
6b176ae5 | 174 | |
5ce7696c JB |
175 | %package apidocs |
176 | Summary: API documentation for Python GNOME bindings | |
177 | Summary(pl.UTF-8): Dokumentacja API wiązań Pythona do GNOME | |
178 | Group: Documentation | |
3adff74d | 179 | BuildArch: noarch |
5ce7696c JB |
180 | |
181 | %description apidocs | |
182 | API documentation for Python GNOME bindings. | |
183 | ||
184 | %description apidocs -l pl.UTF-8 | |
185 | Dokumentacja API wiązań Pythona do GNOME. | |
186 | ||
890b5ea3 | 187 | %package examples |
8c909570 | 188 | Summary: Example programs for python-gnome |
1b162a5c | 189 | Summary(pl.UTF-8): Przykładowe programy do python-gnome |
8c909570 | 190 | Group: Libraries/Python |
890b5ea3 | 191 | Requires: %{name}-devel = %{version}-%{release} |
192 | ||
193 | %description examples | |
194 | This package contains example programs for python-gnome. | |
195 | ||
de97f07e JR |
196 | %description examples -l pl.UTF-8 |
197 | Ten pakiet zawiera przykładowe programy dla python-gnome. | |
890b5ea3 | 198 | |
b9570cb0 | 199 | %prep |
200 | %setup -q -n %{module}-%{version} | |
201 | ||
5ce7696c JB |
202 | %{__sed} -i -e 's,${DATADIR}/gtk-doc/html/,%{_gtkdocdir}/,' docs/gnomevfs/wscript |
203 | ||
b9570cb0 | 204 | %build |
5ce7696c JB |
205 | CC="%{__cc}" \ |
206 | CFLAGS="%{rpmcflags}" \ | |
87dd4701 | 207 | ./waf configure \ |
aac920e3 PZ |
208 | --prefix %{_prefix} \ |
209 | --libdir %{_libdir} | |
5ce7696c JB |
210 | ./waf build \ |
211 | --verbose | |
b9570cb0 | 212 | |
213 | %install | |
214 | rm -rf $RPM_BUILD_ROOT | |
87dd4701 PZ |
215 | ./waf install \ |
216 | --destdir $RPM_BUILD_ROOT | |
8fec1a7c | 217 | |
6caae5de ER |
218 | # waf is sucker, and does not +x executables |
219 | find $RPM_BUILD_ROOT -name '*.so' | xargs chmod a+rx | |
220 | ||
5ce7696c JB |
221 | %py_postclean |
222 | ||
6caae5de | 223 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
890b5ea3 | 224 | cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
225 | ||
b9570cb0 | 226 | %clean |
227 | rm -rf $RPM_BUILD_ROOT | |
228 | ||
3606f544 | 229 | %post -p /sbin/ldconfig |
230 | %postun -p /sbin/ldconfig | |
4c510e20 | 231 | |
b9570cb0 | 232 | %files |
233 | %defattr(644,root,root,755) | |
f9fa2ecf JB |
234 | %{py_sitedir}/gtk-2.0/gnome/__init__.py[co] |
235 | %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnome/_gnome.so | |
80364dcc | 236 | |
4c510e20 | 237 | %files bonobo |
238 | %defattr(644,root,root,755) | |
80364dcc | 239 | %dir %{py_sitedir}/gtk-2.0/bonobo |
f9fa2ecf JB |
240 | %{py_sitedir}/gtk-2.0/bonobo/__init__.py[co] |
241 | %attr(755,root,root) %{py_sitedir}/gtk-2.0/bonobo/_bonobo.so | |
242 | %attr(755,root,root) %{py_sitedir}/gtk-2.0/bonobo/activation.so | |
80364dcc | 243 | |
4c510e20 | 244 | %files bonobo-ui |
245 | %defattr(644,root,root,755) | |
f9fa2ecf | 246 | %attr(755,root,root) %{py_sitedir}/gtk-2.0/bonobo/ui.so |
4c510e20 | 247 | |
4c510e20 | 248 | %files canvas |
249 | %defattr(644,root,root,755) | |
f9fa2ecf | 250 | %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnomecanvas.so |
9bf44066 | 251 | %{py_sitedir}/gtk-2.0/gnome/canvas.py[co] |
4c510e20 | 252 | |
253 | %files gconf | |
254 | %defattr(644,root,root,755) | |
f9fa2ecf | 255 | %attr(755,root,root) %{py_sitedir}/gtk-2.0/gconf.so |
581322de | 256 | |
4c510e20 | 257 | %files ui |
258 | %defattr(644,root,root,755) | |
f9fa2ecf | 259 | %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnome/ui.so |
4c510e20 | 260 | |
261 | %files vfs | |
262 | %defattr(644,root,root,755) | |
f9fa2ecf JB |
263 | %dir %{py_sitedir}/gtk-2.0/gnomevfs |
264 | %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnomevfs/_gnomevfs.so | |
265 | %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnomevfs/gnomevfsbonobo.so | |
266 | %{py_sitedir}/gtk-2.0/gnomevfs/__init__.py[co] | |
5ce7696c | 267 | %{py_sitedir}/gtk-2.0/gnome/vfs.py[co] |
f9fa2ecf | 268 | %attr(755,root,root) %{_libdir}/gnome-vfs-2.0/modules/libpythonmethod.so |
5ce7696c JB |
269 | |
270 | %files common | |
271 | %defattr(644,root,root,755) | |
272 | %doc AUTHORS ChangeLog NEWS README | |
273 | %dir %{py_sitedir}/gtk-2.0/gnome | |
274 | ||
275 | %files devel | |
276 | %defattr(644,root,root,755) | |
277 | %{_includedir}/gnome-python-2.0 | |
278 | %dir %{_datadir}/pygtk/2.0/argtypes | |
279 | %{_datadir}/pygtk/2.0/argtypes/bonobo-arg-types.py* | |
280 | %{_datadir}/pygtk/2.0/argtypes/gconf-arg-types.py* | |
281 | %{pydefsdir}/*.defs | |
282 | %{_pkgconfigdir}/gnome-python-2.0.pc | |
283 | ||
284 | %files apidocs | |
285 | %defattr(644,root,root,755) | |
286 | %{_gtkdocdir}/pygnomevfs | |
287 | ||
288 | %files examples | |
289 | %defattr(644,root,root,755) | |
290 | %{_examplesdir}/%{name}-%{version} |