From d7792413a0dee472c9584669c3572204a186a045 Mon Sep 17 00:00:00 2001 From: James Laska Date: Tue, 21 Oct 2014 15:50:24 -0400 Subject: [PATCH] Allow specifying RPM_DIST when running Makefile Fixes an issue where the system running make isn't the desired %{dist} target (e.g. building el7 packages on an el6 system). --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 762f23a360..e73b39a89b 100644 --- a/Makefile +++ b/Makefile @@ -55,7 +55,7 @@ DEB_PPA ?= reprepro # RPM build parameters RPM_SPECDIR= packaging/rpm RPM_SPEC = $(RPM_SPECDIR)/$(NAME).spec -RPM_DIST = $(shell rpm --eval '%{?dist}' 2>/dev/null) +RPM_DIST ?= $(shell rpm --eval '%{?dist}' 2>/dev/null) ifeq ($(OFFICIAL),yes) RPM_RELEASE = $(RELEASE) else