|
|
03cf90 |
Name: tpm2-tss
|
|
|
03cf90 |
Version: 1.0
|
|
|
03cf90 |
Release: 5%{?dist}
|
|
|
03cf90 |
Summary: TPM2.0 Software Stack
|
|
|
03cf90 |
|
|
|
03cf90 |
%global pkg_prefix TPM2.0-TSS
|
|
|
03cf90 |
|
|
|
03cf90 |
# The entire source code is under BSD except implementation.h and tpmb.h which
|
|
|
03cf90 |
# is under TCGL(Trusted Computing Group License).
|
|
|
03cf90 |
License: BSD and TCGL
|
|
|
03cf90 |
URL: https://github.com/01org/TPM2.0-TSS
|
|
|
03cf90 |
Source0: https://github.com/01org/TPM2.0-TSS/archive/%{version}.tar.gz#/%{pkg_prefix}-%{version}.tar.gz
|
|
|
03cf90 |
Source1: resourcemgr.service
|
|
|
03cf90 |
Source2: resourcemgr.8
|
|
|
03cf90 |
|
|
|
03cf90 |
# RHEL only (resolves building on RHEL)
|
|
|
03cf90 |
Patch0001: swap-pthread-check.patch
|
|
|
03cf90 |
# RHEL only (enable install of test programs)
|
|
|
03cf90 |
Patch0002: test-app.patch
|
|
|
03cf90 |
# backport of upstream commit b0f09514467f3
|
|
|
03cf90 |
Patch0003: Fix-memory-leaks-on-error-conditions-in-InitSysConte.patch
|
|
|
03cf90 |
# backport of upstream commit b6ad056f2050b
|
|
|
03cf90 |
Patch0004: avoid-potential-null-deref.patch
|
|
|
03cf90 |
|
|
|
03cf90 |
BuildRequires: gcc
|
|
|
03cf90 |
BuildRequires: gcc-c++
|
|
|
03cf90 |
BuildRequires: libtool
|
|
|
03cf90 |
BuildRequires: pkgconfig
|
|
|
03cf90 |
BuildRequires: systemd-units
|
|
|
03cf90 |
Requires(post): systemd-units
|
|
|
03cf90 |
Requires(preun): systemd-units
|
|
|
03cf90 |
Requires(postun): systemd-units
|
|
|
03cf90 |
|
|
|
03cf90 |
# this package does not support big endian arch so far,
|
|
|
03cf90 |
# and has been verified only on Intel platforms.
|
|
|
03cf90 |
ExclusiveArch: %{ix86} x86_64
|
|
|
03cf90 |
|
|
|
03cf90 |
%description
|
|
|
03cf90 |
tpm2-tss is a software stack supporting Trusted Platform Module(TPM) 2.0 system
|
|
|
03cf90 |
APIs. It sits between TPM driver and applications, providing TPM2.0 specified
|
|
|
03cf90 |
APIs for applications to access TPM module through kernel TPM drivers.
|
|
|
03cf90 |
|
|
|
03cf90 |
%prep
|
|
|
03cf90 |
%autosetup -p1 -n %{pkg_prefix}-%{version}
|
|
|
03cf90 |
./bootstrap
|
|
|
03cf90 |
|
|
|
03cf90 |
|
|
|
03cf90 |
%build
|
|
|
03cf90 |
%configure --disable-static --disable-silent-rules
|
|
|
03cf90 |
%make_build
|
|
|
03cf90 |
|
|
|
03cf90 |
%install
|
|
|
03cf90 |
%make_install
|
|
|
03cf90 |
find %{buildroot}%{_libdir} -type f -name \*.la -delete
|
|
|
03cf90 |
mkdir -p %{buildroot}%{_bindir}
|
|
|
03cf90 |
mkdir -p %{buildroot}%{_unitdir}/
|
|
|
03cf90 |
install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/
|
|
|
03cf90 |
mkdir -p %{buildroot}%{_mandir}/man8/
|
|
|
03cf90 |
install -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man8/
|
|
|
03cf90 |
|
|
|
03cf90 |
%clean
|
|
|
03cf90 |
rm -rf %{buildroot}
|
|
|
03cf90 |
|
|
|
03cf90 |
%post
|
|
|
03cf90 |
%systemd_post resourcemgr.service
|
|
|
03cf90 |
/sbin/ldconfig
|
|
|
03cf90 |
|
|
|
03cf90 |
%preun
|
|
|
03cf90 |
%systemd_preun resourcemgr.service
|
|
|
03cf90 |
|
|
|
03cf90 |
%postun
|
|
|
03cf90 |
%systemd_postun resourcemgr.service
|
|
|
03cf90 |
/sbin/ldconfig
|
|
|
03cf90 |
|
|
|
03cf90 |
%files
|
|
|
03cf90 |
%doc README.md CHANGELOG.md
|
|
|
03cf90 |
%license LICENSE
|
|
|
03cf90 |
%{_libdir}/libsapi.so.*
|
|
|
03cf90 |
%{_libdir}/libtcti-device.so.*
|
|
|
03cf90 |
%{_libdir}/libtcti-socket.so.*
|
|
|
03cf90 |
%{_sbindir}/resourcemgr
|
|
|
03cf90 |
%attr(644,root,root) %{_unitdir}/resourcemgr.service
|
|
|
03cf90 |
%{_mandir}/man8/resourcemgr.8.gz
|
|
|
03cf90 |
|
|
|
03cf90 |
%package devel
|
|
|
03cf90 |
Summary: Headers and libraries for building apps that use tpm2-tss
|
|
|
03cf90 |
Requires: %{name}%{_isa} = %{version}-%{release}
|
|
|
03cf90 |
|
|
|
03cf90 |
%description devel
|
|
|
03cf90 |
This package contains headers and libraries required to build applications that
|
|
|
03cf90 |
use tpm2-tss.
|
|
|
03cf90 |
|
|
|
03cf90 |
%files devel
|
|
|
03cf90 |
%{_includedir}/sapi/
|
|
|
03cf90 |
%{_includedir}/tcti/
|
|
|
03cf90 |
%{_libdir}/libsapi.so
|
|
|
03cf90 |
%{_libdir}/libtcti-device.so
|
|
|
03cf90 |
%{_libdir}/libtcti-socket.so
|
|
|
03cf90 |
%{_libdir}/pkgconfig/sapi.pc
|
|
|
03cf90 |
%{_libdir}/pkgconfig/tcti-device.pc
|
|
|
03cf90 |
%{_libdir}/pkgconfig/tcti-socket.pc
|
|
|
03cf90 |
|
|
|
03cf90 |
%package utils
|
|
|
03cf90 |
Summary: Utilities for tpm2-tss
|
|
|
03cf90 |
Requires: %{name}%{_isa} = %{version}-%{release}
|
|
|
03cf90 |
|
|
|
03cf90 |
%description utils
|
|
|
03cf90 |
Utilities for tpm2-tss, such as testing features of
|
|
|
03cf90 |
tpm device or simulator.
|
|
|
03cf90 |
|
|
|
03cf90 |
%files utils
|
|
|
03cf90 |
%{_bindir}/tpmclient
|
|
|
03cf90 |
%{_bindir}/tpmtest
|
|
|
03cf90 |
|
|
|
03cf90 |
%changelog
|
|
|
03cf90 |
* Wed Jun 07 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 1.0-5
|
|
|
03cf90 |
- Add manpage for resourcemgr
|
|
|
03cf90 |
resolves: rhbz#1459635
|
|
|
03cf90 |
|
|
|
03cf90 |
* Mon Apr 03 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 1.0-4
|
|
|
03cf90 |
- Clean up potential null deref
|
|
|
03cf90 |
- Clean up memory leaks
|
|
|
03cf90 |
- Inrease release version to 4
|
|
|
03cf90 |
|
|
|
03cf90 |
* Fri Mar 10 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 1.0-3
|
|
|
03cf90 |
- Add systemd unit for resourcemgr
|
|
|
03cf90 |
- Add utils subpackage
|
|
|
03cf90 |
- Add Makefile.am patch to install test programs
|
|
|
03cf90 |
- Add patch to swap out AX_PTHREAD for different check
|
|
|
03cf90 |
- Increase release version to 3
|
|
|
03cf90 |
resolves: rhbz#1275027 - Add TPM 2.0 System API (SAPI) library
|
|
|
03cf90 |
|
|
|
03cf90 |
* Mon Dec 12 2016 Sun Yunying <yunying.sun@intel.com> - 1.0-2
|
|
|
03cf90 |
- Remove global macro pkg_version to avoid duplicate of version
|
|
|
03cf90 |
- Use ExclusiveArch instead of ExcludeArch
|
|
|
03cf90 |
- Use less wildcard in %files section to be more specific
|
|
|
03cf90 |
- Add trailing slash at end of added directory in %file section
|
|
|
03cf90 |
- Remove autoconf/automake/pkgconfig(cmocka) from BuildRequires
|
|
|
03cf90 |
- Increase release version to 2
|
|
|
03cf90 |
|
|
|
03cf90 |
* Fri Dec 2 2016 Sun Yunying <yunying.sun@intel.com> - 1.0-1
|
|
|
03cf90 |
- Initial version of the package
|