File amtu.spec of Package amtu

# spec file for package amtu
# Copyright (c) 2012 SUSE LINUX Products 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

Name:           amtu
License:        CPL-1.0
Group:          Productivity/Security
Requires:       audit >= 1.2.9
Version:        1.0.8
Release:        0
Summary:        Abstract Machine Test Utility
Source:         %{name}-%{version}.tar.gz
Patch0:         amtu-1.0.8_memsep_fclose_bnc523353.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  audit
BuildRequires:  audit-devel
BuildRequires:  audit-libs
ExclusiveArch:  %ix86 x86_64 ia64 ppc ppc64 s390 s390x

Abstract Machine Test Utility (AMTU) is an administrative utility to
check whether the underlying protection mechanism of the hardware is
still being enforced. This is a requirement of the Controlled Access
Protection Profile (CAPP) FTP_AMT.1. See

%setup -q amtu
%patch0 -p1

export CC CFLAGS
  ./configure                           \
	--prefix=/usr			\
	--bindir=/usr/sbin		\
  make %{?_smp_mflags}

#  rm -rf %{_defaultdocdir}/amtu
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/amtu
make DESTDIR=$RPM_BUILD_ROOT install-strip
install -m 644 doc/amtu.8    $RPM_BUILD_ROOT/%{_mandir}/man8/amtu.8

%doc %attr(444,root,root) %{_mandir}/man8/amtu.8*
%doc %attr(755,root,root) %{_defaultdocdir}/amtu

openSUSE Build Service is sponsored by