build: Add rpm target

Add a top-level makefile target to build RPMs for Red Hat distributions
from the currently checked out commit. The resulting rpms are placed in
the packages/rpmbuild/RPMS/<arch> directory.

The rpm target is intended to be a convenience for testing changes to
the rpm packaging or generating packages for local testing.

Change-Id: Id951eb2b03629be59f6258e89e8356fe1fde1ff5
Reviewed-on: https://gerrit.openafs.org/14114
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
This commit is contained in:
Michael Meffie 2020-08-24 13:12:13 -04:00 committed by Benjamin Kaduk
parent 7cc6b97ad2
commit 8b68f1a4e1

View File

@ -788,6 +788,10 @@ srpm: dist
packages/openafs-*-src.tar.bz2 \
packages/openafs-*-doc.tar.bz2
rpm: srpm
rpmbuild --rebuild --define "_topdir @TOP_OBJDIR@/packages/rpmbuild" \
packages/openafs-*.src.rpm
dox:
if test "x$(DOXYGEN)" != "x"; then \
mkdir -p doc/doxygen/output && $(DOXYGEN) doc/doxygen/Doxyfile; \