Added RPM and TAR building rules
Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
This commit is contained in:
parent
de89119dbf
commit
dc36ed86d3
17
Makefile.am
17
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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user