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
cvsdist 9ed67357bc auto-import changelog data from amtu-0.1-2RHEL.src.rpm
Wed May 26 2004 ccb <ccb@redhat.com> 0.1-2RHEL
- move docs to a version-qualified directory name
Sat May 01 2004 root <chavezt@cs679156-153.austin.rr.com>
- Initial build.
2004-09-09 02:56:58 +00:00

66 lines
1.7 KiB
RPMSpec

Name: amtu
Version: 0.1
Release: 2RHEL
Autoreqprov: on
Summary: Abstract Machine Test Utility (AMTU)
License: Common Public License
Group: Productivity/Security
Requires: laus-libs
Source0: %{name}-%{version}.tar.gz
Excludearch: ia64
# 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
FTP_AMT.1, see
http://www.radium.ncsc.mil/tpep/library/protection_profiles/CAPP-1.d.pdf
%prep
%setup -n amtu
%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
autoheader || true
autoreconf --install
./configure \
--prefix=/usr \
--bindir=/usr/bin \
--mandir=%{_mandir}
make
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/amtu-%{version}
make DESTDIR=$RPM_BUILD_ROOT install-strip
gzip doc/amtu.8
install -m 644 doc/AMTUHowTo.txt $RPM_BUILD_ROOT/%{_defaultdocdir}/amtu-%{version}/AMTUHowTo.txt
install -m 644 doc/amtu.8.gz $RPM_BUILD_ROOT/%{_mandir}/man8/amtu.8.gz
%clean
make clean
%files
/usr/bin/amtu
%doc %{_mandir}/man8/amtu.8.gz
%doc %{_defaultdocdir}/amtu-%{version}/AMTUHowTo.txt
%changelog
* 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.