%define name gdesklets %define version 0.36 %define release %mkrel 3 Summary: GNOME Desktop Applets Name: %{name} Version: %{version} Release: %{release} Source0: http://gdesklets.de/files/%{name}-%{version}.tar.bz2 Source1: %name-32.png Source2: %name-16.png Patch0: destdir.patch License: GPLv2+ Group: Graphical desktop/GNOME BuildRoot: %{_tmppath}/%{name}-buildroot URL: http://www.gdesklets.de/ BuildRequires: gnome-python-devel 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: libgnome2-devel > 2.6.0 BuildRequires: desktop-file-utils BuildRequires: libgnomeui2-devel >= 2.2.0 BuildRequires: librsvg-devel 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 %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 %patch0 %build # FIXME: temporary workaround to get intltool-merge working. Will get fixed with a new release (> 0.36) released with a newer intltool. intltoolize --force --copy autoreconf -f -i %configure2_5x --disable-schemas-install %make %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %find_lang %{name} #remove mime related stuff #rm -rf ${RPM_BUILD_ROOT}%{_datadir}/mime/application #rm -rf ${RPM_BUILD_ROOT}%{_datadir}/mime/{globs,magic,XMLnamespaces,aliases,subclasses,mime.cache} #rm -f ${RPM_BUILD_ROOT}%{_datadir}/applications/mimeinfo.cache perl -pi -e 's,%{name}.png,%{name},g' %{buildroot}%{_datadir}/applications/* desktop-file-install --vendor="" \ --remove-category="Application" \ --add-category="GTK" \ --add-category="System;Monitor" \ --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 %if %mdkversion < 200900 %post %{update_menus} %{update_desktop_database} %endif %if %mdkversion < 200900 %postun %{clean_menus} %{clean_desktop_database} %endif %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* %_liconsdir/%name.png %_iconsdir/%name.png %_miconsdir/%name.png %changelog * Sat Aug 23 2008 Emmanuel Andry <eandry@mandriva.org> 0.36-3mdv2009.0 + Revision: 275322 - fix license - use PO from opensuse - use intltoolize + Thierry Vignaud <tvignaud@mandriva.com> - rebuild + Pixel <pixel@mandriva.com> - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas * Sun Feb 24 2008 Emmanuel Andry <eandry@mandriva.org> 0.36-1mdv2008.1 + Revision: 174473 - New version - fix source - BR reorganization - disable x86_64 symlink workaround (should be fixed upstream) * Tue Jan 08 2008 Emmanuel Andry <eandry@mandriva.org> 0.36-0.beta.2mdv2008.1 + Revision: 146700 - fix wrong x86_64 symlink workaround + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Wed Dec 26 2007 Emmanuel Andry <eandry@mandriva.org> 0.36-0.beta.1mdv2008.1 + Revision: 137823 - fix path for x86_64 * Tue Dec 18 2007 Emmanuel Andry <eandry@mandriva.org> 0.36-0.beta.0mdv2008.1 + Revision: 132779 - New version + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Tue Sep 18 2007 Emmanuel Andry <eandry@mandriva.org> 0.35.4-4mdv2008.0 + Revision: 89683 - make desktop file validation pass - disable autotools since it generates errors with intltool-merge - drop P0 and delete mime components manually (because of autotools deactivation) * 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 * Mon Sep 11 2006 Emmanuel Andry <eandry@mandriva.org> 0.35.3-4mdv2007.0 - rebuild * Sat Aug 19 2006 Emmanuel Andry <eandry@mandriva.org> 0.35.3-3mdv2007.0 - patch from Nicolas Lécureuil to fix bug #24326 * Fri Aug 04 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 * Sun Jul 23 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