Hi there,<br><br>I got many error messages on FC5 fully updated trying to compile tar packages using "rpmbuild -ta tar_package.tar.gz" command.<br><br>I notice that rpmbuild was executing "/bin/tar xOvf - Specfile" and "/bin/tar xOvf - <package_name>.spec" commands to extract .spec files from the tar packages but without success. The rpmbuild command always create "/usr/src/redhat/SPECS/tar\:\ Pattern\ matching\ characters\ used\ in\ file\ names.\ Please\," and "tar\:\ You\ must\ specify\ one\ of\ the\ \`-Acdtrux\'\ options" files in /usr/src/redhat/SPECS directory.
<br><br>I solved this problem adding "-" before tar options and "--wildcards"  to tar command in build.c file. (see attached patch).<br><br>Is this problem a rpmbuild bug? There is a way to fix if without patch / recompile rpm packages?
<br><br>These are the steps to reproduce this problem:<br><br># wget <a href="http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.tar.bz2">http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.tar.bz2</a><br># tar -xjvf 
linux-2.6.18.tar.bz2 -C /usr/src<br># cd /usr/src/linux-2.6.18<br># make oldconfig<br># make rpm<br>make clean<br>set -e; cd ..; ln -sf /usr/src/linux-
2.6.18 kernel-2.6.18<br>set
-e; cd ..; tar -cz --exclude SCCS --exclude BitKeeper --exclude .svn
--exclude CVS --exclude .pc --exclude .hg --exclude .git -f
kernel-2.6.18.tar.gz kernel-2.6.18/*<br>set -e; cd ..; rm kernel-2.6.18
<br>set -e; \<br>/bin/sh /usr/src/linux-2.6.18/scripts/mkversion > /usr/src/linux-2.6.18/.tmp_version<br>set -e; \<br>mv -f /usr/src/linux-2.6.18/.tmp_version /usr/src/linux-2.6.18/.version<br>rpmbuild --target i686 -ta ../kernel-
2.6.18.tar.gz<br>Building target platforms: i686<br>Building for target i686<br>error: Name field must be present in package: (main package)<br>error: Version field must be present in package: (main package)<br>error: Release field must be present in package: (main package)
<br>error: Summary field must be present in package: (main package)<br>error: Group field must be present in package: (main package)<br>error: License field must be present in package: (main package)<br>make[1]: *** [rpm] Error 1
<br>make: *** [rpm] Error 2<br><br>("make rpm" executes "rpmbuild --target i686 -ta ../kernel-
2.6.18.tar.gz")<br><br>thanks,<br>Márcio<br>