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/ima-evm-utils.spec.in b/ima-evm-utils.spec.in index c0841ae..97df954 100644 --- a/ima-evm-utils.spec.in +++ b/ima-evm-utils.spec.in @@ -15,7 +15,7 @@ BuildRequires: libattr-devel BuildRequires: keyutils-libs-devel %description -This library provides EVM support utilities. +This package provide IMA/EVM control utility %prep %setup -q