File ltp-ima-standalone.spec of Package ltp-ima-standalone

#
# spec file for package ltp-ima-standalone
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


%global  extdir 'ima-tests'
Name:           ltp-ima-standalone
Version:        2
Release:        0
Summary:        IMA Linux Test Project(LTP) test programs
License:        GPL-2.0-only
Group:          System/Base
URL:            http://sourceforge.net/projects/linux-ima/
Source:         https://nchc.dl.sourceforge.net/project/linux-ima/linux-ima/ltp-ima-standalone-v%{version}.tar.gz
Source1:        LICENSE
Patch0:         ltp-ima-standalone-suppress-build-warnings.patch
BuildRequires:  openssl-devel

%description
The IMA test programs included in the LTP testsuite have a number of LTP dependencies. This package contains the necessary tools, includes, defines, and stub function definitions in order to run the IMA programs in a standalone mode.

%prep
%setup -q -n %{extdir}
%patch0 -p1
cp %{SOURCE1} .

%build
make %{?_smp_mflags}

%install
mkdir -p %{buildroot}%{_bindir}
%make_install DESTDIR=%{buildroot}%{_bindir}

%files
%license LICENSE
%doc README
%{_bindir}/ima_boot_aggregate
%{_bindir}/ima_measure
%{_bindir}/ima_mmap

%changelog
openSUSE Build Service is sponsored by