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
This commit is contained in:
Marcus Meissner 2017-02-18 11:42:59 +00:00 committed by Git OBS Bridge
parent c220cfe8e2
commit 68951397a5
2 changed files with 44 additions and 8 deletions

View File

@ -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

View File

@ -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