From a50282c70fb8b7acc69787e4ecfd15b95bc25dcf Mon Sep 17 00:00:00 2001 From: Michael Meffie Date: Mon, 24 Aug 2020 13:12:13 -0400 Subject: [PATCH] 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/ directory. The rpm target is intended to be a convenience for testing changes to the rpm packaging or generating packages for local testing. Reviewed-on: https://gerrit.openafs.org/14114 Reviewed-by: Andrew Deason Reviewed-by: Cheyenne Wills Reviewed-by: Benjamin Kaduk Tested-by: BuildBot (cherry picked from commit 8b68f1a4e1e3ae06de0d6c5a8af60ef99cacb83a) Change-Id: I31fcd579d9610303cb44b4813ecaf8dd00e09e7e Reviewed-on: https://gerrit.openafs.org/15514 Tested-by: BuildBot Reviewed-by: Michael Meffie Reviewed-by: Mark Vitale Reviewed-by: Stephan Wiesand --- Makefile.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile.in b/Makefile.in index a37c5c8a6e..57a11233f5 100644 --- a/Makefile.in +++ b/Makefile.in @@ -766,6 +766,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; \