Hi,

I am using the following spec file

Summary: pcore binary
Name: pcore
Version: 0.1
Release: Beta
Epoch: 0
License: Commercial
Group: Applications/Telecommunications
Packager: Kamal Ahmed <kamal.ahmed@unleashbts.com>
URL: http://pcore.bts.md/
Source: pcore-0.1.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
ElementalCORE

%prep
%setup -qn pcore

%build
%{__make}

%install
mkdir -p %{name}
mkdir -p %{_bindir}
install -d %{name}

%clean

%files
%defattr(-,root,root)
%doc NEWS


But when running rpmbuild -dd pcore.spec , i get error:

Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.32035
+ umask 022
+ cd /home/kahmed/rpmbuild/BUILD
+ cd pcore
+ LANG=C
+ export LANG
+ unset DISPLAY
+ mkdir -p pcore
+ mkdir -p /usr/bin
+ install -d pcore
+ /usr/lib/rpm/find-debuginfo.sh /home/kahmed/rpmbuild/BUILD/pcore
find: /var/tmp/pcore-0.1-Beta-root: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.32035 (%install)

Now from what i understand the "BUILD" Happens in a TEMP area, or any place that the user has permissions to create directories and files.
What i am trying to do is to copy the binary executables, when get created as a result of make to /usr/bin
( so i think that this /usr/bin would also be in the temp area and not on the actual /usr/bin) right ?