On Thu, 12 Apr 2012 12:43:17 -0700 (PDT), KA (Kamal) wrote:
Jon,
with:
cp obj/ggsnc/ggsnc $RPM_BUILD_ROOT%{_bindir}/
i get:
+ cp obj/ggsnc/ggsnc /pcore-0.1/usr/bin/
cp: cannot create regular file `/pcore-0.1/usr/bin/': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.93551 (%install)
That makes no sense, because $RPM_BUILD_ROOT should evaluate to the
value defined in the "BuildRoot:" tag. It seems you inserted a mistake
somewhere.
The problem being that even though my Version is 0.1 , but when i
untar , the directory gets created is pcore and not pcore-0.1.
Any solution for this ?
Read up on the %setup macro's options. It seems you want to add -n %{name}
so it enters the existing "pcore" directory instead of the default (which
is %{name}-%{version}).