When I try to build the RPM, it bombs out: [root@garfield] /usr/src/redhat/SPECS # rpm -bb libPropList.spec Executing: %prep + umask 022 + cd /usr/src/redhat/BUILD + cd /usr/src/redhat/BUILD + rm -rf libPropList-0.8.3 + /bin/gzip -d + tar -xf - + STATUS=0 + [ 0 -ne 0 ] + cd libPropList-0.8.3 + chown -R root . + chgrp -R root . + chmod -R a+rX,g-w,o-w . + exit 0 Executing: %build + umask 022 + cd /usr/src/redhat/BUILD + cd libPropList-0.8.3 + %configure fg: no job control + make make: *** No targets. Stop. Bad exit status from /var/tmp/rpm-tmp.88865 (%build) Command exited with non-zero status 1 I have to change one line in the spec file in order to make it work. Here's the patch: *** - Mon Apr 19 17:13:34 1999 --- libPropList.spec Mon Apr 19 17:12:35 1999 *************** *** 21,27 **** %setup -q %build ! %configure make %install --- 21,27 ---- %setup -q %build ! ./configure make %install
This is an rpm version problem. Rpm-3.0 uses macros, and the %configure expands to [ -f configure.in ] && libtoolize --copy --force CFLAGS="$RPM_OPT_FLAGS" ./configure $RPM_ARCH-redhat-linux \ --prefix=/usr You probably need to upgrade to rpm-2.9x or add "--prefix=/usr"
If rpm-2.9x is a prerequisite of the SRPM then it should bomb out with meanlingful err msg, when "rpm -i" or "rpm -bb" is run. Especially when the rpm that comes with RH-5.2 and the one found by "rpmfind --sources rpm" is rpm-2.5.6-5.0 and rpm-2.5.5-5.2 only, meaning that's what most ppl are running. Any idea where to d/l SRPM of rpm-2.9x?
ftp://rpm.redhat.com/pub/rpm/dist/rpm-3.0.x.