SOLVED: rpmbuild -ba builds source but not binary RPM

Josh Miller <[email protected]>
Newsgroups gmane.linux.redhat.rpm.general
Message-ID <[email protected]>
Josh Miller wrote:
> I have an issue where I build an RPM using 'rpmbuild -ba <spec file>'
> and it builds the packages and writes a source RPM, but there are no
> binaries written out and no errors.  Any idea what would cause this?  I
> also tried with rpmbuild -bb with no luck.
>   
It turns out that the problem with my SPEC file was that I had an errant 
% that was not doing anything constructive.

ie:
install -d %(buildroot}/usr/share/%{pkg_name}

which should have been:

install -d %{buildroot}/usr/share/%{pkg_name}

Note that in the first line, there is a '(' just after the '%'.  This 
caused the build to bail on the install portion of the build.  I caught 
this after reviewing the Fedora RPM guide and seeing a note about errant 
percent signs.

Regards,

-- 
Joshua M. Miller - RHCE,VCP
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.