Linux Support traditionally package the CERNLIB RPM from the
sources in AFS. These sources are provided by PH/SFT (aka Benedikt Hegner).
Building RPMs is simple, but a few gotcha's prevent us from using the standard
infrastructure. Follow the recipe below, but beware that it may require a few updates...
First, get the sources from the last successful build, and install it:
yumdownloader --source --destdir /tmp CERNLIB && rpm -ivh /tmp/CERNLIB-2006*.src.rpm
In the specfile
~/rpmbuild/SPECS/CERNLIB-binaryonly.spec
you see that the
%prep
section prepares the source files from the AFS area
/afs/cern.ch/sw/lcg/external/cernlib/...
.
This of course only works on machines that have AFS access, ie. it does not work from Koji...
Also, the Cernlib builds for x86_64 have never been properly tested, so we tend to only
provide {i386,i686} RPMs. However, the x86_64 sources are still tarred up, as to allow for
future improvements. This implies that we need both 32bit and 64bit source files in AFS
before we can build.
To build the RPM, simply run
rpmbuild --ba ~/rpmbuild/SPECS/CERNLIB-binaryonly.spec --target i686