File trustedgrub.spec of Package trustedgrub
#
# spec file for package tpm-tools (Version 1.1.0)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org
#
# norootforbuild
%define srcname TrustedGRUB
#BuildRequires:
Name: trustedgrub
URL: http://sourceforge.net/projects/trustedgrub/
License: GPLv2
Group: Productivity/Security
Autoreqprov: on
Version: 1.1.0
Release: 0.1
Summary: Trusted Grub Bootloader
Source0: %{srcname}-%version.tgz
Source1: default
Source2: README.tGRUB
Source3: ChangeLog.tGRUB
Patch0: %{srcname}-1.1.2-gcc4.patch
Patch1: %{srcname}-%{version}-build.patch
Patch2: trustedgrub-buildid-fix
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
TrustedGRUB extends the GRUB bootloader with TCG support. This makes it
possible to provide a secure bootstrap architecture. The whole boot
process is measured and - by support of a Trusted Platform Module (TPM)
- the system integrity is verifyable.
%prep
%setup -n %{srcname}-%{version}
%patch0 -p1
%patch1 -p0
%patch2 -p1
%build
aclocal
autoconf
automake
./configure CFLAGS="-DSHOW_SHA1 -m32" --prefix=/usr
gcc util/create_sha1.c -o util/create_sha1
gcc util/verify_pcr.c -o util/verify_pcr
make
chmod g+w * -R
chmod a+x util/grub-install
%install
%makeinstall
%pre
%post
mkdir -p /boot/grub
cp -p /usr/lib/grub/*/*stage* /boot/grub/.
%postun
%files
%defattr(-,root,root)
#%doc %{SOURCE2}
#%doc %{SOURCE3}
%{_mandir}/man?/*
%{_infodir}/[^d]*
%{_bindir}/*
%dir /usr/lib/grub
%dir /usr/lib/grub/*-*
/usr/lib/grub/*-*/*
%{_sbindir}/*
%changelog -n trustedgrub