Some notes, primarily for myself, of the steps required to build an OpenAFS release for Fedora / RHEL …
- Get the openafs-rel-src.tar.bz2 openafs-rel-doc.tar.bz2 Changelog and RELNOTES files from the release volume
- Touch empty versions of Changelog and RELNOTES if they aren’t available upstream.
- Extract makesrpm.pl and mockbuild.pl from openafs-rel-src.tar.bz2 with tar -xvjf openafs-rel-src.tar.bz2 \*makesrpm.pl \*mockbuild.pl and copy them to somewhere useful
- Build the SRPM with makesrpm.pl openafs-rel-src.tar.bz2 openafs-rel-doc.tar.bz2 RELNOTES ChangeLog
- Check that the RPM builds on the local system
- Set up the http proxy for the mock build, if required: export http_proxy=http://localhost:3128
- Run the build: ./mockbuild.pl --resultdir=/path/to/output/rpms centos-5-x86_64 centos-5-i386 fedora-8-x86_64 fedora-8-i386 centos-4-x86_64 centos-4-i386 fedora-7-x86_64 fedora-7-i386 fedora-6-x86_64 fedora-6-i386 fedora-5-x86_64 fedora-5-i386 openafs-rel.src.rpm
- Wait …