SHA256
1
0
forked from pool/tpm2-0-tss

Accepting request 843352 from home:Guillaume_G:branches:openSUSE:Factory

- Update to 3.0.1, changelog at:
  https://github.com/tpm2-software/tpm2-tss/blob/3.0.x/CHANGELOG.md
- Update libtss2-sys0 to libtss2-sys1
- Add new libs:
  * libtss2-fapi1
  * libtss2-tcti-cmd0
  * libtss2-tcti-swtpm0

OBS-URL: https://build.opensuse.org/request/show/843352
OBS-URL: https://build.opensuse.org/package/show/security/tpm2-0-tss?expand=0&rev=97
This commit is contained in:
Matthias Gerstner 2020-10-22 10:27:22 +00:00 committed by Git OBS Bridge
parent 11ea812f83
commit ac062faf0c
4 changed files with 79 additions and 12 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Mon Oct 19 13:30:39 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Update to 3.0.1, changelog at:
https://github.com/tpm2-software/tpm2-tss/blob/3.0.x/CHANGELOG.md
- Update libtss2-sys0 to libtss2-sys1
- Add new libs:
* libtss2-fapi1
* libtss2-tcti-cmd0
* libtss2-tcti-swtpm0
-------------------------------------------------------------------
Wed Feb 19 19:37:14 UTC 2020 - Martin Hauke <mardnh@gmx.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package tpm2-0-tss
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,7 +17,7 @@
Name: tpm2-0-tss
Version: 2.3.3
Version: 3.0.1
Release: 0
Summary: Intel's TCG Software Stack access libraries for TPM 2.0 chips
License: BSD-2-Clause
@ -27,7 +27,9 @@ Source0: https://github.com/tpm2-software/tpm2-tss/releases/download/%{ve
Source2: baselibs.conf
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: libcurl-devel
BuildRequires: libgcrypt-devel
BuildRequires: libjson-c-devel
BuildRequires: libopenssl-devel
BuildRequires: pkg-config
BuildRequires: pkgconfig(udev)
@ -60,11 +62,14 @@ Summary: Development headers for the Intel TSS library for TPM 2.0 chips
Group: Development/Libraries/C and C++
Requires: glibc-devel
Requires: libtss2-esys0 = %{version}
Requires: libtss2-fapi1 = %{version}
Requires: libtss2-mu0 = %{version}
Requires: libtss2-rc0 = %{version}
Requires: libtss2-sys0 = %{version}
Requires: libtss2-sys1 = %{version}
Requires: libtss2-tcti-cmd0 = %{version}
Requires: libtss2-tcti-device0 = %{version}
Requires: libtss2-tcti-mssim0 = %{version}
Requires: libtss2-tcti-swtpm0 = %{version}
Requires: libtss2-tctildr0 = %{version}
Requires: tpm2-0-tss = %{version}
@ -84,11 +89,11 @@ TPM object and automatic calculation of session based authorization and
encryption values. Both the synchronous and asynchronous API are exposed
through this library.
%package -n libtss2-sys0
%package -n libtss2-sys1
Summary: TPM2 System API (SAPI)
Group: System/Libraries
%description -n libtss2-sys0
%description -n libtss2-sys1
System API (SAPI) as described in the system level API and TPM command
transmission interface specification. This API is a 1-to-1 mapping of the TPM2
commands documented in Part 3 of the TPM2 specification. Additionally there
@ -138,11 +143,36 @@ Group: System/Libraries
TPM Command Transmission Interface library for communicating using the
protocol exposed by the Microsoft software TPM2 simulator.
%package -n libtss2-fapi1
Summary: FAPI interface library
Group: System/Libraries
%description -n libtss2-fapi1
FAPI interface library
%package -n libtss2-tcti-cmd0
Summary: TCTI cmd interface library
Group: System/Libraries
%description -n libtss2-tcti-cmd0
TCTI cmd interface library
%package -n libtss2-tcti-swtpm0
Summary: TCTI swtpm interface library
Group: System/Libraries
%description -n libtss2-tcti-swtpm0
TCTI swtpm interface library
%prep
%setup -q -n tpm2-tss-%{version}
%build
%configure --disable-static --with-udevrulesdir=%{_udevrulesdir}
%configure --disable-static \
--with-udevrulesdir=%{_udevrulesdir} \
--with-runstatedir=%{_rundir} \
--with-tmpfilesdir=%{_tmpfilesdir} \
--with-sysusersdir=%{_sysusersdir}
make %{?_smp_mflags} PTHREAD_LDFLAGS=-pthread
%install
@ -154,11 +184,12 @@ mv %{buildroot}%{_udevrulesdir}/tpm-udev.rules %{buildroot}%{_udevrulesdir}/%{ud
%post
%_bindir/udevadm trigger -s tpm -s tpmrm || :
%tmpfiles_create %_tmpfilesdir/tpm2-tss-fapi.conf
%post -n libtss2-esys0 -p /sbin/ldconfig
%postun -n libtss2-esys0 -p /sbin/ldconfig
%post -n libtss2-sys0 -p /sbin/ldconfig
%postun -n libtss2-sys0 -p /sbin/ldconfig
%post -n libtss2-sys1 -p /sbin/ldconfig
%postun -n libtss2-sys1 -p /sbin/ldconfig
%post -n libtss2-tctildr0 -p /sbin/ldconfig
%postun -n libtss2-tctildr0 -p /sbin/ldconfig
%post -n libtss2-tcti-device0 -p /sbin/ldconfig
@ -169,14 +200,27 @@ mv %{buildroot}%{_udevrulesdir}/tpm-udev.rules %{buildroot}%{_udevrulesdir}/%{ud
%postun -n libtss2-mu0 -p /sbin/ldconfig
%post -n libtss2-rc0 -p /sbin/ldconfig
%postun -n libtss2-rc0 -p /sbin/ldconfig
%post -n libtss2-fapi1 -p /sbin/ldconfig
%postun -n libtss2-fapi1 -p /sbin/ldconfig
%post -n libtss2-tcti-cmd0 -p /sbin/ldconfig
%postun -n libtss2-tcti-cmd0 -p /sbin/ldconfig
%post -n libtss2-tcti-swtpm0 -p /sbin/ldconfig
%postun -n libtss2-tcti-swtpm0 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc *.md
%license LICENSE
%{_mandir}/man3/*
%{_mandir}/man5/*
%{_mandir}/man7/tss2-*
%{_udevrulesdir}/%{udev_rule_file}
%{_sysusersdir}/tpm2-tss.conf
%{_tmpfilesdir}/tpm2-tss-fapi.conf
%dir /etc/tpm2-tss/
%config /etc/tpm2-tss/fapi-config.json
%dir /etc/tpm2-tss/fapi-profiles
%config /etc/tpm2-tss/fapi-profiles/*.json
%files devel
%defattr(-,root,root)
@ -188,7 +232,7 @@ mv %{buildroot}%{_udevrulesdir}/tpm-udev.rules %{buildroot}%{_udevrulesdir}/%{ud
%defattr(-,root,root)
%{_libdir}/libtss2-esys.so.*
%files -n libtss2-sys0
%files -n libtss2-sys1
%defattr(-,root,root)
%{_libdir}/libtss2-sys.so.*
@ -212,4 +256,16 @@ mv %{buildroot}%{_udevrulesdir}/tpm-udev.rules %{buildroot}%{_udevrulesdir}/%{ud
%defattr(-,root,root)
%{_libdir}/libtss2-tcti-mssim.so.*
%files -n libtss2-fapi1
%defattr(-,root,root)
%{_libdir}/libtss2-fapi.so.*
%files -n libtss2-tcti-cmd0
%defattr(-,root,root)
%{_libdir}/libtss2-tcti-cmd.so.*
%files -n libtss2-tcti-swtpm0
%defattr(-,root,root)
%{_libdir}/libtss2-tcti-swtpm.so.*
%changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9d8c8866829e3ff5e1649ecd82498cb1329e0691139458e53b69e6061febe3d3
size 1171185

3
tpm2-tss-3.0.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2432533a1cac0f0d15d0337d2f0a23591a50b36aad68ab72412ce694818b7e76
size 1488285