diff --git a/tpm2-0-tss.changes b/tpm2-0-tss.changes index f81d676..299710a 100644 --- a/tpm2-0-tss.changes +++ b/tpm2-0-tss.changes @@ -5,11 +5,7 @@ Wed Dec 8 16:57:58 UTC 2021 - Alberto Planas Dominguez + cover update to 2.4.5 (jsc#SLE-17366) + cover update to 2.3.0 (jsc#SLE-9515) + fix policy session for TPM2_PolicyAuthValue (bsc#1160736) - -------------------------------------------------------------------- -Wed Dec 8 13:48:01 UTC 2021 - Alberto Planas Dominguez - -- Separate tpm2-tss-fapi.conf in a different subpackage +- Add version the configuration file tpm2-tss-fapi.conf ------------------------------------------------------------------- Thu Jul 15 15:51:04 UTC 2021 - Callum Farmer diff --git a/tpm2-0-tss.spec b/tpm2-0-tss.spec index 66424a9..8813c61 100644 --- a/tpm2-0-tss.spec +++ b/tpm2-0-tss.spec @@ -148,20 +148,12 @@ protocol exposed by the Microsoft software TPM2 simulator. %package -n libtss2-fapi1 Summary: FAPI interface library Group: System/Libraries -Requires: libtss2-fapi-conf = %{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-fapi-conf -Summary: FAPI interface library configuration file -Group: System/Libraries - -%description -n libtss2-fapi-conf -This is the tpm2 Feature API (FAPI) library configuration file. - %package -n libtss2-tcti-cmd0 Summary: TCTI cmd interface library Group: System/Libraries @@ -210,6 +202,8 @@ find %{buildroot} -type f -name "*.la" -delete -print mv %{buildroot}%{_udevrulesdir}/tpm-udev.rules %{buildroot}%{_udevrulesdir}/%{udev_rule_file} # Conflicts with system-users rm %{buildroot}%{_sysusersdir}/tpm2-tss.conf +# Add version into the configuration tmpfiles.d configuration file +mv %{buildroot}%{_tmpfilesdir}/tpm2-tss-fapi.conf %{buildroot}%{_tmpfilesdir}/tpm2-tss-fapi-%{version}.conf %post %{_bindir}/udevadm trigger -s tpm -s tpmrm || : @@ -228,7 +222,11 @@ 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 -p /sbin/ldconfig + +%post -n libtss2-fapi1 +/sbin/ldconfig +%tmpfiles_create %{_tmpfilesdir}/tpm2-tss-fapi-%{version}.conf + %postun -n libtss2-fapi1 -p /sbin/ldconfig %post -n libtss2-tcti-cmd0 -p /sbin/ldconfig %postun -n libtss2-tcti-cmd0 -p /sbin/ldconfig @@ -237,9 +235,6 @@ 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-fapi-conf -%tmpfiles_create %{_tmpfilesdir}/tpm2-tss-fapi.conf - %files %doc *.md %license LICENSE @@ -280,9 +275,7 @@ rm %{buildroot}%{_sysusersdir}/tpm2-tss.conf %files -n libtss2-fapi1 %{_libdir}/libtss2-fapi.so.* - -%files -n libtss2-fapi-conf -%{_tmpfilesdir}/tpm2-tss-fapi.conf +%{_tmpfilesdir}/tpm2-tss-fapi-%{version}.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 # /run/tpm2-0-tss & friends. When adding them as %%ghost, too, then Leap15.1