]> git.pld-linux.org Git - packages/google-gadgets.git/blame - google-gadgets.spec
- up to 0.10.5 r1074
[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
fd039f29
RT
7%define rev r1074
8%define rel 1
9
05d27992 10# use this to get latest rev:
405be74d 11# svn export http://google-gadgets-for-linux.googlecode.com/svn/trunk/ google-gadgets-for-linux
30b0d021
ER
12Summary: Google Gadgets for Linux
13Name: google-gadgets
fd039f29
RT
14Version: 0.10.5
15Release: 0.%{rev}.%{rel}
8d5ec522
BZ
16License: Apache License v2.0
17Group: X11/Applications
fd039f29
RT
18Source0: %{name}-for-linux-%{version}-%{rev}.tar.bz2
19# Source0-md5: 8f8fd6f7173fd26bf29fffafab9b0121
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/
b5a0ce63 26%if %{with qt}
726602f6 27BuildRequires: QtCore-devel >= 4.4.3
0e842ff8 28BuildRequires: QtNetwork-devel >= 4.4.3
726602f6 29BuildRequires: QtScript-devel >= 4.4.3
30BuildRequires: QtWebKit-devel >= 4.4.3
b5a0ce63 31%endif
6bbba973 32BuildRequires: autoconf
33BuildRequires: automake
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
6bbba973 40#BuildRequires: 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
fd039f29 198%setup -q -n %{name}-for-linux
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
259%dir %{_datadir}/google-gadgets
260%{_datadir}/google-gadgets/*.gg
261%{_datadir}/mime/packages/google-gadgets.xml
30b0d021
ER
262%{_iconsdir}/*/*/*/*.png
263%{_pixmapsdir}/google-gadgets.png
264
265%files -n libggadget
266%defattr(644,root,root,755)
b5a0ce63
ER
267%attr(755,root,root) %ghost %{_libdir}/libggadget-1.0.so.0
268%attr(755,root,root) %{_libdir}/libggadget-1.0.so.*.*.*
269%attr(755,root,root) %ghost %{_libdir}/libggadget-dbus-1.0.so.0
270%attr(755,root,root) %{_libdir}/libggadget-dbus-1.0.so.*.*.*
271%attr(755,root,root) %ghost %{_libdir}/libggadget-js-1.0.so.0
272%attr(755,root,root) %{_libdir}/libggadget-js-1.0.so.*.*.*
273%attr(755,root,root) %ghost %{_libdir}/libggadget-npapi-1.0.so.0
274%attr(755,root,root) %{_libdir}/libggadget-npapi-1.0.so.*.*.*
275%attr(755,root,root) %ghost %{_libdir}/libggadget-xdg-1.0.so.0
276%attr(755,root,root) %{_libdir}/libggadget-xdg-1.0.so.*.*.*
7dd0f9b1 277
30b0d021 278%files -n libggadget-devel
b50eec67 279%defattr(644,root,root,755)
30b0d021
ER
280%dir %{_includedir}/google-gadgets
281%dir %{_includedir}/google-gadgets/ggadget
282%dir %{_includedir}/google-gadgets/ggadget/dbus
283%dir %{_includedir}/google-gadgets/ggadget/js
284%dir %{_includedir}/google-gadgets/ggadget/xdg
285%dir %{_includedir}/google-gadgets/ggadget/npapi
286%{_includedir}/google-gadgets/ggadget/*.h
287%{_includedir}/google-gadgets/ggadget/dbus/*.h
288%{_includedir}/google-gadgets/ggadget/js/*.h
289%{_includedir}/google-gadgets/ggadget/xdg/*.h
290%{_includedir}/google-gadgets/ggadget/npapi/*.h
291%dir %{_libdir}/google-gadgets/include
292%dir %{_libdir}/google-gadgets/include/ggadget
293%{_libdir}/google-gadgets/include/ggadget/sysdeps.h
294%{_libdir}/libggadget-1.0*.so
295%{_libdir}/libggadget-dbus-1.0*.so
296%{_libdir}/libggadget-js-1.0*.so
297%{_libdir}/libggadget-xdg-1.0*.so
298%{_libdir}/libggadget-npapi-1.0*.so
299%if 0
300%{_libdir}/libggadget-1.0*.la
301%{_libdir}/libggadget-dbus-1.0*.la
302%{_libdir}/libggadget-js-1.0*.la
303%{_libdir}/libggadget-xdg-1.0*.la
304%{_libdir}/libggadget-npapi-1.0*.la
305%endif
306%{_pkgconfigdir}/libggadget-1.0.pc
307%{_pkgconfigdir}/libggadget-dbus-1.0.pc
308%{_pkgconfigdir}/libggadget-js-1.0.pc
309%{_pkgconfigdir}/libggadget-xdg-1.0.pc
310%{_pkgconfigdir}/libggadget-npapi-1.0.pc
b50eec67 311
30b0d021 312%files -n libggadget-gtk
b50eec67 313%defattr(644,root,root,755)
b5a0ce63
ER
314%attr(755,root,root) %ghost %{_libdir}/libggadget-gtk-1.0.so.0
315%attr(755,root,root) %{_libdir}/libggadget-gtk-1.0.so.*.*.*
b50eec67 316
30b0d021 317%files -n libggadget-gtk-devel
05d27992 318%defattr(644,root,root,755)
b5a0ce63
ER
319%dir %{_includedir}/google-gadgets/ggadget/gtk
320%{_includedir}/google-gadgets/ggadget/gtk/*.h
30b0d021
ER
321%{_libdir}/libggadget-gtk-1.0*.so
322#%{_libdir}/libggadget-gtk-1.0*.la
323%{_pkgconfigdir}/libggadget-gtk-1.0.pc
324
325%files -n libggadget-qt
326%defattr(644,root,root,755)
327%attr(755,root,root) %ghost %{_libdir}/libggadget-qt-1.0.so.0
328%attr(755,root,root) %{_libdir}/libggadget-qt-1.0.so.*.*.*
329
330%files -n libggadget-qt-devel
331%defattr(644,root,root,755)
b5a0ce63
ER
332%dir %{_includedir}/google-gadgets/ggadget/qt
333%{_includedir}/google-gadgets/ggadget/qt/*.h
30b0d021
ER
334%{_libdir}/libggadget-qt-1.0*.so
335#%{_libdir}/libggadget-qt-1.0*.la
336%{_pkgconfigdir}/libggadget-qt-1.0.pc
337
338%files gtk
339%defattr(644,root,root,755)
340%attr(755,root,root) %{_bindir}/ggl-gtk
341%attr(755,root,root) %{_libdir}/google-gadgets/modules/gtk-edit-element.so
342%attr(755,root,root) %{_libdir}/google-gadgets/modules/gtk-flash-element.so
343%attr(755,root,root) %{_libdir}/google-gadgets/modules/gtk-system-framework.so
344%{_desktopdir}/ggl-gtk.desktop
e123ee93 345%{_desktopdir}/ggl-designer.desktop
30b0d021
ER
346
347%files qt
348%defattr(644,root,root,755)
349%attr(755,root,root) %{_bindir}/ggl-qt
350%attr(755,root,root) %{_libdir}/google-gadgets/modules/qt-edit-element.so
351%attr(755,root,root) %{_libdir}/google-gadgets/modules/qt-script-runtime.so
352%attr(755,root,root) %{_libdir}/google-gadgets/modules/qt-system-framework.so
353%attr(755,root,root) %{_libdir}/google-gadgets/modules/qt-xml-http-request.so
354%attr(755,root,root) %{_libdir}/google-gadgets/modules/qtwebkit-browser-element.so
355%{_desktopdir}/ggl-qt.desktop
356
357%files gst
358%defattr(644,root,root,755)
359%attr(755,root,root) %{_libdir}/google-gadgets/modules/gst-audio-framework.so
360%attr(755,root,root) %{_libdir}/google-gadgets/modules/gst-video-element.so
361
362%files xul
363%defattr(644,root,root,755)
364%attr(755,root,root) %{_libdir}/google-gadgets/modules/smjs-script-runtime.so
365%attr(755,root,root) %{_libdir}/google-gadgets/modules/gtkmoz-browser-element.so
366%attr(755,root,root) %{_libdir}/google-gadgets/gtkmoz-browser-child
This page took 0.170249 seconds and 4 git commands to generate.