From 44bdbce275bcba3ff2512dd8c46474dc5912faed Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Aug 07 2020 14:19:37 +0000 Subject: Install sysusers config in sysusersdir (rhbz #1834519) --- diff --git a/tpm2-tss.spec b/tpm2-tss.spec index 819bf49..7f476fc 100644 --- a/tpm2-tss.spec +++ b/tpm2-tss.spec @@ -1,6 +1,6 @@ Name: tpm2-tss Version: 3.0.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: TPM2.0 Software Stack # The entire source code is under BSD except implementation.h and tpmb.h which @@ -35,7 +35,7 @@ APIs for applications to access TPM module through kernel TPM drivers. # Use built-in tpm-udev.rules, with specified installation path and prefix. %configure --disable-static --disable-silent-rules \ --with-udevrulesdir=%{_udevrulesdir} --with-udevrulesprefix=%{udevrules_prefix} \ - --with-runstatedir=%{_rundir} --with-tmpfilesdir=%{_tmpfilesdir} + --with-runstatedir=%{_rundir} --with-tmpfilesdir=%{_tmpfilesdir} --with-sysusersdir=%{_sysusersdir} # This is to fix Rpath errors. Taken from https://fedoraproject.org/wiki/Packaging:Guidelines#Removing_Rpath sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool @@ -52,8 +52,6 @@ find %{buildroot}%{_libdir} -type f -name \*.la -delete %files %doc README.md CHANGELOG.md %license LICENSE -%{_sysconfdir}/sysusers.d/tpm2-tss.conf -%{_tmpfilesdir}/tpm2-tss-fapi.conf %{_sysconfdir}/tpm2-tss/ %{_libdir}/libtss2-mu.so.0* %{_libdir}/libtss2-sys.so.1* @@ -65,6 +63,8 @@ find %{buildroot}%{_libdir} -type f -name \*.la -delete %{_libdir}/libtss2-tcti-device.so.0* %{_libdir}/libtss2-tcti-mssim.so.0* %{_libdir}/libtss2-tcti-swtpm.so.0* +%{_sysusersdir}/tpm2-tss.conf +%{_tmpfilesdir}/tpm2-tss-fapi.conf %{_udevrulesdir}/%{udevrules_prefix}tpm-udev.rules %package devel @@ -103,6 +103,9 @@ use tpm2-tss. %changelog +* Fri Aug 07 2020 Peter Robinson - 3.0.0-2 +- Install sysusers config in sysusersdir (rhbz #1834519) + * Wed Aug 05 2020 Peter Robinson - 3.0.0-1 - Update to 3.0.0