[tpm-tools] Cleanup spec and modernise spec

Peter Robinson pbrobinson at fedoraproject.org
Tue Jul 3 12:52:19 UTC 2012


commit 9ad3e646d577ae0d67b1b332add2456b077dc1d4
Author: Peter Robinson <pbrobinson at gmail.com>
Date:   Tue Jul 3 13:50:33 2012 +0100

    Cleanup spec and modernise spec

 tpm-tools.spec |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/tpm-tools.spec b/tpm-tools.spec
index 5cfdfdc..bdd4a60 100644
--- a/tpm-tools.spec
+++ b/tpm-tools.spec
@@ -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 at fedoraproject.org> - 1.3.8-2
+- Cleanup spec and modernise spec
+
 * Fri Jun 22 2012 Steve Grubb <sgrubb at redhat.com> 1.3.8-1
 - New upstream release
 


More information about the scm-commits mailing list