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