Author: glen Date: Sat Jan 30 13:16:54 2010 GMT Module: packages Tag: HEAD ---- Log message: - initial, packaging bits from google-chrome.spec
---- Files affected: packages/google-desktop: google-desktop.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/google-desktop/google-desktop.spec diff -u /dev/null packages/google-desktop/google-desktop.spec:1.1 --- /dev/null Sat Jan 30 14:16:54 2010 +++ packages/google-desktop/google-desktop.spec Sat Jan 30 14:16:49 2010 @@ -0,0 +1,116 @@ +# $Revision$, $Date$ +%define buildid 0088 +%define rel 0.1 +Summary: Google Desktop: Personalize and organize your own computer +Name: google-desktop +Version: 1.2.0 +Release: 0.%{buildid}.%{rel} +License: Copyright 2007 Google Inc. All Rights Reserved. +Group: X11/Applications +%ifarch %{ix86} +Source0: http://dl.google.com/linux/rpm/stable/i386/%{name}-linux-current.rpm +# NoSource0-md5: 165d313c8592a007d7a0e42ca3af0dfb +NoSource: 0 +%endif +%ifarch %{x8664} +Source1: http://dl.google.com/linux/rpm/stable/x86_64/%{name}-linux-current.rpm +# NoSource1-md5: dac43d2ea9d4f1069a0bed0e754cffb1 +NoSource: 1 +%endif +URL: http://desktop.google.com/linux/ +ExclusiveArch: %{ix86} %{x8664} +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _appdir %{_libdir}/%{name} + +%define _enable_debug_packages 0 +%define no_install_post_strip 1 + +# sysdeps in lib dir +%define sysdeps libcurl.so libgcc_s.so.1 libgd.so libjpeg.so libjs.so libopenssl.so libplugins.so libpng12.so libsqlite.so libstdc++.so.6 libtag.so libuuid.so libz.so libzzip.so +# internal deps +%define intdeps libdesktop.so libgdl.so libgdl_firefox.so libgdl_thunderbird.so libbreakpad.so gdl_box + +# list of script capabilities (regexps) not to be used in Provides +%define _noautoprov %{sysdeps} %{intdeps} +# do not require them either +%define _noautoreq %{_noautoprov} + +%description +Google Desktop is a desktop search application that gives you easy +access to information on your computer and from the web. Desktop makes +searching your own email, files, music, photos, and more as easy as +searching the web with Google. + +%prep +%setup -qcT +%ifarch %{ix86} +SOURCE=%{S:0} +%endif +%ifarch %{x8664} +SOURCE=%{S:1} +%endif + +V=$(rpm -qp --qf '%{V}' $SOURCE) +R=$(rpm -qp --qf '%{R}' $SOURCE) +if [ version:$V != version:%{version} -o buildid:$R != buildid:%{buildid} ]; then + exit 1 +fi +rpm2cpio $SOURCE | cpio -i -d + +mv opt/google/desktop/* . +mv etc/cron.hourly . + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_appdir},%{_bindir},%{_desktopdir},/etc/cron.daily,/var/cache/google/desktop} +cp -a xdg/*.desktop $RPM_BUILD_ROOT%{_desktopdir} +cp -a resource plugin lib bin $RPM_BUILD_ROOT%{_appdir} +ln -s %{_appdir}/bin/gdlinux $RPM_BUILD_ROOT%{_bindir} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README VERSION +%attr(755,root,root) %{_bindir}/gdlinux +%dir %{_appdir} +%dir %{_appdir}/bin +%dir %{_appdir}/lib +%dir %{_appdir}/plugin +%attr(755,root,root) %{_appdir}/bin/* +%attr(755,root,root) %{_appdir}/lib/*.so* +%{_appdir}/resource + +%{_desktopdir}/google-gdl-preferences.desktop +%{_desktopdir}/google-gdl.desktop + +%dir /var/cache/google +%dir %attr(2777,root,root) /var/cache/google/desktop + +# subpackage for iceweasel +%dir %{_appdir}/plugin/firefox +%dir %{_appdir}/plugin/firefox/components +%{_appdir}/plugin/firefox/chrome.manifest +%attr(755,root,root) %{_appdir}/plugin/firefox/components/libdesktop.so +%{_appdir}/plugin/firefox/install.rdf + +# subpackage for icedove +%dir %{_appdir}/plugin/thunderbird +%dir %{_appdir}/plugin/thunderbird/components +%{_appdir}/plugin/thunderbird/chrome.manifest +%attr(755,root,root) %{_appdir}/plugin/thunderbird/components/libdesktop.so +%{_appdir}/plugin/thunderbird/components/mozilla_mail_stub.js +%{_appdir}/plugin/thunderbird/components/mozilla_mail_stub.xpt +%{_appdir}/plugin/thunderbird/install.rdf + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <feedb...@pld-linux.org> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2010/01/30 13:16:49 glen +- initial, packaging bits from google-chrome.spec + ================================================================ _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit