Blame tpm2-tools.spec

Yunying Sun 122395
Name: tpm2-tools
Yunying Sun 122395
Version: 1.1.0 
Yunying Sun 122395
Release: 2%{?dist}
Yunying Sun 122395
Summary: A TPM2.0 testing tool build upon TPM2.0-TSS
Yunying Sun 122395
Yunying Sun 122395
%global pkg_prefix tpm2.0-tools
Yunying Sun 122395
Yunying Sun 122395
License: BSD
Yunying Sun 122395
URL:     https://github.com/01org/tpm2.0-tools
Yunying Sun 122395
Source0: https://github.com/01org/tpm2.0-tools/archive/v%{version}.tar.gz#/%{pkg_prefix}-%{version}.tar.gz
Yunying Sun 122395
Yunying Sun 122395
BuildRequires: gcc
Yunying Sun 122395
BuildRequires: gcc-c++
Yunying Sun 122395
BuildRequires: libtool
Yunying Sun 122395
BuildRequires: autoconf-archive
Yunying Sun 122395
BuildRequires: pkgconfig(cmocka)
Yunying Sun 122395
BuildRequires: pkgconfig(libcurl)
Yunying Sun 122395
BuildRequires: pkgconfig(openssl)
Yunying Sun 122395
# tpm2-tss-devel-1.0-2 provides sapi/tcti-device/tcti-socket
Yunying Sun 122395
BuildRequires: pkgconfig(sapi)
Yunying Sun 122395
BuildRequires: pkgconfig(tcti-device)
Yunying Sun 122395
BuildRequires: pkgconfig(tcti-socket)
Yunying Sun 122395
Yunying Sun 122395
# this package does not support big endian arch so far,
Yunying Sun 122395
# and has been verified only on Intel platforms.
Yunying Sun 122395
ExclusiveArch: %{ix86} x86_64
Yunying Sun 122395
Yunying Sun 122395
# tpm2-tools is heavily depending on TPM2.0-TSS project, matched tss is required
Yunying Sun 122395
Requires: tpm2-tss = 1.0-2
Yunying Sun 122395
Yunying Sun 122395
%description
Yunying Sun 122395
tpm2-tools is a batch of testing tools for tpm2.0. It is based on tpm2-tss.
Yunying Sun 122395
Yunying Sun 122395
%prep
Yunying Sun 122395
%autosetup -n %{pkg_prefix}-%{version}
Yunying Sun 122395
./bootstrap
Yunying Sun 122395
Yunying Sun 122395
%build
Yunying Sun 122395
%configure --prefix=/usr --disable-static --disable-silent-rules
Yunying Sun 122395
%make_build
Yunying Sun 122395
Yunying Sun 122395
%install
Yunying Sun 122395
%make_install
Yunying Sun 122395
Yunying Sun 122395
%files
Yunying Sun 122395
%doc README.md CHANGELOG 
Yunying Sun 122395
%license LICENSE
Yunying Sun 122395
%{_sbindir}/tpm2_*
Yunying Sun 122395
Yunying Sun 122395
%changelog
Yunying Sun 122395
* Wed Dec 21 2016 Sun Yunying <yunying.sun@intel.com> - 1.1.0-2
Yunying Sun 122395
- Remove pkg_version to avoid dupliate use of version
Yunying Sun 122395
- Remove redundant BuildRequires for autoconf/automake/pkgconfig
Yunying Sun 122395
- Add comments for BuildRequires of sapi/tcti-device/tcti-socket
Yunying Sun 122395
- Use ExclusiveArch instead of ExcludeArch
Yunying Sun 122395
- Requires tpm2-tss version updated to 1.0-2
Yunying Sun 122395
- Updated release version and changelog
Yunying Sun 122395
Yunying Sun 122395
* Fri Dec 2 2016 Sun Yunying <yunying.sun@intel.com> - 1.1.0-1
Yunying Sun 122395
- Initial version of the package