rpmbuild -bb --define "build_userspace 0" --define "build_modules 1" --define "kernvers x.x.x-x" openafs.spec
[root@cc-100-0 redhat]# rpmbuild -bb --define "build_user_space 0" SPECS/openafs.SLx.spec error: Failed build dependencies: flex is needed by openafs.SLx-1.4.7-68.x86_64 kernel-smp-devel = 2.6.9-78.0.1.EL is needed by openafs.SLx-1.4.7-68.x86_64 autoconf is needed by openafs.SLx-1.4.7-68.x86_64 automake is needed by openafs.SLx-1.4.7-68.x86_64 krb5-devel is needed by openafs.SLx-1.4.7-68.x86_64Can also skip installing SRPM step and just do:
rpmbuild --rebuild --target=`uname -m` --define "build_userspace 0" --define "build_modules 1" openafs-1.4.6-1.1_AGLT2.src.rpmProduces /usr/src/redhat/RPMS/x86_64/openafs-kernel-smp-1.4.6-...rpm You should be able to install that rpm (try rpm -i --oldpackage), start the service (service openafs-client start) and see stuff in /afs... -- TomRockwell - 20 Mar 2009