<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:10pt">Hi,<br><br>I am using the following spec file <br><br>Summary: pcore binary<br>Name: pcore<br>Version: 0.1<br>Release: Beta<br>Epoch: 0<br>License: Commercial<br>Group: Applications/Telecommunications<br>Packager: Kamal Ahmed &lt;kamal.ahmed@unleashbts.com&gt;<br>URL: http://pcore.bts.md/<br>Source: pcore-0.1.tar.gz<br>BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root<br><br>%description<br>ElementalCORE<br><br>%prep<br>%setup -qn pcore<br><br>%build<br>%{__make}<br><br>%install<br>mkdir -p %{name}<br>mkdir -p %{_bindir}<br>install -d %{name}<br><br>%clean<br><br>%files<br>%defattr(-,root,root)<br>%doc NEWS<br><br><br>But when running rpmbuild -dd pcore.spec , i get error:<br><br>Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.32035<br>+ umask 022<br>+ cd /home/kahmed/rpmbuild/BUILD<br>+ cd pcore<br>+ LANG=C<br>+ export LANG<br>+
 unset DISPLAY<br>+ mkdir -p pcore<br>+ mkdir -p /usr/bin<br>+ install -d pcore<br>+ /usr/lib/rpm/find-debuginfo.sh /home/kahmed/rpmbuild/BUILD/pcore<br>find: /var/tmp/pcore-0.1-Beta-root: No such file or directory<br>error: Bad exit status from /var/tmp/rpm-tmp.32035 (%install)<br><br>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.<br>What i am trying to do is to copy the binary executables, when get created as a result of make to /usr/bin<br>( so i think that this /usr/bin would also be in the temp area and not on the actual /usr/bin) right ?<br><br></div></body></html>