Marcus Meissner 2017-02-15 18:15:01 +00:00 committed by Git OBS Bridge
parent 84a46c674b
commit c220cfe8e2
2 changed files with 14 additions and 13 deletions

View File

@ -1 +1 @@
libtss2-0
libsapi0

View File

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