mirror of
https://github.com/ansible/awx.git
synced 2024-10-27 09:25:10 +03:00
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).
This commit is contained in:
parent
012a83d37f
commit
d7792413a0
2
Makefile
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user