diff options
author | Georg Kunz <georg.kunz@ericsson.com> | 2016-12-02 15:57:04 +0100 |
---|---|---|
committer | Georg Kunz <georg.kunz@ericsson.com> | 2016-12-02 16:25:35 +0100 |
commit | c62b63e6f4b2560dcc673206faee74706fd9e7bc (patch) | |
tree | c44b2286faed9585cc3e14b619a69a07d3f342ab /build/Makefile | |
parent | 556447538dbf4033076d05b9e8db99a84769a4cd (diff) |
Makefile and RPM spec file for building gluon RPMs
Change-Id: I937958f6a9776c6e68e938482492d353204ffc43
Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
Diffstat (limited to 'build/Makefile')
-rw-r--r-- | build/Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/build/Makefile b/build/Makefile new file mode 100644 index 0000000..9e5e8dd --- /dev/null +++ b/build/Makefile @@ -0,0 +1,33 @@ +GLUON_REPO=https://github.com/openstack/gluon.git +GLUON_BRANCH=master +GLUON_VER=0.0.1 +GLUON_TAR=gluon.tar.gz +GLUON_RPM=noarch/gluon-$(GLUON_VER)-1.noarch.rpm + +.PHONY: all + +all: gluon + +.PHONY: gluon +gluon: $(GLUON_RPM) + +.PHONY: clean +clean: clean-gluon + +.PHONY: clean-gluon +clean-gluon: + rm -rf BUILDROOT + rm -rf noarch + rm -f $(GLUON_TAR) + rm -f openstack-proton-server.service + rm -f proton.conf + rm -rf gluon-$(GLUON_VER) + +$(GLUON_TAR): + @echo cloning Gluon git repo + git clone $(GLUON_REPO) -b $(GLUON_BRANCH) gluon-$(GLUON_VER) + tar czf gluon.tar.gz gluon-$(GLUON_VER) + +$(GLUON_RPM): $(GLUON_TAR) + @echo building Gluon RPM + rpmbuild --clean -bb --target noarch rpm_specs/gluon.spec -D '_topdir %(echo `pwd`)' -D '_builddir %(echo `pwd`)' -D '_sourcedir %(echo `pwd`)' -D %'_rpmdir %(echo `pwd`)' -D '_specdir %(echo `pwd`)' -D '_srcrpmdir %(echo `pwd`)' |