From c220cfe8e2b5f2fa836edbc96d09b29e0d96a31b3893cfd267b93ff8ac736983 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 15 Feb 2017 18:15:01 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/security/tpm2-0-tss?expand=0&rev=31 --- baselibs.conf | 2 +- tpm2-0-tss.spec | 25 +++++++++++++------------ 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/baselibs.conf b/baselibs.conf index 530badb..f0e1bda 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1 +1 @@ -libtss2-0 +libsapi0 diff --git a/tpm2-0-tss.spec b/tpm2-0-tss.spec index 46911aa..c012676 100644 --- a/tpm2-0-tss.spec +++ b/tpm2-0-tss.spec @@ -42,13 +42,13 @@ The tpm2-0-tss package provides a TPM 2.0 TSS implementation. Summary: Development headers for the TSS (TCG Software Stack) access library for TPM 2.0 chips Group: Development/Libraries/C and C++ Requires: glibc-devel -Requires: libtss2-0 = %{version} +Requires: libtsapi0 = %{version} %description devel -This package provides the development files for the libtss2 library +This package provides the development files for the libsapi library for accessing TPM 2.0 chips. -%package -n libtss2-0 +%package -n libsapi0 Summary: TSS (TCG Software Stack) access library for TPM 2.0 chip Group: System/Libraries Requires: trousers @@ -56,7 +56,7 @@ Requires: trousers Obsoletes: libtss2 < %version-%release Provides: libtss2 = %version-%release -%description -n libtss2-0 +%description -n libsapi0 This package provides the library to access the TSS (TCG Software Stack) for accessing TPM 2.0 chips. @@ -76,8 +76,8 @@ install -D -m 0644 contrib/resourcemgr.service %{buildroot}/%{_unitdir}/resource sed -e 's#usr/local/sbin/#usr/sbin#;' -i %{buildroot}/%{_unitdir}/resourcemgr.service ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rcresourcemgr -%post -n libtss2-0 -p /sbin/ldconfig -%postun -n libtss2-0 -p /sbin/ldconfig +%post -n libsapi0 -p /sbin/ldconfig +%postun -n libsapi0 -p /sbin/ldconfig %pre %service_add_pre resourcemgr.service @@ -93,7 +93,7 @@ ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rcresourcemgr %files %defattr(-,root,root) -%doc *.md LICENSE *.png +%doc *.md LICENSE %{_sbindir}/resourcemgr /%{_unitdir}/resourcemgr.service %{_sbindir}/rcresourcemgr @@ -101,15 +101,16 @@ ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rcresourcemgr %files devel %defattr(-,root,root) %{_includedir}/tcti -%{_includedir}/tss2 +%{_includedir}/sapi %{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc ##only available in static form #%{_libdir}/libtddl.a -%files -n libtss2-0 +%files -n libsapi0 %defattr(-,root,root) -/%{_libdir}/libtss2.so.* -/%{_libdir}/libtctidevice.so.* -/%{_libdir}/libtctisocket.so.* +/%{_libdir}/libsapi.so.* +/%{_libdir}/libtcti-device.so.* +/%{_libdir}/libtcti-socket.so.* %changelog