1 # use this to get latest rev:
2 # svn export http://google-gadgets-for-linux.googlecode.com/svn/trunk/ google-gadgets-for-linux
7 #% bcond_with debug # build with debug
8 #% bcond_without gtk # without gtk support
9 #% bcond_without qt # without qt support
10 #% bcond_without gadgets # without gadgets
12 %define realname google-gadgets
15 Summary: google-gadgets-for-linux
16 Name: google-gadgets-for-linux
19 License: Apache License v2.0
20 Group: X11/Applications
21 #Source0: %{name}-%{version}-%{rev}.tar.bz2
22 Source0: http://google-gadgets-for-linux.googlecode.com/files/%{name}-%{version}.tar.bz2
23 # Source0-md5: 0ef0a62e0a575388084a77759b646718
24 Source1: %{name}-gtk.desktop
25 Source2: %{name}-qt.desktop
26 Patch0: %{name}-cmake.patch
27 Patch1: %{name}-link_with_qtnetwork.patch
28 Patch2: %{name}-js.patch
29 URL: http://code.google.com/p/google-gadgets-for-linux/
30 BuildRequires: QtCore-devel >= 4.4.3
31 BuildRequires: QtNetwork-devel >= 4.4.3
32 BuildRequires: QtScript-devel >= 4.4.3
33 BuildRequires: QtWebKit-devel >= 4.4.3
34 BuildRequires: cmake >= 2.6.1-2
35 BuildRequires: curl-devel >= 7.18.2
36 BuildRequires: dbus-devel >= 1.0.2
38 BuildRequires: gstreamer-plugins-base-devel >= 0.10.0
39 BuildRequires: libltdl-devel
40 BuildRequires: librsvg-devel
41 BuildRequires: libtool >= 1.5.22
42 BuildRequires: libxml2-devel >= 2.4.0
43 BuildRequires: pkgconfig
44 BuildRequires: xulrunner-devel >= 1.8
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 google-gadgets-for-linux.
52 Summary: google-gadgets set
53 Summary(pl.UTF-8): Zestaw gadżetów google-gadgets
54 Group: X11/Applications
55 Requires: %{name} = %{version}-%{release}
60 %description gadgets -l pl.UTF-8
61 Zestaw gadżetów google-gadgets.
64 Summary: Header files for google-gadgets library
65 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki google-gadgets
66 Group: Development/Libraries
67 Requires: %{name} = %{version}-%{release}
70 Header files for google-gadgets library.
72 %description devel -l pl.UTF-8
73 Pliki nagłówkowe biblioteki google-gadgets.
76 Summary: Static google-gadgets libraries
77 Summary(pl.UTF-8): Statyczne biblioteki google-gadgets
78 Group: Development/Libraries
79 Requires: %{name}-devel = %{version}-%{release}
82 Static google-gadgets libraries.
84 %description static -l pl.UTF-8
85 Statyczne biblioteki google-gadgets.
89 find -name '.svn' | xargs rm -rf
97 %{__aclocal} -I autotools
102 --disable-ltdl-install \
105 --with-oem-brand=pld-linux \
106 --with-browser-plugins-dir=%{_libdir}/browser-plugins
110 rm -rf $RPM_BUILD_ROOT
111 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
114 DESTDIR=$RPM_BUILD_ROOT
116 # desync with cmake/ac makefiles
117 mv $RPM_BUILD_ROOT%{_datadir}/mime/packages/{00-,}google-gadgets.xml
119 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/ggl-gtk.desktop
120 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/ggl-qt.desktop
122 rm -f $RPM_BUILD_ROOT%{_libdir}/google-gadgets/modules/smjs-script-runtime.la
125 rm -rf $RPM_BUILD_ROOT
127 %post -p /sbin/ldconfig
128 %postun -p /sbin/ldconfig
131 %defattr(644,root,root,755)
132 %attr(755,root,root) %{_bindir}/*
133 %{_datadir}/mime/packages/google-gadgets.xml
134 %dir %{_datadir}/%{realname}
135 %{_datadir}/%{realname}/*.gg
136 %{_desktopdir}/*.desktop
137 %{_iconsdir}/*/*/*/*.png
138 %{_pixmapsdir}/%{realname}.png
140 %attr(755,root,root) %{_libdir}/*.so.*.*.*
141 %attr(755,root,root) %ghost %{_libdir}/*.so.0
142 %attr(755,root,root) %{_libdir}/%{realname}/gtkmoz-browser-child
143 %dir %{_libdir}/%{realname}
144 %dir %{_libdir}/%{realname}/modules
147 %defattr(644,root,root,755)
148 %attr(755,root,root) %{_libdir}/%{realname}/modules/*.so
151 %defattr(644,root,root,755)
152 %dir %{_libdir}/%{realname}/include
153 %dir %{_libdir}/%{realname}/include/ggadget
154 %{_libdir}/%{realname}/include/ggadget/*.h
155 %dir %{_includedir}/%{realname}
156 %dir %{_includedir}/%{realname}/ggadget
157 %{_includedir}/%{realname}/ggadget/*.h
158 %dir %{_includedir}/%{realname}/ggadget/dbus
159 %{_includedir}/%{realname}/ggadget/dbus/*.h
160 %dir %{_includedir}/%{realname}/ggadget/gtk
161 %{_includedir}/%{realname}/ggadget/gtk/*.h
162 %dir %{_includedir}/%{realname}/ggadget/npapi
163 %{_includedir}/%{realname}/ggadget/npapi/*.h
164 %dir %{_includedir}/%{realname}/ggadget/qt
165 %{_includedir}/%{realname}/ggadget/qt/*.h
166 %dir %{_includedir}/%{realname}/ggadget/js
167 %{_includedir}/%{realname}/ggadget/js/*.h
168 %dir %{_includedir}/%{realname}/ggadget/xdg
169 %{_includedir}/%{realname}/ggadget/xdg/*.h
170 %attr(755,root,root) %{_libdir}/*.so
171 %{_pkgconfigdir}/*.pc
174 #%defattr(644,root,root,755)