2 %include /usr/lib/rpm/macros.python
4 %define module gnome-python
5 %define pygtk_req 1:2.0.0
6 %define pyorbit_req 2.0.0
7 Summary: GNOME bindings for Python
8 Summary(pl): Wi±zania Pythona do bibliotek GNOME
13 Group: Libraries/Python
14 Source0: http://ftp.gnome.org/pub/gnome/sources/%{module}/2.0/%{module}-%{version}.tar.bz2
15 # Source0-md5: 48304c0865f74db33291115011bd08d5
16 BuildRequires: gnome-panel-devel >= 2.0.9
17 BuildRequires: gnome-vfs2-devel >= 2.0.4
18 BuildRequires: libgnomeprintui-devel >= 2.2.1.1
19 BuildRequires: libgtkhtml-devel >= 2.0.2
20 BuildRequires: nautilus-devel >= 2.0.7
21 BuildRequires: pkgconfig
22 BuildRequires: python-devel >= 2.3.2
23 BuildRequires: python-pyorbit-devel >= %{pyorbit_req}
24 BuildRequires: python-pygtk-devel >= %{pygtk_req}
25 BuildRequires: rpm-pythonprov
26 %pyrequires_eq python-modules
27 Requires: python-pygtk-gobject >= %{pygtk_req}
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %define pydefsdir %(pkg-config --variable=defsdir pygtk-2.0)
34 GNOME bindings for Python.
37 Wi±zania Pythona do bibliotek GNOME.
40 Summary: Bonobo bindings for Python
41 Summary(pl): Wi±zania Pythona do biblioteki Bonobo
42 Group: Libraries/Python
43 Requires: python-pygtk-gobject >= %{pygtk_req}
44 Requires: python-pyorbit >= %{pyorbit_req}
47 Bonobo bindings for Python.
49 %description bonobo -l pl
50 Wi±zania Pythona do biblioteki Bonobo.
53 Summary: Bonobo User Interface bindings for Python
54 Summary(pl): Wi±zania Pythona do biblioteki interfejsu u¿ytkownika Bonobo
55 Group: Libraries/Python
56 Requires: %{name}-bonobo = %{version}-%{release}
57 Requires: %{name}-canvas = %{version}-%{release}
59 %description bonobo-ui
60 Bonobo User Interface bindings for Python.
62 %description bonobo-ui -l pl
63 Wi±zania Pythona do biblioteki interfejsu u¿ytkownika Bonobo.
66 Summary: GNOME Applet bindings for Python
67 Summary(pl): Wi±zania Pythona do biblioteki GNOME Applet
68 Group: Libraries/Python
69 Requires: %{name} = %{version}-%{release}
70 Requires: python-pygtk-gtk >= %{pygtk_req}
73 GNOME Applet bindings for Python.
75 %description applet -l pl
76 Wi±zania Pythona do biblioteki GNOME Applet.
79 Summary: GNOME Canvas bindings for Python
80 Summary(pl): Wi±zania Pythona do biblioteki GNOME Canvas
81 Group: Libraries/Python
82 Requires: %{name} = %{version}-%{release}
83 Requires: python-pygtk-gtk >= %{pygtk_req}
86 GNOME Canvas bindings for Python.
88 %description canvas -l pl
89 Wi±zania Pythona do biblioteki GNOME Canvas.
92 Summary: GConf bindings for Python
93 Summary(pl): Wi±zania Pythona do biblioteki GConf
94 Group: Libraries/Python
95 Requires: python-pygtk-gobject >= %{pygtk_req}
98 GConf bindings for Python.
100 %description gconf -l pl
101 Wi±zania Pythona do biblioteki GConf.
104 Summary: GtkHtml bindings for Python
105 Summary(pl): Wi±zania Pythona do biblioteki GtkHtml
106 Group: Libraries/Python
107 Requires: python-pygtk-gtk >= %{pygtk_req}
110 GtkHtml bindings for Python.
112 %description gtkhtml -l pl
113 Wi±zania Pythona do biblioteki GtkHtml.
116 Summary: Nautilus bindings for Python
117 Summary(pl): Wi±zania Pythona do Nautilusa
118 Group: Libraries/Python
119 Requires: %{name}-bonobo-ui = %{version}-%{release}
121 %description nautilus
122 Nautilus bindings for Python.
124 %description nautilus -l pl
125 Wi±zania Pythona do Nautilusa.
128 Summary: GNOME Print bindings for Python
129 Summary(pl): Wi±zania Pythona do biblioteki GNOME obs³ugi drukowania
130 Group: Libraries/Python
131 Requires: %{name} = %{version}-%{release}
132 Requires: python-pygtk-pango >= %{pygtk_req}
135 GNOME Print bindings for Python.
137 %description print -l pl
138 Wi±zania Pythona do biblioteki GNOME obs³ugi drukowania.
141 Summary: GNOME Print User Interface bindings for Python
142 Summary(pl): Wi±zania Pythona do biblioteki interfejsu u¿ytkownika GNOME obs³ugi drukowania
143 Group: Libraries/Python
144 Requires: %{name}-canvas = %{version}-%{release}
145 Requires: %{name}-print = %{version}-%{release}
147 %description print-ui
148 GNOME Print User Interface bindings for Python.
150 %description print-ui -l pl
151 Wi±zania Pythona do biblioteki interfejsu u¿ytkownika GNOME obs³ugi
155 Summary: GNOME User Interface bindings for Python
156 Summary(pl): Wi±zania Pythona do biblioteki interfejsu u¿ytkownika GNOME
157 Group: Libraries/Python
158 Requires: %{name}-bonobo-ui = %{version}-%{release}
161 GNOME User Interface bindings for Python.
163 %description ui -l pl
164 Wi±zania Pythona do biblioteki interfejsu u¿ytkownika GNOME.
167 Summary: GNOME VFS bindings for Python
168 Summary(pl): Wi±zania Pythona do biblioteki GNOME VFS
169 Group: Libraries/Python
170 Requires: %{name} = %{version}-%{release}
173 GNOME VFS bindings for Python.
175 %description vfs -l pl
176 Wi±zania Pythona do biblioteki GNOME VFS.
179 Summary: Development files for GNOME bindings for Python
180 Summary(pl): Pliki programistyczne wi±zañ Pythona do GNOME
181 Group: Libraries/Python
182 Requires: %{name}-applet = %{version}-%{release}
183 Requires: %{name}-bonobo = %{version}-%{release}
184 Requires: %{name}-bonobo-ui = %{version}-%{release}
185 Requires: %{name}-canvas = %{version}-%{release}
186 Requires: %{name}-gconf = %{version}-%{release}
187 Requires: %{name}-gtkhtml = %{version}-%{release}
188 Requires: %{name}-nautilus = %{version}-%{release}
189 Requires: %{name}-print = %{version}-%{release}
190 Requires: %{name}-print-ui = %{version}-%{release}
191 Requires: %{name}-ui = %{version}-%{release}
192 Requires: %{name}-vfs = %{version}-%{release}
193 Requires: python-pygtk-devel >= %{pygtk_req}
196 Development files for GNOME bindings for Python.
198 %description devel -l pl
199 Pliki programistyczne wi±zañ Pythona do GNOME.
202 %setup -q -n %{module}-%{version}
209 rm -rf $RPM_BUILD_ROOT
212 DESTDIR=$RPM_BUILD_ROOT
214 rm -f $RPM_BUILD_ROOT%{py_sitedir}/gtk-2.0/{*.la,*/{*.la,*.py}}
217 rm -rf $RPM_BUILD_ROOT
219 %post -p /sbin/ldconfig
220 %postun -p /sbin/ldconfig
223 %defattr(644,root,root,755)
224 %doc ChangeLog AUTHORS
225 %dir %{py_sitedir}/gtk-2.0/gnome
226 %{py_sitedir}/gtk-2.0/gnome/__init__.py?
227 %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnome/_gnome*.so
230 %defattr(644,root,root,755)
231 %dir %{py_sitedir}/gtk-2.0/bonobo
232 %{py_sitedir}/gtk-2.0/bonobo/__init__.py?
233 %attr(755,root,root) %{py_sitedir}/gtk-2.0/bonobo/_bonobo*.so
234 %attr(755,root,root) %{py_sitedir}/gtk-2.0/bonobo/activation*.so
237 %defattr(644,root,root,755)
238 %attr(755,root,root) %{py_sitedir}/gtk-2.0/bonobo/ui*.so
241 %defattr(644,root,root,755)
242 %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnome/applet*.so
245 %defattr(644,root,root,755)
246 %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnome/canvas*.so
249 %defattr(644,root,root,755)
250 %attr(755,root,root) %{py_sitedir}/gtk-2.0/gconf*.so
253 %defattr(644,root,root,755)
254 %attr(755,root,root) %{py_sitedir}/gtk-2.0/gtkhtml*.so
257 %defattr(644,root,root,755)
258 %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnome/nautilus*.so
261 %defattr(644,root,root,755)
262 %dir %{py_sitedir}/gtk-2.0/gnomeprint
263 %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnomeprint/_print*.so
264 %{py_sitedir}/gtk-2.0/gnomeprint/*.py[co]
267 %defattr(644,root,root,755)
268 %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnomeprint/ui.so
271 %defattr(644,root,root,755)
272 %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnome/ui*.so
275 %defattr(644,root,root,755)
276 %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnome/vfs*.so
279 %defattr(644,root,root,755)