Author: spuk
Date: Sun Feb 4 21:06:20 2007
New Revision: 116168
Modified:
packages/cooker/wmdf/current/SPECS/wmdf.spec
Log:
- fixed and trimmed dependencies
- spec cleanup
- fixed old menu section
- xdg menu migration for great compliance
Modified: packages/cooker/wmdf/current/SPECS/wmdf.spec
==============================================================================
--- packages/cooker/wmdf/current/SPECS/wmdf.spec (original)
+++ packages/cooker/wmdf/current/SPECS/wmdf.spec Sun Feb 4 21:06:20 2007
@@ -1,6 +1,6 @@
%define name wmdf
%define version 0.1.6
-%define release 1mdk
+%define release %mkrel 2
Summary: An app to monitor disk IO and available space on partitions
Name: %{name}
@@ -13,8 +13,9 @@
Source11: %{name}-32x32.png
Source12: %{name}-48x48.png
URL: http://www.dockapps.com/file.php/id/175
-Requires: XFree86-libs, xpm
-BuildRequires: XFree86-devel, xpm-devel
+BuildRequires: libx11-devel
+BuildRequires: libxpm-devel
+BuildRequires: libxext-devel
BuildRoot: %{_tmppath}/%{name}-buildroot
@@ -25,11 +26,9 @@
disk usage and free space etc.
%prep
-
-%setup
+%setup -q
%build
-
%configure
%make
@@ -48,10 +47,25 @@
install -m 755 -d %buildroot%{_menudir}
cat << EOF > %buildroot%{_menudir}/%{name}
?package(%{name}):command="%{_bindir}/%{name} -at 99 -bl" icon="%{name}.png"\\
- needs="wmaker" section="Applications/Monitoring"
title="WmDf"\\
- longtitle="Disk I/O and space monitoring dockapp"
+ needs="wmaker" section="System/Monitoring" title="WmDf"\\
+ longtitle="Disk I/O and space monitoring dockapp" \\
+ xdg="true"
EOF
+install -m 755 -d %{buildroot}%{_datadir}/applications
+cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop <<EOF
+[Desktop Entry]
+Encoding=UTF-8
+Name=WmDf
+Comment=%{summary}
+Exec=%{_bindir}/%{name} -at 99 -bl
+Icon=%{name}
+Terminal=false
+Type=Application
+Categories=X-MandrivaLinux-System-Monitoring;System;Monitor;
+EOF
+
+
# This is commented as we don't need it
#mv %buildroot/usr/bin/i586-mandrake-linux-gnu-wmdf
%buildroot%prefix/bin/wmdf
#mv %buildroot//usr/share/man/man1/i586-mandrake-linux-gnu-wmdf.1
%buildroot%_mandir/man1/wmdf.1
@@ -78,4 +92,5 @@
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_menudir}/%{name}
+%{_datadir}/applications/mandriva-%{name}.desktop
%{_mandir}/man1/*