diff --git a/tpm2-0-tss.changes b/tpm2-0-tss.changes index 61998a3..73a4653 100644 --- a/tpm2-0-tss.changes +++ b/tpm2-0-tss.changes @@ -1,7 +1,7 @@ ------------------------------------------------------------------- -Tue Dec 7 09:33:54 UTC 2021 - Alberto Planas Dominguez +Wed Dec 8 13:48:01 UTC 2021 - Alberto Planas Dominguez -- Obsoletes libtss2-fapi0 +- Separate tpm2-tss-fapi.conf in a different subpackage ------------------------------------------------------------------- Thu Jul 15 15:51:04 UTC 2021 - Callum Farmer diff --git a/tpm2-0-tss.spec b/tpm2-0-tss.spec index 62c5433..52aecd4 100644 --- a/tpm2-0-tss.spec +++ b/tpm2-0-tss.spec @@ -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