resolved by using :
%setup -qn pcore
Thanks,
-Kamal.


From: Michael Schwendt <mschwendt@gmail.com>
To: packaging@lists.fedoraproject.org
Sent: Thursday, April 12, 2012 3:49 PM
Subject: Re: [Fedora-packaging] Cannot cd to %{name}-%{version}

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}).
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging