"Geoffrey Lee" <[EMAIL PROTECTED]> writes:
> Yo,
>
> no, the file should have been removed, since the new menu system is in
> place.
>
> you have to remove the install line from %install for the deskop file, thx.
Yes, and if you want to add menu entry create it from the spec file,
something like that (example gdb and icons add):
mkdir -p $RPM_BUILD_ROOT/usr/lib/menu/
cat << EOF > $RPM_BUILD_ROOT/usr/lib/menu/%{name}
?package(%{name}):\
needs="text"\
section="Applications/Development/Tools"\
title="Gdb"\
longtitle="The GNU debugger"\
command="gdb"\
icon=%{name}.xpm
EOF
mkdir -p $RPM_BUILD_ROOT/usr/share/icons/mini/
install -m644 %{SOURCE1} $RPM_BUILD_ROOT/usr/share/icons/mini/%{name}.xpm
%post
if [ -x /usr/sbin/install-menu ];then
/usr/sbin/install-menu
fi
%postun
if [ -x /usr/sbin/install-menu ];then
/usr/sbin/install-menu
fi
%files
/usr/lib/menu/%{name}
/usr/share/icons/mini/%{name}.xpm
--
MandrakeSoft Inc http://www.mandrakesoft.com
San-Diego, CA USA. --Chmouel