I have a build script which sets CC for make as "${BUILD}-gcc", however rpmbuild sends wrong --build string to configure so, the compiler cannot be executed: Provádění(%build): /bin/sh -e /var/tmp/rpm-tmp.pqkluz + umask 022 + cd /home/petr/rpmbuild/BUILD + cd asekey-3.7 + LANG=C + export LANG + unset DISPLAY + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FFLAGS + LDFLAGS='-Wl,-z,relro ' + export LDFLAGS + ./configure --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-udev-rules-dir=/usr/lib/udev/rules.d + make -j5 x86_64-unknown-linux-gnu-gcc -o libASEKey.so usb.c atr.c DriverIO.c CommandTypes.c ReaderCommands.c T1Protocol.c MemoryCards.c InitCardParams.c ifdhandler.c -fPIC -D_REENTRANT -DIFDHANDLERv2 -Wall -I. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -pthread -I/usr/include/PCSC -Wl,-z,relro -lpcsclite -lusb -shared make: x86_64-unknown-linux-gnu-gcc: Command not found make: *** [libASEKey.so] Error 127 This is because rpmbuild stated x86_64-unknown-linux-gnu, but gcc is named x86_64-redhat-linux. $ rpm -qf /usr/bin/rpmbuild --qf '%{SOURCERPM}\n' rpm-4.9.1.3-7.fc17.src.rpm See similar RHEL-6 bug #743229 where this has been recognized as a bug.
rpm-4.9.1.3-8.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/rpm-4.9.1.3-8.fc17
Package rpm-4.9.1.3-8.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing rpm-4.9.1.3-8.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-4488/rpm-4.9.1.3-8.fc17 then log in and leave karma (feedback).
rpm-4.9.1.3-8.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.