aMule Forum

English => Compilation problems => Topic started by: DLH on November 28, 2006, 09:02:27 PM

Title: Menu config file missing from the rpm
Post by: DLH on November 28, 2006, 09:02:27 PM
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 ?  ?(
Title: Re: Menu config file missing from the rpm
Post by: Gerd78 on November 28, 2006, 09:25:03 PM
Didn't Mandriva recently switch to the standard freedesktop.org menu system?
Title: Re: Menu config file missing from the rpm
Post by: DLH on November 29, 2006, 09:56:28 AM
Could you elaborate on how is that different and what do you need to do to comply ?