]> git.pld-linux.org Git - packages/python-gnome.git/blame - python-gnome.spec
- update libbonobo deps
[packages/python-gnome.git] / python-gnome.spec
CommitLineData
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 5Summary: GNOME bindings for Python
1b162a5c 6Summary(pl.UTF-8): Wiązania Pythona do bibliotek GNOME
b9570cb0 7Name: python-gnome
301a3241 8Version: 2.28.1
e490a09c 9Release: 11
5ce7696c 10License: LGPL v2.1+
b9570cb0 11Group: Libraries/Python
2c7d42c2 12Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-python/2.28/%{module}-%{version}.tar.bz2
301a3241 13# Source0-md5: a17ad952813ed86f520de8e07194a2bf
87dd4701
PZ
14BuildRequires: GConf2-devel >= 2.22.0
15BuildRequires: glib2-devel >= 1:2.16.0
04456651 16BuildRequires: gnome-common >= 2.20.0
87dd4701 17BuildRequires: gnome-vfs2-devel >= 2.22.0
04456651 18BuildRequires: gtk+2-devel >= 2:2.12.0
5ce7696c 19BuildRequires: libbonobo-devel >= 2.22.0
87dd4701 20BuildRequires: libbonoboui-devel >= 2.22.0
5ce7696c
JB
21BuildRequires: libgnome-devel >= 2.22.0
22BuildRequires: libgnomecanvas-devel >= 2.8.0
87dd4701 23BuildRequires: libgnomeui-devel >= 2.22.0
5ce7696c 24BuildRequires: libxslt-progs
4c510e20 25BuildRequires: pkgconfig
271f44c6 26BuildRequires: popt-devel
97159388 27BuildRequires: python-devel >= 1:2.3.2
5ce7696c
JB
28BuildRequires: python-pygobject-devel >= %{pygobject_ver}
29BuildRequires: python-pygtk-devel >= %{pygtk_ver}
30BuildRequires: python-pyorbit-devel >= %{pyorbit_ver}
fb7b9f42 31BuildRequires: rpm-pythonprov
5ce7696c
JB
32BuildRequires: rpmbuild(macros) >= 1.219
33BuildRequires: sed >= 4.0
34Requires: %{name}-common = %{version}-%{release}
35Requires: libgnome-libs >= 2.22.0
36Requires: python-pygobject >= %{pygobject_ver}
9bf44066 37Obsoletes: gnome-python
38Obsoletes: gnome-python-nautilus
8101b240 39Obsoletes: python-gnome-nautilus
b9570cb0 40BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
4c510e20 42%define pydefsdir %(pkg-config --variable=defsdir pygtk-2.0)
43
b9570cb0 44%description
b97890eb 45GNOME bindings for Python.
b9570cb0 46
de97f07e
JR
47%description -l pl.UTF-8
48Wiązania Pythona do bibliotek GNOME.
b9570cb0 49
4c510e20 50%package bonobo
51Summary: Bonobo bindings for Python
1b162a5c 52Summary(pl.UTF-8): Wiązania Pythona do biblioteki Bonobo
4c510e20 53Group: Libraries/Python
e490a09c 54Requires: libbonobo >= 2.22.0
5ce7696c
JB
55Requires: python-pygobject >= %{pygobject_ver}
56Requires: python-pyorbit >= %{pyorbit_ver}
4c510e20 57
58%description bonobo
59Bonobo bindings for Python.
60
de97f07e
JR
61%description bonobo -l pl.UTF-8
62Wiązania Pythona do biblioteki Bonobo.
6b176ae5 63
4c510e20 64%package bonobo-ui
65Summary: Bonobo User Interface bindings for Python
1b162a5c 66Summary(pl.UTF-8): Wiązania Pythona do biblioteki interfejsu użytkownika Bonobo
4c510e20 67Group: Libraries/Python
9c5e43ae
JB
68Requires: %{name}-bonobo = %{version}-%{release}
69Requires: %{name}-canvas = %{version}-%{release}
5ce7696c
JB
70Requires: libbonoboui >= 2.22.0
71Requires: libgnome-libs >= 2.22.0
72Requires: python-pygobject >= %{pygobject_ver}
73Requires: python-pygtk-gtk >= %{pygtk_ver}
4c510e20 74
75%description bonobo-ui
76Bonobo User Interface bindings for Python.
77
de97f07e
JR
78%description bonobo-ui -l pl.UTF-8
79Wiązania Pythona do biblioteki interfejsu użytkownika Bonobo.
6b176ae5 80
4c510e20 81%package canvas
b97890eb 82Summary: GNOME Canvas bindings for Python
1b162a5c 83Summary(pl.UTF-8): Wiązania Pythona do biblioteki GNOME Canvas
4c510e20 84Group: Libraries/Python
5ce7696c
JB
85Requires: %{name}-common = %{version}-%{release}
86Requires: libgnomecanvas >= 2.8.0
87Requires: python-pygobject >= %{pygobject_ver}
88Requires: python-pygtk-gtk >= %{pygtk_ver}
4c510e20 89
90%description canvas
b97890eb 91GNOME Canvas bindings for Python.
4c510e20 92
de97f07e
JR
93%description canvas -l pl.UTF-8
94Wiązania Pythona do biblioteki GNOME Canvas.
6b176ae5 95
4c510e20 96%package gconf
97Summary: GConf bindings for Python
1b162a5c 98Summary(pl.UTF-8): Wiązania Pythona do biblioteki GConf
4c510e20 99Group: Libraries/Python
5ce7696c
JB
100Requires: %{name}-common = %{version}-%{release}
101Requires: GConf2-libs >= 2.22.0
102Requires: python-pygobject >= %{pygobject_ver}
4c510e20 103
104%description gconf
105GConf bindings for Python.
106
de97f07e
JR
107%description gconf -l pl.UTF-8
108Wiązania Pythona do biblioteki GConf.
6b176ae5 109
4c510e20 110%package ui
b97890eb 111Summary: GNOME User Interface bindings for Python
1b162a5c 112Summary(pl.UTF-8): Wiązania Pythona do biblioteki interfejsu użytkownika GNOME
4c510e20 113Group: Libraries/Python
9c5e43ae 114Requires: %{name}-bonobo-ui = %{version}-%{release}
5ce7696c
JB
115Requires: %{name}-canvas = %{version}-%{release}
116Requires: libgnomeui >= 2.22.0
117Requires: python-pygobject >= %{pygobject_ver}
118Requires: python-pygtk-gtk >= %{pygtk_ver}
4c510e20 119
120%description ui
b97890eb 121GNOME User Interface bindings for Python.
4c510e20 122
de97f07e
JR
123%description ui -l pl.UTF-8
124Wiązania Pythona do biblioteki interfejsu użytkownika GNOME.
6b176ae5 125
4c510e20 126%package vfs
b97890eb 127Summary: GNOME VFS bindings for Python
1b162a5c 128Summary(pl.UTF-8): Wiązania Pythona do biblioteki GNOME VFS
4c510e20 129Group: Libraries/Python
5ce7696c
JB
130Requires: %{name}-common = %{version}-%{release}
131Requires: gnome-vfs2-libs >= 2.22.0
e490a09c 132Requires: libbonobo >= 2.22.0
5ce7696c
JB
133Requires: python-pygobject >= %{pygobject_ver}
134Requires: python-pyorbit >= %{pyorbit_ver}
4c510e20 135
136%description vfs
b97890eb 137GNOME VFS bindings for Python.
4c510e20 138
de97f07e
JR
139%description vfs -l pl.UTF-8
140Wiązania Pythona do biblioteki GNOME VFS.
6b176ae5 141
5ce7696c
JB
142%package common
143Summary: Common files for Python GNOME bindings
144Summary(pl.UTF-8): Pliki wspólne wiązań Pythona do GNOME
145Group: Libraries/Python
146Requires: python-libs >= 1:2.3.2
147Requires: python-pygobject >= %{pygobject_ver}
148
149%description common
150Common files for Python GNOME bindings.
151
152%description common -l pl.UTF-8
153Pliki wspólne wiązań Pythona do GNOME.
154
4c510e20 155%package devel
5ce7696c 156Summary: Development files for Python GNOME bindings
1b162a5c 157Summary(pl.UTF-8): Pliki programistyczne wiązań Pythona do GNOME
5ce7696c
JB
158Group: Development/Libraries
159Requires: %{name} = %{version}-%{release}
160Requires: %{name}-bonobo = %{version}-%{release}
161Requires: %{name}-bonobo-ui = %{version}-%{release}
162Requires: %{name}-canvas = %{version}-%{release}
163Requires: %{name}-gconf = %{version}-%{release}
9c5e43ae 164Requires: %{name}-ui = %{version}-%{release}
5ce7696c
JB
165Requires: %{name}-vfs = %{version}-%{release}
166Requires: gnome-vfs2-devel >= 2.22.0
167Requires: python-pygtk-devel >= %{pygtk_ver}
4c510e20 168
169%description devel
5ce7696c 170Development files for Python GNOME bindings.
4c510e20 171
de97f07e
JR
172%description devel -l pl.UTF-8
173Pliki programistyczne wiązań Pythona do GNOME.
6b176ae5 174
5ce7696c
JB
175%package apidocs
176Summary: API documentation for Python GNOME bindings
177Summary(pl.UTF-8): Dokumentacja API wiązań Pythona do GNOME
178Group: Documentation
3adff74d 179BuildArch: noarch
5ce7696c
JB
180
181%description apidocs
182API documentation for Python GNOME bindings.
183
184%description apidocs -l pl.UTF-8
185Dokumentacja API wiązań Pythona do GNOME.
186
890b5ea3 187%package examples
8c909570 188Summary: Example programs for python-gnome
1b162a5c 189Summary(pl.UTF-8): Przykładowe programy do python-gnome
8c909570 190Group: Libraries/Python
890b5ea3 191Requires: %{name}-devel = %{version}-%{release}
192
193%description examples
194This package contains example programs for python-gnome.
195
de97f07e
JR
196%description examples -l pl.UTF-8
197Ten 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
205CC="%{__cc}" \
206CFLAGS="%{rpmcflags}" \
87dd4701 207./waf configure \
aac920e3
PZ
208 --prefix %{_prefix} \
209 --libdir %{_libdir}
5ce7696c
JB
210./waf build \
211 --verbose
b9570cb0 212
213%install
214rm -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
219find $RPM_BUILD_ROOT -name '*.so' | xargs chmod a+rx
220
5ce7696c
JB
221%py_postclean
222
6caae5de 223install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
890b5ea3 224cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
225
b9570cb0 226%clean
227rm -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}
This page took 0.49341 seconds and 4 git commands to generate.