I built aMule rpm recently, but I can't get it to write amule in /usr/lib/menu, so it's desktop menu entry could be automatically added by Mandriva's internal routines. I followed advice from Mandrake RPM Howto and added these commands to the spec file:
%install
mkdir -p $RPM_BUILD_ROOT/%{_menudir}
cat << EOF > $RPM_BUILD_ROOT/%{_menudir}/amule
?package(aMule): needs="x11" kde_filename="amule" section="Internet/File Transfer" title="aMule" icon="amule.xpm" command="/usr/bin/amule" longtitle="eD2k Client" kde_opt="\\nEncoding=UTF-8\\nTerminal=false" xdg="true"
EOF
I installed the .rpm but there's no menu file for amule on the target system. If I run the same cat command above in a terminal it works flawlessly. What gives ? ?(