Hi Ahmed you probably want: %install install -D -m 755 obj/ggsnc/ggsnc $RPM_BUILD_ROOT%{_bindir}/ %files %{_bindir}/ggsnc Best regards Michal Ambroz < ------------ Původní zpráva ------------ < Od: Kamal Ahmed <kamal2222ahmed@xxxxxxxxx> < Předmět: Re: error: Package already exists: %package < debuginfo < Datum: 15.4.2012 22:56:13 < ---------------------------------------- < I have looked everywhere and still cannot find any example of SPEC which < installs the binary files created as a result of Make. < ( if the Makefile is missing the install section ) < < < so here is what i have from a tutorial. < < Name: foo ... BuildRoot: /tmp/%{name} %prep ... %build ... %install install < -m755 $RPM_BUILD_ROOT/obj/ggsnc/ggsnc %{_bindir}/ %files /usr/bin/ggsnc < < but i get error: < < + umask 022 < + cd /home/kahmed/rpmbuild/BUILD < + cd pcore < + LANG=C < + export LANG < + unset DISPLAY < + install -m755 /tmp/pcore/obj/ggsnc/ggsnc /usr/bin/ < install: cannot stat `/tmp/pcore/obj/ggsnc/ggsnc': No such file or directory < error: Bad exit status from /var/tmp/rpm-tmp.93457 (%install) < < < now ALL i want to do is to copy < /home/kahmed/rpmbuild/BUILD/pcore/obj/ggsnc/ggsnc to /usr/bin < in a root simulated environment. < < Now all the examples i am looking at use makefile install, or automake, so i < cannot reverse engineer. < < Thanks, < -Kamal. < < < >________________________________ < > From: Michael Schwendt <mschwendt@xxxxxxxxx> < >To: packaging@xxxxxxxxxxxxxxxxxxxxxxx < >Sent: Saturday, April 14, 2012 6:45 AM < >Subject: Re: error: Package already exists: %package < debuginfo < > < >On Fri, 13 Apr 2012 14:47:33 -0700 (PDT), KA (Kamal) wrote: < > < >> ok removed the macro from .rpmmacros < >> < >> i think the error was because i had comment < >> < >> #This ... < >> in the %install section < >> < >> since i did NOT have any < >> < >> %package debuginfo < >> < >> hence i deduce that < > < >A comment within the %install section does not cause an error like that, < >but be careful with RPM macros in comments. They are expanded, too, and < >can lead to unexpected results/errors. < > < >A full .spec file is easier to review than just an error message without < >any context. ;-) < >-- < >packaging mailing list < >packaging@xxxxxxxxxxxxxxxxxxxxxxx < >https://admin.fedoraproject.org/mailman/listinfo/packaging < > < > < < -- packaging mailing list packaging@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/packaging