Accepting request 936541 from home:aplanas:branches:security

- Separate tpm2-tss-fapi.conf in a different subpackage

OBS-URL: https://build.opensuse.org/request/show/936541
OBS-URL: https://build.opensuse.org/package/show/security/tpm2-0-tss?expand=0&rev=114
This commit is contained in:
Alberto Planas 2021-12-08 15:34:06 +00:00 committed by Git OBS Bridge
parent 525e740b90
commit af4cb0d3eb
2 changed files with 16 additions and 8 deletions

View File

@ -1,7 +1,7 @@
-------------------------------------------------------------------
Tue Dec 7 09:33:54 UTC 2021 - Alberto Planas Dominguez <aplanas@suse.com>
Wed Dec 8 13:48:01 UTC 2021 - Alberto Planas Dominguez <aplanas@suse.com>
- Obsoletes libtss2-fapi0
- Separate tpm2-tss-fapi.conf in a different subpackage
-------------------------------------------------------------------
Thu Jul 15 15:51:04 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>

View File

@ -148,13 +148,20 @@ protocol exposed by the Microsoft software TPM2 simulator.
%package -n libtss2-fapi1
Summary: FAPI interface library
Group: System/Libraries
Obsoletes: libtss2-fapi0 < %{version}
%description -n libtss2-fapi1
This is the tpm2 Feature API (FAPI) library. This API is designed to be very
high-level API, intended to make programming with the TPM as simple as
possible.
%package -n libtss2-fapi1-conf
Summary: FAPI interface library configuration file
Group: System/Libraries
Requires: libtss2-fapi1-conf = %{version}
%description -n libtss2-fapi1-conf
This is the tpm2 Feature API (FAPI) library configuration file.
%package -n libtss2-tcti-cmd0
Summary: TCTI cmd interface library
Group: System/Libraries
@ -221,11 +228,7 @@ rm %{buildroot}%{_sysusersdir}/tpm2-tss.conf
%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
/sbin/ldconfig
%tmpfiles_create %{_tmpfilesdir}/tpm2-tss-fapi.conf
%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
@ -234,6 +237,9 @@ rm %{buildroot}%{_sysusersdir}/tpm2-tss.conf
%post -n libtss2-tcti-pcap0 -p /sbin/ldconfig
%postun -n libtss2-tcti-pcap0 -p /sbin/ldconfig
%post -n libtss2-fapi1-conf
%tmpfiles_create %{_tmpfilesdir}/tpm2-tss-fapi.conf
%files
%doc *.md
%license LICENSE
@ -274,6 +280,8 @@ rm %{buildroot}%{_sysusersdir}/tpm2-tss.conf
%files -n libtss2-fapi1
%{_libdir}/libtss2-fapi.so.*
%files -n libtss2-fapi1-conf
%{_tmpfilesdir}/tpm2-tss-fapi.conf
# this would fix "tmpfile-not-in-filelist" warnings but when adding these
# entries then it complains about "directories not owned by a package:" for