]>
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 | ||
05d27992 | 7 | # use this to get latest rev: |
405be74d | 8 | # svn export http://google-gadgets-for-linux.googlecode.com/svn/trunk/ google-gadgets-for-linux |
8d5ec522 | 9 | # TODO: |
b5a0ce63 ER |
10 | # - smjs - spidermonkey js runtime (default) is broken with cmake build. revert or fix cmake build! |
11 | # besides, qtjs seems not broken, at least for google calendar widget | |
30b0d021 | 12 | # - cmake build doesn't install *.la to %{_libdir} |
8d5ec522 | 13 | # - add gtk BRs |
30b0d021 ER |
14 | Summary: Google Gadgets for Linux |
15 | Name: google-gadgets | |
45e89a01 | 16 | Version: 0.10.4 |
429775eb | 17 | Release: 2 |
8d5ec522 BZ |
18 | License: Apache License v2.0 |
19 | Group: X11/Applications | |
30b0d021 | 20 | Source0: http://google-gadgets-for-linux.googlecode.com/files/%{name}-for-linux-%{version}.tar.bz2 |
66822cec | 21 | # Source0-md5: 0ef0a62e0a575388084a77759b646718 |
30b0d021 ER |
22 | Source1: %{name}-for-linux-gtk.desktop |
23 | Source2: %{name}-for-linux-qt.desktop | |
24 | Patch0: %{name}-for-linux-cmake.patch | |
25 | Patch1: %{name}-for-linux-link_with_qtnetwork.patch | |
26 | Patch2: %{name}-for-linux-js.patch | |
8d5ec522 | 27 | URL: http://code.google.com/p/google-gadgets-for-linux/ |
b5a0ce63 | 28 | %if %{with qt} |
726602f6 | 29 | BuildRequires: QtCore-devel >= 4.4.3 |
0e842ff8 | 30 | BuildRequires: QtNetwork-devel >= 4.4.3 |
726602f6 | 31 | BuildRequires: QtScript-devel >= 4.4.3 |
32 | BuildRequires: QtWebKit-devel >= 4.4.3 | |
b5a0ce63 | 33 | %endif |
30b0d021 ER |
34 | %if %{with gtk} |
35 | BuildRequires: cairo-devel >= 1.2.0 | |
36 | BuildRequires: gtk+2-devel >= 2:2.10.0 | |
37 | BuildRequires: startup-notification-devel | |
38 | %endif | |
39 | BuildRequires: NetworkManager-devel >= 0.6.5 | |
726602f6 | 40 | BuildRequires: cmake >= 2.6.1-2 |
05d27992 | 41 | BuildRequires: curl-devel >= 7.18.2 |
8d5ec522 BZ |
42 | BuildRequires: dbus-devel >= 1.0.2 |
43 | BuildRequires: flex | |
44 | BuildRequires: gstreamer-plugins-base-devel >= 0.10.0 | |
45 | BuildRequires: libltdl-devel | |
726602f6 | 46 | BuildRequires: librsvg-devel |
30b0d021 ER |
47 | BuildRequires: libtool >= 2:1.5.22 |
48 | BuildRequires: libxml2-devel >= 1:2.4.0 | |
901c0ec6 | 49 | BuildRequires: pkgconfig |
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 |
30b0d021 | 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 | |
b50eec67 | 204 | install -d build |
205 | cd build | |
206 | %cmake \ | |
207 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
208 | -DSYSCONF_INSTALL_DIR=%{_sysconfdir} \ | |
30b0d021 | 209 | -DGTKMOZEMBED_CFLAGS='-I$EMBED_INCDIR/js -I$EMBED_INCDIR/string' \ |
b50eec67 | 210 | %if "%{_lib}" == "lib64" |
211 | -DLIB_SUFFIX=64 \ | |
212 | %endif | |
213 | ../ | |
214 | ||
726602f6 | 215 | %{__make} |
8d5ec522 BZ |
216 | |
217 | %install | |
218 | rm -rf $RPM_BUILD_ROOT | |
8d5ec522 BZ |
219 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
220 | ||
b50eec67 | 221 | %{__make} -C build install \ |
8d5ec522 BZ |
222 | DESTDIR=$RPM_BUILD_ROOT |
223 | ||
405be74d ER |
224 | # desync with cmake/ac makefiles |
225 | mv $RPM_BUILD_ROOT%{_datadir}/mime/packages/{00-,}google-gadgets.xml | |
8d5ec522 BZ |
226 | # desktop files |
227 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/ggl-gtk.desktop | |
228 | install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/ggl-qt.desktop | |
229 | ||
17e54e62 | 230 | rm -f $RPM_BUILD_ROOT%{_libdir}/google-gadgets/modules/*.la |
405be74d | 231 | |
8d5ec522 BZ |
232 | %clean |
233 | rm -rf $RPM_BUILD_ROOT | |
234 | ||
30b0d021 ER |
235 | %post -n libggadget -p /sbin/ldconfig |
236 | %postun -n libggadget -p /sbin/ldconfig | |
237 | ||
238 | %post -n libggadget-gtk -p /sbin/ldconfig | |
239 | %postun -n libggadget-gtk -p /sbin/ldconfig | |
240 | ||
241 | %post -n libggadget-qt -p /sbin/ldconfig | |
242 | %postun -n libggadget-qt -p /sbin/ldconfig | |
8d5ec522 BZ |
243 | |
244 | %files | |
245 | %defattr(644,root,root,755) | |
30b0d021 ER |
246 | %doc AUTHORS README NEWS |
247 | %dir %{_libdir}/google-gadgets | |
248 | %dir %{_libdir}/google-gadgets/modules | |
249 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/analytics-usage-collector.so | |
250 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/curl-xml-http-request.so | |
251 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/dbus-script-class.so | |
252 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/default-framework.so | |
253 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/default-options.so | |
254 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/google-gadget-manager.so | |
255 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/libxml2-xml-parser.so | |
256 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/linux-system-framework.so | |
257 | %dir %{_datadir}/google-gadgets | |
258 | %{_datadir}/google-gadgets/*.gg | |
259 | %{_datadir}/mime/packages/google-gadgets.xml | |
30b0d021 ER |
260 | %{_iconsdir}/*/*/*/*.png |
261 | %{_pixmapsdir}/google-gadgets.png | |
262 | ||
263 | %files -n libggadget | |
264 | %defattr(644,root,root,755) | |
b5a0ce63 ER |
265 | %attr(755,root,root) %ghost %{_libdir}/libggadget-1.0.so.0 |
266 | %attr(755,root,root) %{_libdir}/libggadget-1.0.so.*.*.* | |
267 | %attr(755,root,root) %ghost %{_libdir}/libggadget-dbus-1.0.so.0 | |
268 | %attr(755,root,root) %{_libdir}/libggadget-dbus-1.0.so.*.*.* | |
269 | %attr(755,root,root) %ghost %{_libdir}/libggadget-js-1.0.so.0 | |
270 | %attr(755,root,root) %{_libdir}/libggadget-js-1.0.so.*.*.* | |
271 | %attr(755,root,root) %ghost %{_libdir}/libggadget-npapi-1.0.so.0 | |
272 | %attr(755,root,root) %{_libdir}/libggadget-npapi-1.0.so.*.*.* | |
273 | %attr(755,root,root) %ghost %{_libdir}/libggadget-xdg-1.0.so.0 | |
274 | %attr(755,root,root) %{_libdir}/libggadget-xdg-1.0.so.*.*.* | |
7dd0f9b1 | 275 | |
30b0d021 | 276 | %files -n libggadget-devel |
b50eec67 | 277 | %defattr(644,root,root,755) |
30b0d021 ER |
278 | %dir %{_includedir}/google-gadgets |
279 | %dir %{_includedir}/google-gadgets/ggadget | |
280 | %dir %{_includedir}/google-gadgets/ggadget/dbus | |
281 | %dir %{_includedir}/google-gadgets/ggadget/js | |
282 | %dir %{_includedir}/google-gadgets/ggadget/xdg | |
283 | %dir %{_includedir}/google-gadgets/ggadget/npapi | |
284 | %{_includedir}/google-gadgets/ggadget/*.h | |
285 | %{_includedir}/google-gadgets/ggadget/dbus/*.h | |
286 | %{_includedir}/google-gadgets/ggadget/js/*.h | |
287 | %{_includedir}/google-gadgets/ggadget/xdg/*.h | |
288 | %{_includedir}/google-gadgets/ggadget/npapi/*.h | |
289 | %dir %{_libdir}/google-gadgets/include | |
290 | %dir %{_libdir}/google-gadgets/include/ggadget | |
291 | %{_libdir}/google-gadgets/include/ggadget/sysdeps.h | |
292 | %{_libdir}/libggadget-1.0*.so | |
293 | %{_libdir}/libggadget-dbus-1.0*.so | |
294 | %{_libdir}/libggadget-js-1.0*.so | |
295 | %{_libdir}/libggadget-xdg-1.0*.so | |
296 | %{_libdir}/libggadget-npapi-1.0*.so | |
297 | %if 0 | |
298 | %{_libdir}/libggadget-1.0*.la | |
299 | %{_libdir}/libggadget-dbus-1.0*.la | |
300 | %{_libdir}/libggadget-js-1.0*.la | |
301 | %{_libdir}/libggadget-xdg-1.0*.la | |
302 | %{_libdir}/libggadget-npapi-1.0*.la | |
303 | %endif | |
304 | %{_pkgconfigdir}/libggadget-1.0.pc | |
305 | %{_pkgconfigdir}/libggadget-dbus-1.0.pc | |
306 | %{_pkgconfigdir}/libggadget-js-1.0.pc | |
307 | %{_pkgconfigdir}/libggadget-xdg-1.0.pc | |
308 | %{_pkgconfigdir}/libggadget-npapi-1.0.pc | |
b50eec67 | 309 | |
30b0d021 | 310 | %files -n libggadget-gtk |
b50eec67 | 311 | %defattr(644,root,root,755) |
b5a0ce63 ER |
312 | %attr(755,root,root) %ghost %{_libdir}/libggadget-gtk-1.0.so.0 |
313 | %attr(755,root,root) %{_libdir}/libggadget-gtk-1.0.so.*.*.* | |
b50eec67 | 314 | |
30b0d021 | 315 | %files -n libggadget-gtk-devel |
05d27992 | 316 | %defattr(644,root,root,755) |
b5a0ce63 ER |
317 | %dir %{_includedir}/google-gadgets/ggadget/gtk |
318 | %{_includedir}/google-gadgets/ggadget/gtk/*.h | |
30b0d021 ER |
319 | %{_libdir}/libggadget-gtk-1.0*.so |
320 | #%{_libdir}/libggadget-gtk-1.0*.la | |
321 | %{_pkgconfigdir}/libggadget-gtk-1.0.pc | |
322 | ||
323 | %files -n libggadget-qt | |
324 | %defattr(644,root,root,755) | |
325 | %attr(755,root,root) %ghost %{_libdir}/libggadget-qt-1.0.so.0 | |
326 | %attr(755,root,root) %{_libdir}/libggadget-qt-1.0.so.*.*.* | |
327 | ||
328 | %files -n libggadget-qt-devel | |
329 | %defattr(644,root,root,755) | |
b5a0ce63 ER |
330 | %dir %{_includedir}/google-gadgets/ggadget/qt |
331 | %{_includedir}/google-gadgets/ggadget/qt/*.h | |
30b0d021 ER |
332 | %{_libdir}/libggadget-qt-1.0*.so |
333 | #%{_libdir}/libggadget-qt-1.0*.la | |
334 | %{_pkgconfigdir}/libggadget-qt-1.0.pc | |
335 | ||
336 | %files gtk | |
337 | %defattr(644,root,root,755) | |
338 | %attr(755,root,root) %{_bindir}/ggl-gtk | |
339 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/gtk-edit-element.so | |
340 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/gtk-flash-element.so | |
341 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/gtk-system-framework.so | |
342 | %{_desktopdir}/ggl-gtk.desktop | |
e123ee93 | 343 | %{_desktopdir}/ggl-designer.desktop |
30b0d021 ER |
344 | |
345 | %files qt | |
346 | %defattr(644,root,root,755) | |
347 | %attr(755,root,root) %{_bindir}/ggl-qt | |
348 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/qt-edit-element.so | |
349 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/qt-script-runtime.so | |
350 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/qt-system-framework.so | |
351 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/qt-xml-http-request.so | |
352 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/qtwebkit-browser-element.so | |
353 | %{_desktopdir}/ggl-qt.desktop | |
354 | ||
355 | %files gst | |
356 | %defattr(644,root,root,755) | |
357 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/gst-audio-framework.so | |
358 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/gst-video-element.so | |
359 | ||
360 | %files xul | |
361 | %defattr(644,root,root,755) | |
362 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/smjs-script-runtime.so | |
363 | %attr(755,root,root) %{_libdir}/google-gadgets/modules/gtkmoz-browser-element.so | |
364 | %attr(755,root,root) %{_libdir}/google-gadgets/gtkmoz-browser-child |