Install sysusers config in sysusersdir (rhbz #1834519)

This commit is contained in:
Peter Robinson 2020-08-07 15:19:37 +01:00
parent 6a3b315d69
commit 44bdbce275

View File

@ -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 <pbrobinson@fedoraproject.org> - 3.0.0-2
- Install sysusers config in sysusersdir (rhbz #1834519)
* Wed Aug 05 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 3.0.0-1
- Update to 3.0.0