From 9ed67357bcbea6ea3b8cd1f026638519b95cf5ad Mon Sep 17 00:00:00 2001 From: cvsdist Date: Thu, 9 Sep 2004 02:56:58 +0000 Subject: [PATCH] auto-import changelog data from amtu-0.1-2RHEL.src.rpm Wed May 26 2004 ccb 0.1-2RHEL - move docs to a version-qualified directory name Sat May 01 2004 root - Initial build. --- .cvsignore | 1 + amtu.spec | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 68 insertions(+) create mode 100644 amtu.spec diff --git a/.cvsignore b/.cvsignore index e69de29..1f7b6cb 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +amtu-0.1.tar.gz diff --git a/amtu.spec b/amtu.spec new file mode 100644 index 0000000..ee9ac84 --- /dev/null +++ b/amtu.spec @@ -0,0 +1,66 @@ +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 0.1-2RHEL +- move docs to a version-qualified directory name +* Sat May 1 2004 root +- Initial build. + diff --git a/sources b/sources index e69de29..2dc2adf 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b0aa74ad4d0b20ac381fb278f1bbc1f6 amtu-0.1.tar.gz