This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
amtu/amtu.spec
2005-06-08 22:14:22 +00:00

91 lines
2.6 KiB
RPMSpec

Summary: Abstract Machine Test Utility (AMTU)
Name: amtu
Version: 1.0
Release: EL4.2
License: Common Public License
Group: Productivity/Security
Source0: %{name}-%{version}.tar.gz
Patch1: amtu-autoconf.patch
Patch2: amtu-ia64.patch
Patch3: amtu-memsep.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: audit-libs-devel
Requires: audit
# Red Hat AMTU SPEC file
%description
Abstract Machine Test Utility (AMTU) is an administrative utility to check
whether the underlying protection mechanism of the hardware are still being
enforced. This is a requirement of the Controlled Access Protection Profile
FPT_AMT.1, see
http://www.radium.ncsc.mil/tpep/library/protection_profiles/CAPP-1.d.pdf
%prep
%setup
%patch1 -p1 -b .auto
%patch2 -p1 -b .ia64
# The next patch is dropped unless someone has a good reason for it. -sg
#%patch3 -p1 -b .memsep
%build
# Determine appropriate compiler
CC="gcc"
%ifarch ppc64 ppc64iseries ppc64pseries
CC="/usr/bin/ppc64-redhat-linux-gcc"
%endif
# Determine appropriate compiler flags
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -Wall -pipe"
%ifarch x86_64
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -Wall -pipe -m64"
%endif
export CC CFLAGS
# next 3 items is to quieten autoreconf
touch ChangeLog
touch NEWS
touch AUTHORS
autoreconf -fv --install
./configure --prefix=/usr --bindir=%{_bindir} --mandir=%{_mandir}
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
install -m 0750 src/amtu $RPM_BUILD_ROOT/%{_bindir}
mv doc/AMTUHowTo.txt .
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8/
install -m 644 doc/amtu.8 $RPM_BUILD_ROOT/%{_mandir}/man8/amtu.8
%clean
make clean
%files
%defattr(-,root,root)
%doc AMTUHowTo.txt COPYING
%attr(0750,root,root) %{_bindir}/amtu
%attr(0644,root,root) %{_mandir}/man8/*
%changelog
* Wed Jun 8 2005 Steve Grubb <sgrubb@redhat.com> 1.0-EL4.2
- add a few more include "config.h"
* Fri May 27 2005 Steve Grubb <sgrubb@redhat.com> 1.0-EL4.1
- New upstream version from IBM
- Drop memsep patch
- Rework specfile
* Thu Sep 2 2004 root <ccb@redhat.com> 0.1-7RHEL
- integrate memsep patch from Matt Anderson at HP
* Mon Aug 16 2004 root <ccb@redhat.com> 0.1-6RHEL
- Integrate ia64 patches from HP's Matt Anderson, enabling use on ia64
* Tue Jun 29 2004 root <ccb@redhat.com> 0.1-4RHEL
- fix /usr/bin/amtu modes for real this time
* Tue Jun 29 2004 root <ccb@redhat.com> 0.1-4RHEL
- set execute bits on /usr/bin/amtu
* Fri May 28 2004 ccb <ccb@redhat.com> 0.1-3RHEL
- fixed owners and permissions in %files
* Wed May 26 2004 ccb <ccb@redhat.com> 0.1-2RHEL
- move docs to a version-qualified directory name
* Sat May 1 2004 root <chavezt@cs679156-153.austin.rr.com>
- Initial build.