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