%define name gdesklets %define version 0.35.4 %define release %mkrel 2 %define oname gDesklets Summary: GNOME Desktop Applets Name: %{name} Version: %{version} Release: %{release} Source0: http://gdesklets.org//downloads/%oname-%{version}.tar.bz2 Source1: %name-32.png Source2: %name-16.png Patch0: %{oname}-0.34.1-no-mime-update.patch License: GPL Group: Graphical desktop/GNOME BuildRoot: %{_tmppath}/%{name}-buildroot URL: http://www.gdesklets.org/ BuildRequires: python-devel > 2.0.0 BuildRequires: pyorbit-devel BuildRequires: pygtk2.0-devel > 2.4.0 BuildRequires: librsvg2-devel BuildRequires: libgtop2.0-devel >= 2.8.0 BuildRequires: libxdmcp-devel BuildRequires: libxau-devel BuildRequires: gnome-python >= 2.0.0 BuildRequires: libgnome2-devel > 2.6.0 BuildRequires: desktop-file-utils, libgnomeui2-devel >= 2.2.0 BuildRequires: librsvg-devel swig automake intltool Requires: gnome-python-gconf >= 2.6.0 Requires(Pre): shared-mime-info Requires(post): desktop-file-utils Requires(postun): desktop-file-utils Requires: gnome-python gnome-python-gconf gnome-python-gtkhtml2 Requires: gnome-python-gnomevfs Obsoletes: gdesklets-starter-kit gdesklets-externalsensor Provides: gdesklets-externalsensor %description 'gDesklets' provides an advanced architecture for desktop applets - tiny displays sitting on your desktop in a symbiotic relationship of eye candy and usefulness. Populate your desktop with status meters, icon bars, weather sensors, news tickers... whatever you can imagine! Virtually anything is possible and maybe even available some day. %prep %setup -q -n %oname-%version %patch0 -p1 -b .no-mime #needed by patch 0 aclocal autoconf automake -a -c %build %configure2_5x --disable-schemas-install %make %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %find_lang %{name} install -d %{buildroot}%{_menudir} cat <<EOF > %{buildroot}%{_menudir}/%{name} ?package(%{name}):command="gdesklets shell" \ icon=%{name}.png \ needs="x11" \ section="Applications/Monitoring" \ title="Gdesklets"\ startup_notify="yes"\ longtitle="Put applets on your GNOME desktop"\ xdg=true EOF desktop-file-install --vendor="" \ --remove-category="Application" \ --add-category="GTK" \ --add-category="System;Monitor" \ --add-category="X-MandrivaLinux-System-Monitoring" \ --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/* install -d %buildroot%_liconsdir ln -s %_datadir/pixmaps/%name.png %buildroot%_liconsdir install -D %SOURCE1 %buildroot%_iconsdir/%name.png install -D %SOURCE2 %buildroot%_miconsdir/%name.png %clean rm -rf $RPM_BUILD_ROOT %post %{update_menus} %{update_desktop_database} %postun %{clean_menus} %{clean_desktop_database} %files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS COPYING ChangeLog NEWS README %_bindir/%name %_libdir/%name %_datadir/applications/%{name}.desktop %_datadir/mime/packages/* %_datadir/pixmaps/%{name}.png %_datadir/icons/gnome/48x48/mimetypes/gnome-mime-application-x-%{name}-display.png %_mandir/man1/%{name}.1* %_menudir/%name %_liconsdir/%name.png %_iconsdir/%name.png %_miconsdir/%name.png %changelog * Sat Dec 09 2006 Emmanuel Andry <eandry@mandriva.org> 0.35.4-2mdv2007.0 + Revision: 94384 - rebuild for python 2.5 * Tue Nov 07 2006 Emmanuel Andry <eandry@mandriva.org> 0.35.4-1mdv2007.1 + Revision: 77055 - 0.35.4 (drop patch1) - bunzip2 patches - Import gdesklets * Sun Sep 10 2006 Emmanuel Andry <eandry@mandriva.org> 0.35.3-4mdv2007.0 - rebuild * Thu Aug 18 2006 Emmanuel Andry <eandry@mandriva.org> 0.35.3-3mdv2007.0 - patch from Nicolas Lécureuil to fix bug #24326 * Thu Aug 03 2006 Emmanuel Andry <eandry@mandriva.org> 0.35.3-2mdv2007.0 - fix mimetype - works fine with default automake - add buildrequires libgnomeui2_0-devel >= 2.2.0 * Sat Jul 22 2006 Emmanuel Andry <eandry@mandriva.org> 0.35.3-1mdv2007.0 - Reintroduced package with version 0.35.3 from fedora spec file - Fixed URL for rpmbuildupdate - %%mkrel - xdg menu