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: d7dfa32fb33829b4f30c40b04dca3e3d
16 BuildRequires: automake
17 BuildRequires: gnome-panel-devel >= 2.0.9
18 BuildRequires: gnome-vfs2-devel >= 2.0.4
19 BuildRequires: libgnomeprintui-devel >= 2.2.1.1
20 BuildRequires: libgtkhtml-devel >= 2.0.2
21 BuildRequires: nautilus-devel >= 2.0.7
22 BuildRequires: pkgconfig
23 BuildRequires: python-devel >= 2.3.2
24 BuildRequires: python-pyorbit-devel >= %{pyorbit_req}
25 BuildRequires: python-pygtk-devel >= %{pygtk_req}
26 BuildRequires: rpm-pythonprov
27 %pyrequires_eq python-modules
28 Requires: python-pygtk-gobject >= %{pygtk_req}
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 %define pydefsdir %(pkg-config --variable=defsdir pygtk-2.0)
35 GNOME bindings for Python.
38 Wi±zania Pythona do bibliotek GNOME.
41 Summary: Bonobo bindings for Python
42 Summary(pl): Wi±zania Pythona do biblioteki Bonobo
43 Group: Libraries/Python
44 Requires: python-pygtk-gobject >= %{pygtk_req}
45 Requires: python-pyorbit >= %{pyorbit_req}
48 Bonobo bindings for Python.
50 %description bonobo -l pl
51 Wi±zania Pythona do biblioteki Bonobo.
54 Summary: Bonobo User Interface bindings for Python
55 Summary(pl): Wi±zania Pythona do biblioteki interfejsu u¿ytkownika Bonobo
56 Group: Libraries/Python
57 Requires: %{name}-bonobo = %{version}-%{release}
58 Requires: %{name}-canvas = %{version}-%{release}
60 %description bonobo-ui
61 Bonobo User Interface bindings for Python.
63 %description bonobo-ui -l pl
64 Wi±zania Pythona do biblioteki interfejsu u¿ytkownika Bonobo.
67 Summary: GNOME Applet bindings for Python
68 Summary(pl): Wi±zania Pythona do biblioteki GNOME Applet
69 Group: Libraries/Python
70 Requires: %{name} = %{version}-%{release}
71 Requires: python-pygtk-gtk >= %{pygtk_req}
74 GNOME Applet bindings for Python.
76 %description applet -l pl
77 Wi±zania Pythona do biblioteki GNOME Applet.
80 Summary: GNOME Canvas bindings for Python
81 Summary(pl): Wi±zania Pythona do biblioteki GNOME Canvas
82 Group: Libraries/Python
83 Requires: %{name} = %{version}-%{release}
84 Requires: python-pygtk-gtk >= %{pygtk_req}
87 GNOME Canvas bindings for Python.
89 %description canvas -l pl
90 Wi±zania Pythona do biblioteki GNOME Canvas.
93 Summary: GConf bindings for Python
94 Summary(pl): Wi±zania Pythona do biblioteki GConf
95 Group: Libraries/Python
96 Requires: python-pygtk-gobject >= %{pygtk_req}
99 GConf bindings for Python.
101 %description gconf -l pl
102 Wi±zania Pythona do biblioteki GConf.
105 Summary: GtkHtml bindings for Python
106 Summary(pl): Wi±zania Pythona do biblioteki GtkHtml
107 Group: Libraries/Python
108 Requires: python-pygtk-gtk >= %{pygtk_req}
111 GtkHtml bindings for Python.
113 %description gtkhtml -l pl
114 Wi±zania Pythona do biblioteki GtkHtml.
117 Summary: Nautilus bindings for Python
118 Summary(pl): Wi±zania Pythona do Nautilusa
119 Group: Libraries/Python
120 Requires: %{name}-bonobo-ui = %{version}-%{release}
122 %description nautilus
123 Nautilus bindings for Python.
125 %description nautilus -l pl
126 Wi±zania Pythona do Nautilusa.
129 Summary: GNOME Print bindings for Python
130 Summary(pl): Wi±zania Pythona do biblioteki GNOME obs³ugi drukowania
131 Group: Libraries/Python
132 Requires: %{name} = %{version}-%{release}
133 Requires: python-pygtk-pango >= %{pygtk_req}
136 GNOME Print bindings for Python.
138 %description print -l pl
139 Wi±zania Pythona do biblioteki GNOME obs³ugi drukowania.
142 Summary: GNOME Print User Interface bindings for Python
143 Summary(pl): Wi±zania Pythona do biblioteki interfejsu u¿ytkownika GNOME obs³ugi drukowania
144 Group: Libraries/Python
145 Requires: %{name}-canvas = %{version}-%{release}
146 Requires: %{name}-print = %{version}-%{release}
148 %description print-ui
149 GNOME Print User Interface bindings for Python.
151 %description print-ui -l pl
152 Wi±zania Pythona do biblioteki interfejsu u¿ytkownika GNOME obs³ugi
156 Summary: GNOME User Interface bindings for Python
157 Summary(pl): Wi±zania Pythona do biblioteki interfejsu u¿ytkownika GNOME
158 Group: Libraries/Python
159 Requires: %{name}-bonobo-ui = %{version}-%{release}
162 GNOME User Interface bindings for Python.
164 %description ui -l pl
165 Wi±zania Pythona do biblioteki interfejsu u¿ytkownika GNOME.
168 Summary: GNOME VFS bindings for Python
169 Summary(pl): Wi±zania Pythona do biblioteki GNOME VFS
170 Group: Libraries/Python
171 Requires: %{name} = %{version}-%{release}
174 GNOME VFS bindings for Python.
176 %description vfs -l pl
177 Wi±zania Pythona do biblioteki GNOME VFS.
180 Summary: Development files for GNOME bindings for Python
181 Summary(pl): Pliki programistyczne wi±zañ Pythona do GNOME
182 Group: Libraries/Python
183 Requires: %{name}-applet = %{version}-%{release}
184 Requires: %{name}-bonobo = %{version}-%{release}
185 Requires: %{name}-bonobo-ui = %{version}-%{release}
186 Requires: %{name}-canvas = %{version}-%{release}
187 Requires: %{name}-gconf = %{version}-%{release}
188 Requires: %{name}-gtkhtml = %{version}-%{release}
189 Requires: %{name}-nautilus = %{version}-%{release}
190 Requires: %{name}-print = %{version}-%{release}
191 Requires: %{name}-print-ui = %{version}-%{release}
192 Requires: %{name}-ui = %{version}-%{release}
193 Requires: %{name}-vfs = %{version}-%{release}
194 Requires: python-pygtk-devel >= %{pygtk_req}
197 Development files for GNOME bindings for Python.
199 %description devel -l pl
200 Pliki programistyczne wi±zañ Pythona do GNOME.
203 %setup -q -n %{module}-%{version}
206 cp -f /usr/share/automake/config.* .
211 rm -rf $RPM_BUILD_ROOT
214 DESTDIR=$RPM_BUILD_ROOT
216 rm -f $RPM_BUILD_ROOT%{py_sitedir}/gtk-2.0/{*.la,*/{*.la,*.py}}
219 rm -rf $RPM_BUILD_ROOT
221 %post -p /sbin/ldconfig
222 %postun -p /sbin/ldconfig
225 %defattr(644,root,root,755)
226 %doc ChangeLog AUTHORS
227 %dir %{py_sitedir}/gtk-2.0/gnome
228 %{py_sitedir}/gtk-2.0/gnome/__init__.py?
229 %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnome/_gnome*.so
232 %defattr(644,root,root,755)
233 %dir %{py_sitedir}/gtk-2.0/bonobo
234 %{py_sitedir}/gtk-2.0/bonobo/__init__.py?
235 %attr(755,root,root) %{py_sitedir}/gtk-2.0/bonobo/_bonobo*.so
236 %attr(755,root,root) %{py_sitedir}/gtk-2.0/bonobo/activation*.so
239 %defattr(644,root,root,755)
240 %attr(755,root,root) %{py_sitedir}/gtk-2.0/bonobo/ui*.so
243 %defattr(644,root,root,755)
244 %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnome/applet*.so
247 %defattr(644,root,root,755)
248 %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnome/canvas*.so
251 %defattr(644,root,root,755)
252 %attr(755,root,root) %{py_sitedir}/gtk-2.0/gconf*.so
255 %defattr(644,root,root,755)
256 %attr(755,root,root) %{py_sitedir}/gtk-2.0/gtkhtml*.so
259 %defattr(644,root,root,755)
260 %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnome/nautilus*.so
263 %defattr(644,root,root,755)
264 %dir %{py_sitedir}/gtk-2.0/gnomeprint
265 %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnomeprint/_print*.so
266 %{py_sitedir}/gtk-2.0/gnomeprint/*.py[co]
269 %defattr(644,root,root,755)
270 %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnomeprint/ui.so
273 %defattr(644,root,root,755)
274 %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnome/ui*.so
277 %defattr(644,root,root,755)
278 %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnome/vfs*.so
281 %defattr(644,root,root,755)