-%define _snap 20031116
Summary: A couple of command line utilities for working with desktop entries
Summary(pl): Kilka narzêdzi do pracy z elementami biurkowymi
Name: desktop-file-utils
-Version: 0.3
-Release: 0.%{_snap}.1
+Version: 0.6
+Release: 2.4
License: GPL
Group: Applications
-Source0: %{name}-%{version}-%{_snap}.tar.bz2
-# Source0-md5: 0fdf4caaea9b67a10f259906d0f92819
-URL: http://www.freedesktop.org/software/desktop-file-utils/
+Source0: http://freedesktop.org/Software/desktop-file-utils/releases/%{name}-%{version}.tar.gz
+# Source0-md5: dcace3294470e9cdc9ebfe7de1881ece
+Patch0: %{name}-menu.patch
+Patch1: %{name}-hide_empty_submenus.patch
+Patch2: %{name}-directory_change_notify.patch
+Patch3: %{name}-directory_mtime.patch
+Patch4: %{name}-onlyshowin.patch
+Patch5: %{name}-nodisplay.patch
+Patch6: %{name}-noshowin.patch
+# don't append / at end of URL
+URL: http://www.freedesktop.org/software/desktop-file-utils
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: glib2-devel >= 2.0.0
Summary(pl): Obs³uga menu wed³ug specyfikacji z freedesktop.org
Group: Applications
Requires: gnome-vfs2 >= 2.2.0
+Requires: applnk >= 1.9.3-2
%description -n gnome-vfs2-module-menu
-This package contain module for gnome-vfs supporting menu with
+This package contains module for gnome-vfs supporting menu with
specification declared by freedesktop.org.
%description -n gnome-vfs2-module-menu -l pl
specyfikacji freedesktop.org.
%prep
-%setup -q -n %{name}
+%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
%build
-rm -f missing
%{__libtoolize}
%{__aclocal}
%{__autoheader}
%{__automake}
%{__autoconf}
-%configure
+%configure \
+ --disable-static
%{__make}
%install
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+# remove unused *.la for gnome-vfs modules
+rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-vfs-2.0/modules/*.la
+
+# not needed - it's only for testing purposes
+rm -f $RPM_BUILD_ROOT%{_sysconfdir}/gnome-vfs-2.0/modules/menu-modules.conf
+
%clean
rm -rf $RPM_BUILD_ROOT
%files -n gnome-vfs2-module-menu
%defattr(644,root,root,755)
-%{_sysconfdir}/gnome-vfs-2.0/modules/menu-modules.conf
%attr(755,root,root) %{_libdir}/gnome-vfs-2.0/modules/*.so
-%{_libdir}/gnome-vfs-2.0/modules/*.la