%define name tpm-tools %define version 1.3.1 %define release 2 Name: %{name} Summary: Management tools for the TPM hardware Version: %{version} Release: %{release}%{?dist} License: CPL Group: Applications/System Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz URL: http://trousers.sourceforge.net BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: autoconf automake libtool trousers-devel openssl-devel Requires: trousers Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig Patch0: tpm-tools-conditionally-build-tpmtoken-manpages-Makefile.in.patch %description tpm-tools is a group of tools to manage and utilize the Trusted Computing Group's TPM hardware. TPM hardware can create, store and use RSA keys securely (without ever being exposed in memory), verify a platform's software state using cryptographic hashes and more. %package devel Summary: Files to use the library routines supplied with tpm-tools Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel %{name}-devel is a package that contains the libraries and headers necessary for developing tpm-tools applications. %prep %setup -q %patch0 -p1 %build %configure --disable-pkcs11-support make %{?_smp_mflags} %install mkdir -p ${RPM_BUILD_ROOT} make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" rm -f $RPM_BUILD_ROOT/%{_libdir}/libtpm_unseal.la rm -f $RPM_BUILD_ROOT/%{_libdir}/libtpm_unseal.a %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc LICENSE README %attr(755, root, root) %{_bindir}/tpm_* %attr(755, root, root) %{_sbindir}/tpm_* %attr(755, root, root) %{_libdir}/libtpm_unseal.so.?.?.? %{_libdir}/libtpm_unseal.so.0 %{_mandir}/man1/tpm_* %{_mandir}/man8/tpm_* %files devel %defattr(-,root,root,-) %{_libdir}/libtpm_unseal.so %{_includedir}/tpm_tools/*.h %{_mandir}/man3/tpmUnseal* %changelog * Thu Dec 13 2007 Kent Yoder - 1.3.1-2 - Updated for Fedora package submission guidelines * Fri Nov 16 2007 Kent Yoder - 1.3.1 - Updates to configure * Fri Oct 05 2007 Kent Yoder - 1.2.5.1 - Updated %build section to use smp_mflags