From f637b184df27beef7cc562e358b83baacf8efced Mon Sep 17 00:00:00 2001 From: David Aspinall Date: Thu, 1 Jul 1999 18:46:11 +0000 Subject: Fix rpm building for 3.0.1 version of RPM. --- Makefile.devel | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile.devel b/Makefile.devel index e5b9a3e7..27fa7a86 100644 --- a/Makefile.devel +++ b/Makefile.devel @@ -112,8 +112,12 @@ DISTBUILDIR = /tmp/ProofGeneralRelease # Temporary RPM topdir for building packages as non-root user. RPMTOPDIR=/tmp/ProofGeneral-rpm -RPMRC=$(RPMTOPDIR)/rpmrc -RPM=rpm --rcfile $(RPMRC) +# rpm 3.0 has changed rc file beyond recognition. +# now wants a macro file included and stuck in ~/.rpmmacros. +# Alternative is to use --define from command line. +# RPMRC=$(RPMTOPDIR)/rpmrc +# RPM=rpm --rcfile $(RPMRC) +RPM=rpm --define '_topdir $(RPMTOPDIR)' RELEASENAMETAR = $(RELEASENAME).tar RELEASENAMETARGZ = $(RELEASENAMETAR).gz @@ -348,9 +352,8 @@ release: distclean tag dist develdist ## ## rpm: - rm -rf $(RPMTOPDIR) +# rm -rf $(RPMTOPDIR) mkdir -p $(RPMTOPDIR) $(RPMTOPDIR)/BUILD $(RPMTOPDIR)/SOURCES $(RPMTOPDIR)/SRPMS $(RPMTOPDIR)/RPMS $(RPMTOPDIR)/RPMS/noarch - echo "_topdir: $(RPMTOPDIR)" > $(RPMRC) cp -p etc/ProofGeneral.patch $(RPMTOPDIR)/SOURCES cp -p $(DISTBUILDIR)/$(RELEASENAMETARGZ) $(RPMTOPDIR)/SOURCES $(RPM) -ba etc/ProofGeneral.spec -- cgit v1.2.3