<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:10pt"><div><span>I have looked everywhere and still cannot find any example of SPEC which installs the binary files created as a result of Make.</span></div><div><span>( if the Makefile is missing the install section ) <br></span></div><div><span><br></span></div><div><span>so here is what i have from a tutorial.</span></div><div><br><span></span></div><pre class="fragment">Name: foo
  ...
  BuildRoot: /tmp/%{name}
  
  %prep
  ...
  
  %build
  ...
  
  %install
  install -m755 $RPM_BUILD_ROOT/obj/ggsnc/ggsnc %{_bindir}/
  
  %files
  /usr/bin/ggsnc
<br><br>but i get error:<br><br>+ umask 022<br>+ cd /home/kahmed/rpmbuild/BUILD<br>+ cd pcore<br>+ LANG=C<br>+ export LANG<br>+ unset DISPLAY<br>+ install -m755 /tmp/pcore/obj/ggsnc/ggsnc /usr/bin/<br>install: cannot stat `/tmp/pcore/obj/ggsnc/ggsnc': No such file or directory<br>error: Bad exit status from /var/tmp/rpm-tmp.93457 (%install)<br><br></pre><div>now ALL i want to do is to copy /home/kahmed/rpmbuild/BUILD/pcore/obj/ggsnc/ggsnc to /usr/bin</div><div>in a root simulated environment.</div><div><br></div><div>Now all the examples i am looking at use makefile install, or automake, so i cannot reverse engineer.</div><div><br></div><div>Thanks,</div><div>-Kamal.<br></div>
<div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: verdana, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Michael Schwendt &lt;mschwendt@gmail.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> packaging@lists.fedoraproject.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Saturday, April 14, 2012 6:45 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Fedora-packaging] error: Package already exists: %package debuginfo<br> </font> </div> <br>
On Fri, 13 Apr 2012 14:47:33 -0700 (PDT), KA (Kamal) wrote:<br><br>&gt; ok removed the macro from .rpmmacros<br>&gt; <br>&gt; i think the error was because i had comment <br>&gt; <br>&gt; #This ...<br>&gt; in the %install section<br>&gt; <br>&gt; since i did NOT have any <br>&gt; <br>&gt; %package debuginfo<br>&gt; <br>&gt; hence i deduce that <br><br>A comment within the %install section does not cause an error like that,<br>but be careful with RPM macros in comments. They are expanded, too, and<br>can lead to unexpected results/errors.<br><br>A full .spec file is easier to review than just an error message without<br>any context. ;-)<br>--<br>packaging mailing list<br><a ymailto="mailto:packaging@lists.fedoraproject.org" href="mailto:packaging@lists.fedoraproject.org">packaging@lists.fedoraproject.org</a><br><a href="https://admin.fedoraproject.org/mailman/listinfo/packaging"
 target="_blank">https://admin.fedoraproject.org/mailman/listinfo/packaging</a><br><br> </div> </div> </blockquote></div>   </div></body></html>