From: Dmitry Kasatkin Date: Thu, 5 Apr 2012 12:24:01 +0000 (+0300) Subject: Added RPM and TAR building rules X-Git-Tag: v0.2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc36ed86d32c808105861b6bba9a545b1c4f9e8f;p=platform%2Fupstream%2Fima-evm-utils.git Added RPM and TAR building rules Signed-off-by: Dmitry Kasatkin --- diff --git a/Makefile.am b/Makefile.am index 3cb36a9..11671b5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,3 +4,20 @@ SUBDIRS = src tests ACLOCAL_AMFLAGS = -I m4 +SRCS = $(HOME)/rpmbuild/SOURCES +SPEC = $(PACKAGE_NAME).spec + +pkgname = $(PACKAGE_NAME)-$(PACKAGE_VERSION) +tarname = $(pkgname).tar.gz + +$(tarname): + git tag -f v$(PACKAGE_VERSION) + git archive --format=tar --prefix=$(pkgname)/ v$(PACKAGE_VERSION) $(FILES) | gzip >$@; + +tar: $(tarname) + +rpm: $(tarname) + cp $(tarname) $(SRCS)/ + rpmbuild -ba --nodeps $(SPEC) + +.PHONY: $(tarname) diff --git a/evm-utils.spec.in b/evm-utils.spec.in index 343ba9f..65c3fb6 100644 --- a/evm-utils.spec.in +++ b/evm-utils.spec.in @@ -16,7 +16,7 @@ BuildRequires: readline-devel BuildRequires: keyutils-libs-devel %description -This library provides EVM support utilities. +This package provide IMA/EVM control utility %prep %setup -q