Cleanup spec and modernise spec

This commit is contained in:
Peter Robinson 2012-07-03 13:50:33 +01:00
parent 0ed87efb36
commit 9ad3e646d5

View File

@ -1,16 +1,17 @@
Name: tpm-tools
Summary: Management tools for the TPM hardware
Version: 1.3.8
Release: 1%{?dist}
Release: 2%{?dist}
License: CPL
Group: Applications/System
URL: http://trousers.sourceforge.net
Source0: http://downloads.sourceforge.net/trousers/%{name}-%{version}.tar.gz
# Package unnecessarily has -Werror and any problem kills the build
Patch0: tpm-tools-1.3.5-no-werror.patch
# Package has other flaws preventing proper build
Patch1: tpm-tools-1.3.7-build.patch
URL: http://trousers.sourceforge.net
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: trousers-devel openssl-devel opencryptoki-devel chrpath
# Working with upstream to fix this, but in the mean time we need this
BuildRequires: automake autoconf
@ -50,19 +51,15 @@ autoreconf
%build
%configure
make %{?_smp_mflags}
make %{?_smp_mflags} V=1
%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
chrpath -d %{buildroot}%{_bindir}/tpm_unsealdata
chrpath -d %{buildroot}%{_bindir}/tpm_sealdata
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
@ -90,6 +87,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/tpmUnseal*
%changelog
* Tue Jul 3 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 1.3.8-2
- Cleanup spec and modernise spec
* Fri Jun 22 2012 Steve Grubb <sgrubb@redhat.com> 1.3.8-1
- New upstream release