From 1223953ecc6e804d867cbbc6beeb6f4ee3c09409 Mon Sep 17 00:00:00 2001 From: Yunying Sun Date: Jan 19 2017 02:14:07 +0000 Subject: Initial import (#1369720). --- diff --git a/tpm2-tools.spec b/tpm2-tools.spec new file mode 100644 index 0000000..50268b5 --- /dev/null +++ b/tpm2-tools.spec @@ -0,0 +1,60 @@ +Name: tpm2-tools +Version: 1.1.0 +Release: 2%{?dist} +Summary: A TPM2.0 testing tool build upon TPM2.0-TSS + +%global pkg_prefix tpm2.0-tools + +License: BSD +URL: https://github.com/01org/tpm2.0-tools +Source0: https://github.com/01org/tpm2.0-tools/archive/v%{version}.tar.gz#/%{pkg_prefix}-%{version}.tar.gz + +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: libtool +BuildRequires: autoconf-archive +BuildRequires: pkgconfig(cmocka) +BuildRequires: pkgconfig(libcurl) +BuildRequires: pkgconfig(openssl) +# tpm2-tss-devel-1.0-2 provides sapi/tcti-device/tcti-socket +BuildRequires: pkgconfig(sapi) +BuildRequires: pkgconfig(tcti-device) +BuildRequires: pkgconfig(tcti-socket) + +# this package does not support big endian arch so far, +# and has been verified only on Intel platforms. +ExclusiveArch: %{ix86} x86_64 + +# tpm2-tools is heavily depending on TPM2.0-TSS project, matched tss is required +Requires: tpm2-tss = 1.0-2 + +%description +tpm2-tools is a batch of testing tools for tpm2.0. It is based on tpm2-tss. + +%prep +%autosetup -n %{pkg_prefix}-%{version} +./bootstrap + +%build +%configure --prefix=/usr --disable-static --disable-silent-rules +%make_build + +%install +%make_install + +%files +%doc README.md CHANGELOG +%license LICENSE +%{_sbindir}/tpm2_* + +%changelog +* Wed Dec 21 2016 Sun Yunying - 1.1.0-2 +- Remove pkg_version to avoid dupliate use of version +- Remove redundant BuildRequires for autoconf/automake/pkgconfig +- Add comments for BuildRequires of sapi/tcti-device/tcti-socket +- Use ExclusiveArch instead of ExcludeArch +- Requires tpm2-tss version updated to 1.0-2 +- Updated release version and changelog + +* Fri Dec 2 2016 Sun Yunying - 1.1.0-1 +- Initial version of the package diff --git a/tpm2.0-tools-1.1.0.tar.gz b/tpm2.0-tools-1.1.0.tar.gz new file mode 100644 index 0000000..f2eca0c Binary files /dev/null and b/tpm2.0-tools-1.1.0.tar.gz differ