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