]> git.pld-linux.org Git - packages/google-gadgets.git/blame - google-gadgets.spec
- up to 0.11.1
[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
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
11Summary: Google Gadgets for Linux
12Name: google-gadgets
7a74b0d2 13Version: 0.11.1
f7cb86cf 14Release: 1
8d5ec522
BZ
15License: Apache License v2.0
16Group: X11/Applications
09b4fe78 17#Source0: %{name}-for-linux-%{version}-%{rev}.tar.bz2
18Source0: http://google-gadgets-for-linux.googlecode.com/files/%{name}-for-linux-%{version}.tar.bz2
7a74b0d2 19# Source0-md5: 62fec129694e83d0de481667e3c785d8
30b0d021
ER
20Source1: %{name}-for-linux-gtk.desktop
21Source2: %{name}-for-linux-qt.desktop
22Patch0: %{name}-for-linux-cmake.patch
23Patch1: %{name}-for-linux-link_with_qtnetwork.patch
24Patch2: %{name}-for-linux-js.patch
8d5ec522 25URL: http://code.google.com/p/google-gadgets-for-linux/
d090801b 26BuildRequires: NetworkManager-devel >= 0.6.5
b5a0ce63 27%if %{with qt}
726602f6 28BuildRequires: QtCore-devel >= 4.4.3
0e842ff8 29BuildRequires: QtNetwork-devel >= 4.4.3
726602f6 30BuildRequires: QtScript-devel >= 4.4.3
31BuildRequires: QtWebKit-devel >= 4.4.3
b5a0ce63 32%endif
6bbba973 33BuildRequires: autoconf
34BuildRequires: automake
30b0d021
ER
35%if %{with gtk}
36BuildRequires: cairo-devel >= 1.2.0
37BuildRequires: gtk+2-devel >= 2:2.10.0
38BuildRequires: startup-notification-devel
39%endif
05d27992 40BuildRequires: curl-devel >= 7.18.2
8d5ec522
BZ
41BuildRequires: dbus-devel >= 1.0.2
42BuildRequires: flex
43BuildRequires: gstreamer-plugins-base-devel >= 0.10.0
44BuildRequires: libltdl-devel
726602f6 45BuildRequires: librsvg-devel
30b0d021
ER
46BuildRequires: libtool >= 2:1.5.22
47BuildRequires: libxml2-devel >= 1:2.4.0
901c0ec6 48BuildRequires: pkgconfig
d090801b 49BuildRequires: qt4-build
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
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 204install -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
220rm -rf $RPM_BUILD_ROOT
8d5ec522
BZ
221install -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
227mv $RPM_BUILD_ROOT%{_datadir}/mime/packages/{00-,}google-gadgets.xml
8d5ec522
BZ
228# desktop files
229install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/ggl-gtk.desktop
230install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/ggl-qt.desktop
231
17e54e62 232rm -f $RPM_BUILD_ROOT%{_libdir}/google-gadgets/modules/*.la
405be74d 233
8d5ec522
BZ
234%clean
235rm -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
This page took 0.551054 seconds and 4 git commands to generate.