From 68951397a52a0e5d881c86e29d71fbea660ece86e0849dd006bb1e9473edfe6e Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 18 Feb 2017 11:42:59 +0000 Subject: [PATCH] Accepting request 458493 from home:jengelh:branches:security - Remove --with-pic which is only for static libs. - Fix an improper Requires line. - Split libtcti* from libsapi0; these are independentlty developable units. OBS-URL: https://build.opensuse.org/request/show/458493 OBS-URL: https://build.opensuse.org/package/show/security/tpm2-0-tss?expand=0&rev=32 --- tpm2-0-tss.changes | 8 ++++++++ tpm2-0-tss.spec | 44 ++++++++++++++++++++++++++++++++++++-------- 2 files changed, 44 insertions(+), 8 deletions(-) diff --git a/tpm2-0-tss.changes b/tpm2-0-tss.changes index 20fd773..61b6241 100644 --- a/tpm2-0-tss.changes +++ b/tpm2-0-tss.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Feb 16 13:35:44 UTC 2017 - jengelh@inai.de + +- Remove --with-pic which is only for static libs. +- Fix an improper Requires line. +- Split libtcti* from libsapi0; these are independentlty + developable units. + ------------------------------------------------------------------- Wed Feb 8 13:43:55 UTC 2017 - meissner@suse.com diff --git a/tpm2-0-tss.spec b/tpm2-0-tss.spec index c012676..0cd39d9 100644 --- a/tpm2-0-tss.spec +++ b/tpm2-0-tss.spec @@ -19,7 +19,7 @@ Name: tpm2-0-tss Version: 1.0 Release: 0 -Summary: TSS (TCG Software Stack) access library for TPM 2.0 chips +Summary: Intel's TCG Software Stack access library for TPM 2.0 chips License: BSD-2-Clause Group: Productivity/Security Url: https://github.com/01org/TPM2.0-TSS @@ -39,17 +39,19 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build The tpm2-0-tss package provides a TPM 2.0 TSS implementation. %package devel -Summary: Development headers for the TSS (TCG Software Stack) access library for TPM 2.0 chips +Summary: Development headers for the Intel TSS library for TPM 2.0 chips Group: Development/Libraries/C and C++ Requires: glibc-devel -Requires: libtsapi0 = %{version} +Requires: libsapi0 = %{version} +Requires: libtcti-device0 = %{version} +Requires: libtcti-socket0 = %{version} %description devel This package provides the development files for the libsapi library for accessing TPM 2.0 chips. %package -n libsapi0 -Summary: TSS (TCG Software Stack) access library for TPM 2.0 chip +Summary: TPM2 System API library Group: System/Libraries Requires: trousers # Non-SLPP package name from earlier @@ -60,13 +62,29 @@ Provides: libtss2 = %version-%release This package provides the library to access the TSS (TCG Software Stack) for accessing TPM 2.0 chips. +%package -n libtcti-device0 +Summary: TCTI library for communicating with a TPM device node +Group: System/Libraries + +%description -n libtcti-device0 +TPM Command Transmission Interface library for communicating with a +TPM device node. + +%package -n libtcti-socket0 +Summary: TCTI library for communicating with a TPM over a socket +Group: System/Libraries + +%description -n libtcti-socket0 +TPM Command Transmission Interface library for communicating with a +TPM over a socket. + %prep %setup -q -n TPM2.0-TSS-%{version} %patch0 -p1 %build bash bootstrap -%configure --disable-static --with-pic +%configure --disable-static make %{?_smp_mflags} PTHREAD_LDFLAGS=-pthread %install @@ -78,6 +96,10 @@ ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rcresourcemgr %post -n libsapi0 -p /sbin/ldconfig %postun -n libsapi0 -p /sbin/ldconfig +%post -n libtcti-device0 -p /sbin/ldconfig +%postun -n libtcti-device0 -p /sbin/ldconfig +%post -n libtcti-socket0 -p /sbin/ldconfig +%postun -n libtcti-socket0 -p /sbin/ldconfig %pre %service_add_pre resourcemgr.service @@ -109,8 +131,14 @@ ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rcresourcemgr %files -n libsapi0 %defattr(-,root,root) -/%{_libdir}/libsapi.so.* -/%{_libdir}/libtcti-device.so.* -/%{_libdir}/libtcti-socket.so.* +%{_libdir}/libsapi.so.* + +%files -n libtcti-device0 +%defattr(-,root,root) +%{_libdir}/libtcti-device.so.* + +%files -n libtcti-socket0 +%defattr(-,root,root) +%{_libdir}/libtcti-socket.so.* %changelog