summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJames Cammarata <jimi@sngx.net>2013-06-26 14:10:17 +0200
committerJames Cammarata <jimi@sngx.net>2013-06-26 14:10:17 +0200
commitc649aedc8bc432cf913a3377bafea87ab79edf2c (patch)
tree1864e198455526d85e13a02d58485895fd4704a9 /Makefile
parentChange for RPM packaging to allow daily dev builds (diff)
downloadawx-c649aedc8bc432cf913a3377bafea87ab79edf2c.tar.xz
awx-c649aedc8bc432cf913a3377bafea87ab79edf2c.zip
Minor change to fix an issue with official rpm builds
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 6bc8dfecb5..d93e3320c8 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ DEB_PKG_RELEASE=$(VERSION)-$(BUILD)
else
BUILD=
SDIST_TAR_FILE=awx-$(VERSION).tar.gz
-RPM_PKG_RELEASE=
+RPM_PKG_RELEASE=$(RELEASE)
DEB_BUILD_DIR=deb-build/awx-$(VERSION)
DEB_PKG_RELEASE=$(VERSION)-$(RELEASE)
endif
@@ -137,9 +137,11 @@ sdist: clean
fi
rpmtar: sdist
- (cd dist/ && tar zxf $(SDIST_TAR_FILE))
- (cd dist/ && mv awx-$(VERSION)-$(BUILD) awx-$(VERSION))
- (cd dist/ && tar czf awx-$(VERSION).tar.gz awx-$(VERSION))
+ if [ "$(OFFICIAL)" != "yes" ] ; then \
+ (cd dist/ && tar zxf $(SDIST_TAR_FILE)) ; \
+ (cd dist/ && mv awx-$(VERSION)-$(BUILD) awx-$(VERSION)) ; \
+ (cd dist/ && tar czf awx-$(VERSION).tar.gz awx-$(VERSION)) ; \
+ fi
rpm: rpmtar
@mkdir -p rpm-build
@@ -151,7 +153,7 @@ rpm: rpmtar
--define "_specdir %{_topdir}" \
--define '_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' \
--define "_sourcedir %{_topdir}" \
- --define "_pkgrelease $(BUILD)" \
+ --define "_pkgrelease $(RPM_PKG_RELEASE)" \
-ba packaging/rpm/awx.spec
deb: sdist