Added RPM and TAR building rules
[platform/upstream/ima-evm-utils.git] / evm-utils.spec.in
1 Name:           @PACKAGE_NAME@
2 Version:        @PACKAGE_VERSION@
3 Release:        1%{?dist}
4 Summary:        evm-utils - IMA/EVM support utilities
5 Group:          System/Libraries
6 License:        LGPLv2
7 #URL:           
8 Source0:        %{name}-%{version}.tar.gz
9 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
10
11 BuildRequires:    autoconf
12 BuildRequires:    automake
13 BuildRequires:    openssl-devel
14 BuildRequires:    libattr-devel
15 BuildRequires:    readline-devel
16 BuildRequires:    keyutils-libs-devel
17
18 %description
19 This package provide IMA/EVM control utility
20
21 %prep
22 %setup -q
23
24 %build
25 ./autogen.sh
26 %configure --prefix=/usr
27 make
28
29 %install
30 rm -rf %{buildroot}
31 make DESTDIR=%{buildroot} install
32
33 %clean
34 rm -rf %{buildroot}
35
36 %post
37 /sbin/ldconfig
38 exit 0
39
40 %preun -p /sbin/ldconfig
41
42 %postun
43 /sbin/ldconfig
44
45 %files
46 %defattr(-,root,root,-)
47 %{_bindir}/*
48 %{_libdir}/*
49
50 %changelog
51 * Wed Jul 20 2011 Dmitry Kasatkin <dmitry.kasatkin@intel.com>
52 - Initial package for MeeGo
53