update gerrit list
[openafs-wiki.git] / devel / HowToBuildOpenAfsRpmPackages.mdwn
1 # Building RPM packages for OpenAFS
2
3 The OpenAFS source tree contains an RPM spec file for building RPM packages.
4 Recent versions of OpenAFS have makefile targets to build the source
5 distribution tarballs and a source RPM package (srpm). After creating these
6 files, run the `rpmbuild` tool to create create the binary RPM packages.
7
8 The following commands show how to build RPM packages from a git checkout.  The
9 tools will create RPM packages from annotated git tags. Checkout a tag for the
10 desired version, then generated the source rpm, then run rpmbuild to build the
11 binaries RPM package files.
12
13     $ git clone git://git.openafs.org/openafs.git
14     $ cd openafs
15     $ git checkout <tag>
16     $ ./regen.sh
17     $ ./configure  # no configure options required
18     $ make dist
19     $ make srpm
20     $ rpmbuild --rebuild -ba --define "_topdir $(pwd)/packages/rpmbuild" packages/<name>.src.rpm
21
22 The packages will be created in the `packages/rpmbuild/RPMS` directory.  See
23 the RPM spec file in src/packaging/RedHat for `--define` options for optional
24 features and packages.