]>
Commit | Line | Data |
---|---|---|
b5a0ce63 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without gtk # without gtk support | |
4 | %bcond_without qt # without qt support | |
5 | %bcond_without gadgets # without gadgets | |
6 | ||
c655eb83 | 7 | %define rev r1084 |
fd039f29 | 8 | |
05d27992 | 9 | # use this to get latest rev: |
405be74d | 10 | # svn export http://google-gadgets-for-linux.googlecode.com/svn/trunk/ google-gadgets-for-linux |
30b0d021 ER |
11 | Summary: Google Gadgets for Linux |
12 | Name: google-gadgets | |
7a74b0d2 | 13 | Version: 0.11.1 |
f7cb86cf | 14 | Release: 1 |
8d5ec522 BZ |
15 | License: Apache License v2.0 |
16 | Group: X11/Applications | |
09b4fe78 | 17 | #Source0: %{name}-for-linux-%{version}-%{rev}.tar.bz2 |
18 | Source0: http://google-gadgets-for-linux.googlecode.com/files/%{name}-for-linux-%{version}.tar.bz2 | |
7a74b0d2 | 19 | # Source0-md5: 62fec129694e83d0de481667e3c785d8 |
30b0d021 ER |
20 | Source1: %{name}-for-linux-gtk.desktop |
21 | Source2: %{name}-for-linux-qt.desktop | |
22 | Patch0: %{name}-for-linux-cmake.patch | |
23 | Patch1: %{name}-for-linux-link_with_qtnetwork.patch | |
24 | Patch2: %{name}-for-linux-js.patch | |
8d5ec522 | 25 | URL: http://code.google.com/p/google-gadgets-for-linux/ |
d090801b | 26 | BuildRequires: NetworkManager-devel >= 0.6.5 |
b5a0ce63 | 27 | %if %{with qt} |
726602f6 | 28 | BuildRequires: QtCore-devel >= 4.4.3 |
0e842ff8 | 29 | BuildRequires: QtNetwork-devel >= 4.4.3 |
726602f6 | 30 | BuildRequires: QtScript-devel >= 4.4.3 |
31 | BuildRequires: QtWebKit-devel >= 4.4.3 | |
b5a0ce63 | 32 | %endif |
6bbba973 | 33 | BuildRequires: autoconf |
34 | BuildRequires: automake | |
30b0d021 ER |
35 | %if %{with gtk} |
36 | BuildRequires: cairo-devel >= 1.2.0 | |
37 | BuildRequires: gtk+2-devel >= 2:2.10.0 | |
38 | BuildRequires: startup-notification-devel | |
39 | %endif | |
05d27992 | 40 | BuildRequires: curl-devel >= 7.18.2 |
8d5ec522 BZ |
41 | BuildRequires: dbus-devel >= 1.0.2 |
42 | BuildRequires: flex | |
43 | BuildRequires: gstreamer-plugins-base-devel >= 0.10.0 | |
44 | BuildRequires: libltdl-devel | |
726602f6 | 45 | BuildRequires: librsvg-devel |
30b0d021 ER |
46 | BuildRequires: libtool >= 2:1.5.22 |
47 | BuildRequires: libxml2-devel >= 1:2.4.0 | |
901c0ec6 | 48 | BuildRequires: pkgconfig |
d090801b | 49 | BuildRequires: qt4-build |
8d5ec522 | 50 | BuildRequires: xulrunner-devel >= 1.8 |
7dd0f9b1 | 51 | BuildRequires: zip |
30b0d021 ER |
52 | BuildRequires: zlib-devel >= 1.2.0 |
53 | Requires: libggadget = %{version}-%{release} | |
54 | Provides: google-gadgets-for-linux-gadgets = %{version} | |
55 | Obsoletes: google-gadgets-for-linux-gadgets | |
8d5ec522 BZ |
56 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
57 | ||
58 | %description | |
b5a0ce63 ER |
59 | Google Gadgets for Linux provides a platform for running desktop |
60 | gadgets under Linux, catering to the unique needs of Linux users. It's | |
61 | compatible with the gadgets written for Google Desktop for Windows as | |
62 | well as the Universal Gadgets on iGoogle. | |
8d5ec522 | 63 | |
30b0d021 ER |
64 | %package -n libggadget |
65 | Summary: Google Gadgets main libraries | |
66 | Group: Libraries | |
67 | Requires: dbus >= 1.0.21G | |
68 | Requires: libltdl | |
69 | Obsoletes: google-gadgets-for-linux | |
7dd0f9b1 | 70 | |
30b0d021 ER |
71 | %description -n libggadget |
72 | This package contains the main Google Gadgets libraries, it is | |
73 | required by both the GTK+ and QT versions of Google Gadgets. | |
7dd0f9b1 | 74 | |
30b0d021 ER |
75 | %package -n libggadget-devel |
76 | Summary: Google Gadgets main development files | |
129a13de | 77 | Group: Development/Libraries |
30b0d021 ER |
78 | Requires: dbus-devel >= 1.0.2 |
79 | Requires: libggadget = %{version}-%{release} | |
129a13de | 80 | |
30b0d021 | 81 | %description -n libggadget-devel |
b5a0ce63 ER |
82 | This package contains the development files assoicated with |
83 | libggadget, it is needed to write programs that utilise libggadget. | |
129a13de | 84 | |
30b0d021 | 85 | %description -n libggadget-devel -l pl.UTF-8 |
309460b7 | 86 | Pliki nagłówkowe biblioteki google-gadgets. |
129a13de | 87 | |
30b0d021 ER |
88 | %package -n libggadget-gtk |
89 | Summary: Google Gadgets GTK+ library | |
90 | Group: Libraries | |
91 | Requires: cairo >= 1.2.0 | |
92 | Requires: gtk+2 >= 2:2.10.0 | |
93 | Requires: libggadget = %{version}-%{release} | |
94 | Requires: librsvg >= 1:2.18.0 | |
b50eec67 | 95 | |
30b0d021 ER |
96 | %description -n libggadget-gtk |
97 | This package contains the GTK+ Google Gadgets library, it is required | |
98 | to run the GTK+ version of Google Gadgets. | |
99 | ||
100 | %package -n libggadget-gtk-devel | |
101 | Summary: Google Gadgets GTK+ development files | |
102 | Group: Development/Libraries | |
103 | Requires: cairo-devel >= 1.2.0 | |
104 | Requires: gtk+2-devel >= 2:2.10.0 | |
105 | Requires: libggadget-devel = %{version}-%{release} | |
106 | Requires: libggadget-gtk = %{version}-%{release} | |
107 | Requires: librsvg-devel >= 1:2.18.0 | |
108 | ||
109 | %description -n libggadget-gtk-devel | |
110 | This package contains the development files assoicated with | |
111 | libggadget-gtk, it is needed to write GTK+ programs that utilise | |
112 | libggadget. | |
113 | ||
114 | %package -n libggadget-qt | |
115 | Summary: Google Gadgets QT library | |
116 | Group: Libraries | |
117 | Requires: QtWebKit >= 4.4.0 | |
118 | Requires: libggadget = %{version}-%{release} | |
119 | ||
120 | %description -n libggadget-qt | |
b5a0ce63 ER |
121 | This package contains the QT Google Gadgets library, it is required to |
122 | run the QT version of Google Gadgets. | |
b50eec67 | 123 | |
30b0d021 ER |
124 | %package -n libggadget-qt-devel |
125 | Summary: Google Gadgets QT development files | |
126 | Group: Development/Libraries | |
127 | Requires: QtWebKit-devel >= 4.4.0 | |
128 | Requires: libggadget-devel = %{version}-%{release} | |
129 | Requires: libggadget-qt = %{version}-%{release} | |
130 | ||
131 | %description -n libggadget-qt-devel | |
132 | This package contains the development files assoicated with | |
133 | libggadget-qt, it is needed to write QT programs that utilise | |
134 | libggadget. | |
135 | ||
b50eec67 | 136 | %package gtk |
30b0d021 | 137 | Summary: GTK+ Version of Google Gadgets |
b50eec67 | 138 | Group: X11/Applications |
30b0d021 ER |
139 | Requires: google-gadgets = %{version}-%{release} |
140 | Requires: google-gadgets-gst = %{version}-%{release} | |
141 | Requires: google-gadgets-xul = %{version}-%{release} | |
142 | Requires: libggadget-gtk = %{version}-%{release} | |
143 | Obsoletes: google-gadgets-for-linux-gtk | |
b50eec67 | 144 | |
145 | %description gtk | |
30b0d021 ER |
146 | Google Gadgets for Linux provides a platform for running desktop |
147 | gadgets under Linux, catering to the unique needs of Linux users. It's | |
148 | compatible with the gadgets written for Google Desktop for Windows as | |
149 | well as the Universal Gadgets on iGoogle. | |
150 | ||
151 | This package includes the GTK+ version. | |
152 | ||
153 | %package qt | |
154 | Summary: QT Version of Google Gadgets | |
155 | Group: X11/Applications | |
156 | Requires: google-gadgets = %{version}-%{release} | |
157 | Requires: google-gadgets-gst = %{version} | |
158 | Requires: libggadget-qt = %{version}-%{release} | |
159 | Obsoletes: google-gadgets-for-linux-qt | |
160 | ||
161 | %description qt | |
162 | Google Gadgets for Linux provides a platform for running desktop | |
163 | gadgets under Linux, catering to the unique needs of Linux users. It's | |
164 | compatible with the gadgets written for Google Desktop for Windows as | |
165 | well as the Universal Gadgets on iGoogle. | |
166 | ||
167 | This package includes the QT version. | |
168 | ||
169 | %package gst | |
170 | Summary: GStreamer modules for Google Gadgets | |
171 | Group: X11/Applications | |
172 | Requires: gstreamer-plugins-base >= 0.10.6 | |
173 | Requires: libggadget = %{version}-%{release} | |
174 | ||
175 | %description gst | |
176 | Google Gadgets for Linux provides a platform for running desktop | |
177 | gadgets under Linux, catering to the unique needs of Linux users. It's | |
178 | compatible with the gadgets written for Google Desktop for Windows as | |
179 | well as the Universal Gadgets on iGoogle. | |
180 | ||
181 | This package includes the GStreamer modules. | |
182 | ||
183 | %package xul | |
184 | Summary: XULRunner modules for Google Gadgets | |
185 | Group: X11/Applications | |
186 | Requires: libggadget = %{version}-%{release} | |
187 | Requires: xulrunner | |
188 | ||
189 | %description xul | |
190 | Google Gadgets for Linux provides a platform for running desktop | |
191 | gadgets under Linux, catering to the unique needs of Linux users. It's | |
192 | compatible with the gadgets written for Google Desktop for Windows as | |
193 | well as the Universal Gadgets on iGoogle. | |
194 | ||
195 | This package includes the XULRunner modules. | |
b50eec67 | 196 | |
8d5ec522 | 197 | %prep |
09b4fe78 | 198 | %setup -q -n %{name}-for-linux-%{version} |
901c0ec6 | 199 | %patch0 -p1 |
0e842ff8 | 200 | %patch1 -p1 |
405be74d | 201 | %patch2 -p1 |
8d5ec522 BZ |
202 | |
203 | %build | |
6bbba973 | 204 | install -d libltdl |
205 | %{__libtoolize} | |
206 | %{__aclocal} -I autotools | |
207 | %{__autoconf} | |
208 | %{__autoheader} | |
209 | %{__automake} | |
210 | %configure \ | |
211 | --disable-ltdl-install \ | |
212 | --disable-static \ | |
213 | --disable-werror \ | |
214 | --with-oem-brand=pld-linux \ | |
215 | --with-browser-plugins-dir=%{_libdir}/browser-plugins | |
b50eec67 | 216 | |
726602f6 | 217 | %{__make} |
8d5ec522 BZ |
218 | |
219 | %install | |
220 | rm -rf $RPM_BUILD_ROOT | |
8d5ec522 BZ |
221 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
222 | ||
6bbba973 | 223 | %{__make} install \ |
8d5ec522 BZ |
224 | DESTDIR=$RPM_BUILD_ROOT |
225 | ||
405be74d ER |
226 | # desync with cmake/ac makefiles |
227 | mv $RPM_BUILD_ROOT%{_datadir}/mime/packages/{00-,}google-gadgets.xml | |
8d5ec522 BZ |
228 | # desktop files |
229 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/ggl-gtk.desktop | |
230 | install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/ggl-qt.desktop | |
231 | ||
17e54e62 | 232 | rm -f $RPM_BUILD_ROOT%{_libdir}/google-gadgets/modules/*.la |
405be74d | 233 | |
8d5ec522 BZ |
234 | %clean |
235 | rm -rf $RPM_BUILD_ROOT | |
236 | ||
30b0d021 ER |
237 | %post -n libggadget -p /sbin/ldconfig |
238 | %postun -n libggadget -p /sbin/ldconfig | |
239 | ||
240 | %post -n libggadget-gtk -p /sbin/ldconfig | |
241 | %postun -n libggadget-gtk -p /sbin/ldconfig | |
242 | ||
243 | %post -n libggadget-qt -p /sbin/ldconfig | |
244 | %postun -n libggadget-qt -p /sbin/ldconfig | |
8d5ec522 BZ |
245 | |
246 | %files | |
247 | %defattr(644,root,root,755) | |
30b0d021 ER |
248 | %doc AUTHORS README NEWS |
249 | %dir %{_libdir}/google-gadgets | |
250 | %dir %{_libdir}/google-gadgets/modules | |
251 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/analytics-usage-collector.so | |
252 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/curl-xml-http-request.so | |
253 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/dbus-script-class.so | |
254 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/default-framework.so | |
255 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/default-options.so | |
256 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/google-gadget-manager.so | |
257 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/libxml2-xml-parser.so | |
258 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/linux-system-framework.so | |
7a74b0d2 | 259 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/html-flash-element.so |
30b0d021 ER |
260 | %dir %{_datadir}/google-gadgets |
261 | %{_datadir}/google-gadgets/*.gg | |
262 | %{_datadir}/mime/packages/google-gadgets.xml | |
30b0d021 ER |
263 | %{_iconsdir}/*/*/*/*.png |
264 | %{_pixmapsdir}/google-gadgets.png | |
265 | ||
266 | %files -n libggadget | |
267 | %defattr(644,root,root,755) | |
b5a0ce63 ER |
268 | %attr(755,root,root) %ghost %{_libdir}/libggadget-1.0.so.0 |
269 | %attr(755,root,root) %{_libdir}/libggadget-1.0.so.*.*.* | |
270 | %attr(755,root,root) %ghost %{_libdir}/libggadget-dbus-1.0.so.0 | |
271 | %attr(755,root,root) %{_libdir}/libggadget-dbus-1.0.so.*.*.* | |
272 | %attr(755,root,root) %ghost %{_libdir}/libggadget-js-1.0.so.0 | |
273 | %attr(755,root,root) %{_libdir}/libggadget-js-1.0.so.*.*.* | |
274 | %attr(755,root,root) %ghost %{_libdir}/libggadget-npapi-1.0.so.0 | |
275 | %attr(755,root,root) %{_libdir}/libggadget-npapi-1.0.so.*.*.* | |
276 | %attr(755,root,root) %ghost %{_libdir}/libggadget-xdg-1.0.so.0 | |
277 | %attr(755,root,root) %{_libdir}/libggadget-xdg-1.0.so.*.*.* | |
7dd0f9b1 | 278 | |
30b0d021 | 279 | %files -n libggadget-devel |
b50eec67 | 280 | %defattr(644,root,root,755) |
30b0d021 ER |
281 | %dir %{_includedir}/google-gadgets |
282 | %dir %{_includedir}/google-gadgets/ggadget | |
283 | %dir %{_includedir}/google-gadgets/ggadget/dbus | |
284 | %dir %{_includedir}/google-gadgets/ggadget/js | |
285 | %dir %{_includedir}/google-gadgets/ggadget/xdg | |
286 | %dir %{_includedir}/google-gadgets/ggadget/npapi | |
287 | %{_includedir}/google-gadgets/ggadget/*.h | |
288 | %{_includedir}/google-gadgets/ggadget/dbus/*.h | |
289 | %{_includedir}/google-gadgets/ggadget/js/*.h | |
290 | %{_includedir}/google-gadgets/ggadget/xdg/*.h | |
291 | %{_includedir}/google-gadgets/ggadget/npapi/*.h | |
292 | %dir %{_libdir}/google-gadgets/include | |
293 | %dir %{_libdir}/google-gadgets/include/ggadget | |
294 | %{_libdir}/google-gadgets/include/ggadget/sysdeps.h | |
295 | %{_libdir}/libggadget-1.0*.so | |
296 | %{_libdir}/libggadget-dbus-1.0*.so | |
297 | %{_libdir}/libggadget-js-1.0*.so | |
298 | %{_libdir}/libggadget-xdg-1.0*.so | |
299 | %{_libdir}/libggadget-npapi-1.0*.so | |
300 | %if 0 | |
301 | %{_libdir}/libggadget-1.0*.la | |
302 | %{_libdir}/libggadget-dbus-1.0*.la | |
303 | %{_libdir}/libggadget-js-1.0*.la | |
304 | %{_libdir}/libggadget-xdg-1.0*.la | |
305 | %{_libdir}/libggadget-npapi-1.0*.la | |
306 | %endif | |
307 | %{_pkgconfigdir}/libggadget-1.0.pc | |
308 | %{_pkgconfigdir}/libggadget-dbus-1.0.pc | |
309 | %{_pkgconfigdir}/libggadget-js-1.0.pc | |
310 | %{_pkgconfigdir}/libggadget-xdg-1.0.pc | |
311 | %{_pkgconfigdir}/libggadget-npapi-1.0.pc | |
b50eec67 | 312 | |
30b0d021 | 313 | %files -n libggadget-gtk |
b50eec67 | 314 | %defattr(644,root,root,755) |
b5a0ce63 ER |
315 | %attr(755,root,root) %ghost %{_libdir}/libggadget-gtk-1.0.so.0 |
316 | %attr(755,root,root) %{_libdir}/libggadget-gtk-1.0.so.*.*.* | |
b50eec67 | 317 | |
30b0d021 | 318 | %files -n libggadget-gtk-devel |
05d27992 | 319 | %defattr(644,root,root,755) |
b5a0ce63 ER |
320 | %dir %{_includedir}/google-gadgets/ggadget/gtk |
321 | %{_includedir}/google-gadgets/ggadget/gtk/*.h | |
30b0d021 ER |
322 | %{_libdir}/libggadget-gtk-1.0*.so |
323 | #%{_libdir}/libggadget-gtk-1.0*.la | |
324 | %{_pkgconfigdir}/libggadget-gtk-1.0.pc | |
325 | ||
326 | %files -n libggadget-qt | |
327 | %defattr(644,root,root,755) | |
328 | %attr(755,root,root) %ghost %{_libdir}/libggadget-qt-1.0.so.0 | |
329 | %attr(755,root,root) %{_libdir}/libggadget-qt-1.0.so.*.*.* | |
330 | ||
331 | %files -n libggadget-qt-devel | |
332 | %defattr(644,root,root,755) | |
b5a0ce63 ER |
333 | %dir %{_includedir}/google-gadgets/ggadget/qt |
334 | %{_includedir}/google-gadgets/ggadget/qt/*.h | |
30b0d021 ER |
335 | %{_libdir}/libggadget-qt-1.0*.so |
336 | #%{_libdir}/libggadget-qt-1.0*.la | |
337 | %{_pkgconfigdir}/libggadget-qt-1.0.pc | |
338 | ||
339 | %files gtk | |
340 | %defattr(644,root,root,755) | |
341 | %attr(755,root,root) %{_bindir}/ggl-gtk | |
342 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/gtk-edit-element.so | |
343 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/gtk-flash-element.so | |
344 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/gtk-system-framework.so | |
345 | %{_desktopdir}/ggl-gtk.desktop | |
e123ee93 | 346 | %{_desktopdir}/ggl-designer.desktop |
30b0d021 ER |
347 | |
348 | %files qt | |
349 | %defattr(644,root,root,755) | |
350 | %attr(755,root,root) %{_bindir}/ggl-qt | |
351 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/qt-edit-element.so | |
352 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/qt-script-runtime.so | |
353 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/qt-system-framework.so | |
354 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/qt-xml-http-request.so | |
355 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/qtwebkit-browser-element.so | |
356 | %{_desktopdir}/ggl-qt.desktop | |
357 | ||
358 | %files gst | |
359 | %defattr(644,root,root,755) | |
360 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/gst-audio-framework.so | |
361 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/gst-video-element.so | |
362 | ||
363 | %files xul | |
364 | %defattr(644,root,root,755) | |
365 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/smjs-script-runtime.so | |
366 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/gtkmoz-browser-element.so | |
367 | %attr(755,root,root) %{_libdir}/google-gadgets/gtkmoz-browser-child |