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.
66 lines
1.7 KiB
RPMSpec
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.
|
|
|