[PATCH 6/6] kexec-tools: Use default rpmbuild definations

Ameya Palande 2ameya at gmail.com
Thu Mar 18 16:03:24 EDT 2010


Since current mechanism for building rpm into custom directory is not working,
remove it and switch to system defaults for rpmbuild.

Signed-off-by: Ameya Palande <ameya.palande at nokia.com>
---
 Makefile.in |   16 +++-------------
 1 files changed, 3 insertions(+), 13 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 256f4de..cc4f8d3 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -200,19 +200,9 @@ $(TARBALL): $(SRCS) $(GENERATED_SRCS)
 $(TARBALL.gz): $(TARBALL)
 	gzip -c < $^ > $@
 
-RPMDIR=rpm
 rpm: $(TARBALL.gz)
-	$(MKDIR) -p $(RPMDIR)/RPM $(RPMDIR)/SRPM $(RPMDIR)/BUILD \
-		$(RPMDIR)/SPECS $(RPMDIR)/TMP $(RPMDIR)/SOURCES
-	unset MAKEFLAGS MAKELEVEL; \
-	$(RPMBUILD) -ta \
-		--define '_rpmdir $(RPMDIR)/RPM' \
-		--define '_srcrpmdir $(RPMDIR)/SRPM' \
-		--define '_builddir $(RPMDIR)/BUILD' \
-		--define '_specdir $(RPMDIR)/SPECS' \
-		--define '_tmppath $(RPMDIR)/TMP' \
-		--define '_sourcedir $(RPMDIR)/SOURCES' \
-		$(TARBALL.gz)
+	unset MAKEFLAGS MAKELEVEL;
+	$(RPMBUILD) -ta $(TARBALL.gz)
 
 $(SPEC): kexec-tools.spec.in Makefile
 	$(SED) -e 's,^Version: $$,Version: $(PACKAGE_VERSION),' $< > $@
@@ -227,7 +217,7 @@ echo::
 
 clean:
 	$(RM) -f $(clean)
-	$(RM) -rf rpm build
+	$(RM) -rf build
 	$(RM) -f $(TARBALL) $(TARBALL.gz)
 
 distclean: dist-clean
-- 
1.6.3.3




More information about the kexec mailing list