]>
Commit | Line | Data |
---|---|---|
bca112f3 | 1 | %define module gnome-python |
04456651 | 2 | %define pygtk_req 2:2.12.0 |
c6d6bcc6 | 3 | %define pyorbit_req 2.14.2 |
b97890eb | 4 | Summary: GNOME bindings for Python |
1b162a5c | 5 | Summary(pl.UTF-8): Wiązania Pythona do bibliotek GNOME |
b9570cb0 | 6 | Name: python-gnome |
319a7998 | 7 | Version: 2.22.3 |
96b6930a | 8 | Release: 2 |
9bf44066 | 9 | License: GPL v2+/LGPL v2.1+ |
b9570cb0 | 10 | Group: Libraries/Python |
87dd4701 | 11 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-python/2.22/%{module}-%{version}.tar.bz2 |
319a7998 | 12 | # Source0-md5: ab12d94954a57de39b25eb7903d8429c |
87dd4701 PZ |
13 | BuildRequires: GConf2-devel >= 2.22.0 |
14 | BuildRequires: glib2-devel >= 1:2.16.0 | |
04456651 | 15 | BuildRequires: gnome-common >= 2.20.0 |
87dd4701 | 16 | BuildRequires: gnome-vfs2-devel >= 2.22.0 |
04456651 | 17 | BuildRequires: gtk+2-devel >= 2:2.12.0 |
87dd4701 PZ |
18 | BuildRequires: libbonoboui-devel >= 2.22.0 |
19 | BuildRequires: libgnomeui-devel >= 2.22.0 | |
bd4a4a97 | 20 | BuildRequires: libtool |
4c510e20 | 21 | BuildRequires: pkgconfig |
271f44c6 | 22 | BuildRequires: popt-devel |
97159388 | 23 | BuildRequires: python-devel >= 1:2.3.2 |
8fec1a7c | 24 | BuildRequires: python-pygtk-devel >= %{pygtk_req} |
c6d6bcc6 | 25 | BuildRequires: python-pyorbit-devel >= %{pyorbit_req} |
fb7b9f42 | 26 | BuildRequires: rpm-pythonprov |
4dd5a82f | 27 | BuildRequires: rpmbuild(macros) >= 1.197 |
b9570cb0 | 28 | %pyrequires_eq python-modules |
c072c7c5 | 29 | Requires: %{name}-bonobo = %{version}-%{release} |
30 | Requires: %{name}-gconf = %{version}-%{release} | |
31 | Requires: %{name}-vfs = %{version}-%{release} | |
87dd4701 | 32 | Requires: libgnomeui >= 2.22.0 |
9bf44066 | 33 | Obsoletes: gnome-python |
34 | Obsoletes: gnome-python-nautilus | |
8101b240 | 35 | Obsoletes: python-gnome-nautilus |
b9570cb0 | 36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
4c510e20 | 38 | %define pydefsdir %(pkg-config --variable=defsdir pygtk-2.0) |
39 | ||
b9570cb0 | 40 | %description |
b97890eb | 41 | GNOME bindings for Python. |
b9570cb0 | 42 | |
de97f07e JR |
43 | %description -l pl.UTF-8 |
44 | Wiązania Pythona do bibliotek GNOME. | |
b9570cb0 | 45 | |
4c510e20 | 46 | %package bonobo |
47 | Summary: Bonobo bindings for Python | |
1b162a5c | 48 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki Bonobo |
4c510e20 | 49 | Group: Libraries/Python |
04456651 | 50 | Requires: python-pygobject >= 2.14.0 |
8fec1a7c | 51 | Requires: python-pyorbit >= %{pyorbit_req} |
4c510e20 | 52 | |
53 | %description bonobo | |
54 | Bonobo bindings for Python. | |
55 | ||
de97f07e JR |
56 | %description bonobo -l pl.UTF-8 |
57 | Wiązania Pythona do biblioteki Bonobo. | |
6b176ae5 | 58 | |
4c510e20 | 59 | %package bonobo-ui |
60 | Summary: Bonobo User Interface bindings for Python | |
1b162a5c | 61 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki interfejsu użytkownika Bonobo |
4c510e20 | 62 | Group: Libraries/Python |
c072c7c5 | 63 | Requires: %{name} = %{version}-%{release} |
9c5e43ae JB |
64 | Requires: %{name}-bonobo = %{version}-%{release} |
65 | Requires: %{name}-canvas = %{version}-%{release} | |
c072c7c5 | 66 | Requires: %{name}-gconf = %{version}-%{release} |
59b784c9 | 67 | Requires: %{name}-vfs = %{version}-%{release} |
4c510e20 | 68 | |
69 | %description bonobo-ui | |
70 | Bonobo User Interface bindings for Python. | |
71 | ||
de97f07e JR |
72 | %description bonobo-ui -l pl.UTF-8 |
73 | Wiązania Pythona do biblioteki interfejsu użytkownika Bonobo. | |
6b176ae5 | 74 | |
4c510e20 | 75 | %package canvas |
b97890eb | 76 | Summary: GNOME Canvas bindings for Python |
1b162a5c | 77 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki GNOME Canvas |
4c510e20 | 78 | Group: Libraries/Python |
8fec1a7c | 79 | Requires: python-pygtk-gtk >= %{pygtk_req} |
4c510e20 | 80 | |
81 | %description canvas | |
b97890eb | 82 | GNOME Canvas bindings for Python. |
4c510e20 | 83 | |
de97f07e JR |
84 | %description canvas -l pl.UTF-8 |
85 | Wiązania Pythona do biblioteki GNOME Canvas. | |
6b176ae5 | 86 | |
4c510e20 | 87 | %package gconf |
88 | Summary: GConf bindings for Python | |
1b162a5c | 89 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki GConf |
4c510e20 | 90 | Group: Libraries/Python |
04456651 | 91 | Requires: python-pygobject >= 2.14.0 |
c072c7c5 | 92 | Requires: python-pyorbit >= %{pyorbit_req} |
4c510e20 | 93 | |
94 | %description gconf | |
95 | GConf bindings for Python. | |
96 | ||
de97f07e JR |
97 | %description gconf -l pl.UTF-8 |
98 | Wiązania Pythona do biblioteki GConf. | |
6b176ae5 | 99 | |
4c510e20 | 100 | %package ui |
b97890eb | 101 | Summary: GNOME User Interface bindings for Python |
1b162a5c | 102 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki interfejsu użytkownika GNOME |
4c510e20 | 103 | Group: Libraries/Python |
9c5e43ae | 104 | Requires: %{name}-bonobo-ui = %{version}-%{release} |
4c510e20 | 105 | |
106 | %description ui | |
b97890eb | 107 | GNOME User Interface bindings for Python. |
4c510e20 | 108 | |
de97f07e JR |
109 | %description ui -l pl.UTF-8 |
110 | Wiązania Pythona do biblioteki interfejsu użytkownika GNOME. | |
6b176ae5 | 111 | |
4c510e20 | 112 | %package vfs |
b97890eb | 113 | Summary: GNOME VFS bindings for Python |
1b162a5c | 114 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki GNOME VFS |
4c510e20 | 115 | Group: Libraries/Python |
c072c7c5 | 116 | Requires: %{name}-bonobo = %{version}-%{release} |
117 | Requires: %{name}-gconf = %{version}-%{release} | |
4c510e20 | 118 | |
119 | %description vfs | |
b97890eb | 120 | GNOME VFS bindings for Python. |
4c510e20 | 121 | |
de97f07e JR |
122 | %description vfs -l pl.UTF-8 |
123 | Wiązania Pythona do biblioteki GNOME VFS. | |
6b176ae5 | 124 | |
4c510e20 | 125 | %package devel |
b97890eb | 126 | Summary: Development files for GNOME bindings for Python |
1b162a5c | 127 | Summary(pl.UTF-8): Pliki programistyczne wiązań Pythona do GNOME |
4c510e20 | 128 | Group: Libraries/Python |
9c5e43ae | 129 | Requires: %{name}-ui = %{version}-%{release} |
3ec4c547 | 130 | Requires: python-pygtk-devel >= %{pygtk_req} |
4c510e20 | 131 | |
132 | %description devel | |
b97890eb | 133 | Development files for GNOME bindings for Python. |
4c510e20 | 134 | |
de97f07e JR |
135 | %description devel -l pl.UTF-8 |
136 | Pliki programistyczne wiązań Pythona do GNOME. | |
6b176ae5 | 137 | |
890b5ea3 | 138 | %package examples |
8c909570 | 139 | Summary: Example programs for python-gnome |
1b162a5c | 140 | Summary(pl.UTF-8): Przykładowe programy do python-gnome |
8c909570 | 141 | Group: Libraries/Python |
890b5ea3 | 142 | Requires: %{name}-devel = %{version}-%{release} |
143 | ||
144 | %description examples | |
145 | This package contains example programs for python-gnome. | |
146 | ||
de97f07e JR |
147 | %description examples -l pl.UTF-8 |
148 | Ten pakiet zawiera przykładowe programy dla python-gnome. | |
890b5ea3 | 149 | |
b9570cb0 | 150 | %prep |
151 | %setup -q -n %{module}-%{version} | |
152 | ||
153 | %build | |
87dd4701 | 154 | ./waf configure \ |
aac920e3 PZ |
155 | --prefix %{_prefix} \ |
156 | --libdir %{_libdir} | |
87dd4701 | 157 | ./waf build |
b9570cb0 | 158 | |
159 | %install | |
160 | rm -rf $RPM_BUILD_ROOT | |
161 | ||
890b5ea3 | 162 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
163 | ||
87dd4701 PZ |
164 | ./waf install \ |
165 | --destdir $RPM_BUILD_ROOT | |
8fec1a7c | 166 | |
890b5ea3 | 167 | cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
168 | ||
3ec4c547 | 169 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/gtk-2.0/{*.la,*/{*.la,*.py}} |
2a30251e | 170 | rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-vfs-2.0/modules/*.la |
b9570cb0 | 171 | |
172 | %clean | |
173 | rm -rf $RPM_BUILD_ROOT | |
174 | ||
3606f544 | 175 | %post -p /sbin/ldconfig |
176 | %postun -p /sbin/ldconfig | |
4c510e20 | 177 | |
b9570cb0 | 178 | %files |
179 | %defattr(644,root,root,755) | |
0a64c096 | 180 | %doc ChangeLog AUTHORS |
4c510e20 | 181 | %dir %{py_sitedir}/gtk-2.0/gnome |
f9fa2ecf JB |
182 | %{py_sitedir}/gtk-2.0/gnome/__init__.py[co] |
183 | %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnome/_gnome.so | |
80364dcc | 184 | |
890b5ea3 | 185 | %files devel |
186 | %defattr(644,root,root,755) | |
f9fa2ecf JB |
187 | %{_includedir}/gnome-python-2.0 |
188 | %dir %{_datadir}/pygtk/2.0/argtypes | |
189 | %{_datadir}/pygtk/2.0/argtypes/bonobo-arg-types.py* | |
190 | %{_datadir}/pygtk/2.0/argtypes/gconf-arg-types.py* | |
191 | %{pydefsdir}/*.defs | |
192 | %{_pkgconfigdir}/gnome-python-2.0.pc | |
890b5ea3 | 193 | |
194 | %files examples | |
195 | %defattr(644,root,root,755) | |
196 | %{_examplesdir}/%{name}-%{version} | |
197 | ||
4c510e20 | 198 | %files bonobo |
199 | %defattr(644,root,root,755) | |
80364dcc | 200 | %dir %{py_sitedir}/gtk-2.0/bonobo |
f9fa2ecf JB |
201 | %{py_sitedir}/gtk-2.0/bonobo/__init__.py[co] |
202 | %attr(755,root,root) %{py_sitedir}/gtk-2.0/bonobo/_bonobo.so | |
203 | %attr(755,root,root) %{py_sitedir}/gtk-2.0/bonobo/activation.so | |
80364dcc | 204 | |
4c510e20 | 205 | %files bonobo-ui |
206 | %defattr(644,root,root,755) | |
f9fa2ecf | 207 | %attr(755,root,root) %{py_sitedir}/gtk-2.0/bonobo/ui.so |
4c510e20 | 208 | |
4c510e20 | 209 | %files canvas |
210 | %defattr(644,root,root,755) | |
f9fa2ecf | 211 | %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnomecanvas.so |
9bf44066 | 212 | %{py_sitedir}/gtk-2.0/gnome/canvas.py[co] |
4c510e20 | 213 | |
214 | %files gconf | |
215 | %defattr(644,root,root,755) | |
f9fa2ecf | 216 | %attr(755,root,root) %{py_sitedir}/gtk-2.0/gconf.so |
581322de | 217 | |
4c510e20 | 218 | %files ui |
219 | %defattr(644,root,root,755) | |
f9fa2ecf | 220 | %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnome/ui.so |
4c510e20 | 221 | |
222 | %files vfs | |
223 | %defattr(644,root,root,755) | |
9bf44066 | 224 | %{py_sitedir}/gtk-2.0/gnome/vfs.py[co] |
f9fa2ecf JB |
225 | %dir %{py_sitedir}/gtk-2.0/gnomevfs |
226 | %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnomevfs/_gnomevfs.so | |
227 | %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnomevfs/gnomevfsbonobo.so | |
228 | %{py_sitedir}/gtk-2.0/gnomevfs/__init__.py[co] | |
229 | %attr(755,root,root) %{_libdir}/gnome-vfs-2.0/modules/libpythonmethod.so |