# TODO: # - add gtk BRs # - configure: WARNING: Library SpiderMonkey is not available, smjs-script-runtime extension won't be built. # - update desc # - split to gadgets # # Conditional build: %bcond_with debug # build with debug #% bcond_without gtk # without gtk support #% bcond_without qt # without qt support %define realname google-gadgets # Summary: google-gadgets-for-linux Name: google-gadgets-for-linux Version: 0.10.1 Release: 0.2 License: Apache License v2.0 Group: X11/Applications Source0: http://google-gadgets-for-linux.googlecode.com/files/%{name}-%{version}.tar.gz # Source0-md5: 95b43aca687036753ad4d14a9f13126f Source1: %{name}-gtk.desktop Source2: %{name}-qt.desktop URL: http://code.google.com/p/google-gadgets-for-linux/ BuildRequires: QtCore-devel >= 4.3 BuildRequires: QtScript-devel >= 4.3 BuildRequires: QtWebKit-devel >= 4.3 BuildRequires: autoconf >= 2.59 BuildRequires: automake >= 1.9.6 BuildRequires: curl-devel >= 7.18.2 BuildRequires: dbus-devel >= 1.0.2 BuildRequires: flex BuildRequires: gstreamer-plugins-base-devel >= 0.10.0 BuildRequires: libltdl-devel BuildRequires: libtool >= 1.5.22 BuildRequires: libxml2-devel >= 2.4.0 BuildRequires: sed >= 4.0 BuildRequires: xulrunner-devel >= 1.8 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description google-gadgets-for-linux. %package devel Summary: Header files for google-gadgets library Summary(pl.UTF-8): Pliki nagłówkowe biblioteki google-gadgets Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel Header files for google-gadgets library. %description devel -l pl.UTF-8 Pliki nagłówkowe biblioteki google-gadgets. %package static Summary: Static google-gadgets libraries Summary(pl.UTF-8): Statyczne biblioteki google-gadgets Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static Static google-gadgets libraries. %description static -l pl.UTF-8 Statyczne biblioteki google-gadgets. %prep %setup -q # little hack for xulrunner %{__sed} -i "s/PREDEFINED_MACROS)/& -I\/usr\/include\/xulrunner\/gtkembedmoz -I\/usr\/include\/xulrunner\/js -I\/usr\/include\/xulrunner\/xpcom /" extensions/gtkmoz_browser_element/Makefile.am mkdir -p build %build # with our configure macro there are lots of unused variable errors (-Wall -Werror -D_something=2) export CC='%{__cc}' export CXX='%{__cxx}' export CXXFLAGS='%{rpmcxxflags}' %{__libtoolize} %{__aclocal} -I autotools %{__autoconf} %{__autoheader} %{__automake} cd build ../configure \ --prefix=%{_prefix} \ --%{?with_debug:en}%{!?with_debug:dis}able-debug %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} cd build %{__make} install \ DESTDIR=$RPM_BUILD_ROOT # desktop files install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/ggl-gtk.desktop install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/ggl-qt.desktop %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/* %{_datadir}/mime/application/x-google-gadgets.xml %{_datadir}/mime/packages/00-google-gadgets.xml %dir %{_datadir}/%{realname} %{_datadir}/%{realname}/*.gg %{_desktopdir}/*.desktop %{_pixmapsdir}/%{realname}.png %attr(755,root,root) %{_libdir}/*.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/*.so.0 %attr(755,root,root) %{_libdir}/%{realname}/gtkmoz-browser-child %dir %{_libdir}/%{realname} %dir %{_libdir}/%{realname}/modules %attr(755,root,root) %{_libdir}/%{realname}/modules/*.so %files devel %dir %{_libdir}/%{realname}/include %dir %{_libdir}/%{realname}/include/ggadget %{_libdir}/%{realname}/include/ggadget/*.h %dir %{_includedir}/%{realname} %dir %{_includedir}/%{realname}/ggadget %{_includedir}/%{realname}/ggadget/*.h %dir %{_includedir}/%{realname}/ggadget/dbus %{_includedir}/%{realname}/ggadget/dbus/*.h %dir %{_includedir}/%{realname}/ggadget/gtk %{_includedir}/%{realname}/ggadget/gtk/*.h %dir %{_includedir}/%{realname}/ggadget/qt %{_includedir}/%{realname}/ggadget/qt/*.h %dir %{_includedir}/%{realname}/ggadget/js %{_includedir}/%{realname}/ggadget/js/*.h %{_libdir}/*.la %attr(755,root,root) %{_libdir}/*.so %{_pkgconfigdir}/*.pc %files static %defattr(644,root,root,755) %{_libdir}/lib*.a