Hi all ,

I am writing spec file for my application.(This is first time i am writing the spec file ) And i am getting the following exception when i am running the specfile with rpmbuild ..
Error:
GRE.desktop: missing encoding
GRE.desktop: not enough data to guess encoding!

Here is my spec file::
Summary: Test
Name: GRE
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
[Desctop Entry]
Name = GRE
Comment = GRE Application
Exec = $RPM_BUILD_ROOT/GRE/GRE
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

Can any body tell me where i am going wrong..

Thanks in Advance