Hi All,
I am writing spec file for my java application.
I want to create shortcut menu from my spec file. I have used desktop-file-install command but i am gettting the following error:
not enough data to guess encoding!
Please can any body tell me where i am doing wrong???
Here is my spec file for reference.
Summary: Test
Name: AddtGRE
Version: 1.0
Release: 0.1
Source0: gre.tar.gz
License: navayuga
BuildRoot: /var/tmp/%{name}-buildroot
Group : Navayuga
Prefix : /usr/share
%description
This is test file
%prep
%setup -c -q
%install
cp -a ./ $RPM_BUILD_ROOT/
cat > GRE.desktop << EOF
[Desktop Entry]
Name=ddGRE
Comment=GRE
Exec=$RPM_BUILD_ROOT/GRE/GRE -data gre_ws -vmargs -Dcom.amdosoft.oct.ruleeditor.oct_ip_address=127.0.0.1 -Dcom.amdosoft.oct.ruleeditor.oct_session_id=LITESESSIONID -cp $RPM_BUILD_ROOT/GRE/startup.jar org.eclipse.core.launcher.Main -application com.amdosoft.oct.ruleeditor.ui.ruleeditor.application
Terminal=false
Type=Application
Encoding=UTF-8
EOF
desktop-file-install --vendor amdosoft --dir=/usr/share/applications --add-category X-Red-Hat-Extra --add-category Application --add-category Development GRE.desktop
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/usr/share/GRE
/usr/bin
%changelog
* Wed Jan 17 2007 sdd
sdd@ndddga.co.in
- created the test spec file
Thanks in Advance