]> git.pld-linux.org Git - packages/google-gadgets.git/blame - google-gadgets.spec
- ggl-designer invokes ggl-gtk
[packages/google-gadgets.git] / google-gadgets.spec
CommitLineData
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
14Summary: Google Gadgets for Linux
15Name: google-gadgets
45e89a01 16Version: 0.10.4
429775eb 17Release: 2
8d5ec522
BZ
18License: Apache License v2.0
19Group: X11/Applications
30b0d021 20Source0: http://google-gadgets-for-linux.googlecode.com/files/%{name}-for-linux-%{version}.tar.bz2
66822cec 21# Source0-md5: 0ef0a62e0a575388084a77759b646718
30b0d021
ER
22Source1: %{name}-for-linux-gtk.desktop
23Source2: %{name}-for-linux-qt.desktop
24Patch0: %{name}-for-linux-cmake.patch
25Patch1: %{name}-for-linux-link_with_qtnetwork.patch
26Patch2: %{name}-for-linux-js.patch
8d5ec522 27URL: http://code.google.com/p/google-gadgets-for-linux/
b5a0ce63 28%if %{with qt}
726602f6 29BuildRequires: QtCore-devel >= 4.4.3
0e842ff8 30BuildRequires: QtNetwork-devel >= 4.4.3
726602f6 31BuildRequires: QtScript-devel >= 4.4.3
32BuildRequires: QtWebKit-devel >= 4.4.3
b5a0ce63 33%endif
30b0d021
ER
34%if %{with gtk}
35BuildRequires: cairo-devel >= 1.2.0
36BuildRequires: gtk+2-devel >= 2:2.10.0
37BuildRequires: startup-notification-devel
38%endif
39BuildRequires: NetworkManager-devel >= 0.6.5
726602f6 40BuildRequires: cmake >= 2.6.1-2
05d27992 41BuildRequires: curl-devel >= 7.18.2
8d5ec522
BZ
42BuildRequires: dbus-devel >= 1.0.2
43BuildRequires: flex
44BuildRequires: gstreamer-plugins-base-devel >= 0.10.0
45BuildRequires: libltdl-devel
726602f6 46BuildRequires: librsvg-devel
30b0d021
ER
47BuildRequires: libtool >= 2:1.5.22
48BuildRequires: libxml2-devel >= 1:2.4.0
901c0ec6 49BuildRequires: pkgconfig
8d5ec522 50BuildRequires: xulrunner-devel >= 1.8
7dd0f9b1 51BuildRequires: zip
30b0d021
ER
52BuildRequires: zlib-devel >= 1.2.0
53Requires: libggadget = %{version}-%{release}
54Provides: google-gadgets-for-linux-gadgets = %{version}
55Obsoletes: google-gadgets-for-linux-gadgets
8d5ec522
BZ
56BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57
58%description
b5a0ce63
ER
59Google Gadgets for Linux provides a platform for running desktop
60gadgets under Linux, catering to the unique needs of Linux users. It's
61compatible with the gadgets written for Google Desktop for Windows as
62well as the Universal Gadgets on iGoogle.
8d5ec522 63
30b0d021
ER
64%package -n libggadget
65Summary: Google Gadgets main libraries
66Group: Libraries
67Requires: dbus >= 1.0.21G
68Requires: libltdl
69Obsoletes: google-gadgets-for-linux
7dd0f9b1 70
30b0d021
ER
71%description -n libggadget
72This package contains the main Google Gadgets libraries, it is
73required by both the GTK+ and QT versions of Google Gadgets.
7dd0f9b1 74
30b0d021
ER
75%package -n libggadget-devel
76Summary: Google Gadgets main development files
129a13de 77Group: Development/Libraries
30b0d021
ER
78Requires: dbus-devel >= 1.0.2
79Requires: libggadget = %{version}-%{release}
129a13de 80
30b0d021 81%description -n libggadget-devel
b5a0ce63
ER
82This package contains the development files assoicated with
83libggadget, it is needed to write programs that utilise libggadget.
129a13de 84
30b0d021 85%description -n libggadget-devel -l pl.UTF-8
309460b7 86Pliki nagłówkowe biblioteki google-gadgets.
129a13de 87
30b0d021
ER
88%package -n libggadget-gtk
89Summary: Google Gadgets GTK+ library
90Group: Libraries
91Requires: cairo >= 1.2.0
92Requires: gtk+2 >= 2:2.10.0
93Requires: libggadget = %{version}-%{release}
94Requires: librsvg >= 1:2.18.0
b50eec67 95
30b0d021
ER
96%description -n libggadget-gtk
97This package contains the GTK+ Google Gadgets library, it is required
98to run the GTK+ version of Google Gadgets.
99
100%package -n libggadget-gtk-devel
101Summary: Google Gadgets GTK+ development files
102Group: Development/Libraries
103Requires: cairo-devel >= 1.2.0
104Requires: gtk+2-devel >= 2:2.10.0
105Requires: libggadget-devel = %{version}-%{release}
106Requires: libggadget-gtk = %{version}-%{release}
107Requires: librsvg-devel >= 1:2.18.0
108
109%description -n libggadget-gtk-devel
110This package contains the development files assoicated with
111libggadget-gtk, it is needed to write GTK+ programs that utilise
112libggadget.
113
114%package -n libggadget-qt
115Summary: Google Gadgets QT library
116Group: Libraries
117Requires: QtWebKit >= 4.4.0
118Requires: libggadget = %{version}-%{release}
119
120%description -n libggadget-qt
b5a0ce63
ER
121This package contains the QT Google Gadgets library, it is required to
122run the QT version of Google Gadgets.
b50eec67 123
30b0d021
ER
124%package -n libggadget-qt-devel
125Summary: Google Gadgets QT development files
126Group: Development/Libraries
127Requires: QtWebKit-devel >= 4.4.0
128Requires: libggadget-devel = %{version}-%{release}
129Requires: libggadget-qt = %{version}-%{release}
130
131%description -n libggadget-qt-devel
132This package contains the development files assoicated with
133libggadget-qt, it is needed to write QT programs that utilise
134libggadget.
135
b50eec67 136%package gtk
30b0d021 137Summary: GTK+ Version of Google Gadgets
b50eec67 138Group: X11/Applications
30b0d021
ER
139Requires: google-gadgets = %{version}-%{release}
140Requires: google-gadgets-gst = %{version}-%{release}
141Requires: google-gadgets-xul = %{version}-%{release}
142Requires: libggadget-gtk = %{version}-%{release}
143Obsoletes: google-gadgets-for-linux-gtk
b50eec67 144
145%description gtk
30b0d021
ER
146Google Gadgets for Linux provides a platform for running desktop
147gadgets under Linux, catering to the unique needs of Linux users. It's
148compatible with the gadgets written for Google Desktop for Windows as
149well as the Universal Gadgets on iGoogle.
150
151This package includes the GTK+ version.
152
153%package qt
154Summary: QT Version of Google Gadgets
155Group: X11/Applications
156Requires: google-gadgets = %{version}-%{release}
157Requires: google-gadgets-gst = %{version}
158Requires: libggadget-qt = %{version}-%{release}
159Obsoletes: google-gadgets-for-linux-qt
160
161%description qt
162Google Gadgets for Linux provides a platform for running desktop
163gadgets under Linux, catering to the unique needs of Linux users. It's
164compatible with the gadgets written for Google Desktop for Windows as
165well as the Universal Gadgets on iGoogle.
166
167This package includes the QT version.
168
169%package gst
170Summary: GStreamer modules for Google Gadgets
171Group: X11/Applications
172Requires: gstreamer-plugins-base >= 0.10.6
173Requires: libggadget = %{version}-%{release}
174
175%description gst
176Google Gadgets for Linux provides a platform for running desktop
177gadgets under Linux, catering to the unique needs of Linux users. It's
178compatible with the gadgets written for Google Desktop for Windows as
179well as the Universal Gadgets on iGoogle.
180
181This package includes the GStreamer modules.
182
183%package xul
184Summary: XULRunner modules for Google Gadgets
185Group: X11/Applications
186Requires: libggadget = %{version}-%{release}
187Requires: xulrunner
188
189%description xul
190Google Gadgets for Linux provides a platform for running desktop
191gadgets under Linux, catering to the unique needs of Linux users. It's
192compatible with the gadgets written for Google Desktop for Windows as
193well as the Universal Gadgets on iGoogle.
194
195This 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 204install -d build
205cd 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
218rm -rf $RPM_BUILD_ROOT
8d5ec522
BZ
219install -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
225mv $RPM_BUILD_ROOT%{_datadir}/mime/packages/{00-,}google-gadgets.xml
8d5ec522
BZ
226# desktop files
227install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/ggl-gtk.desktop
228install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/ggl-qt.desktop
229
17e54e62 230rm -f $RPM_BUILD_ROOT%{_libdir}/google-gadgets/modules/*.la
405be74d 231
8d5ec522
BZ
232%clean
233rm -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
This page took 0.144275 seconds and 4 git commands to generate.