reconfigure with correct system paths [release 3.0.3-2mamba;Wed Apr 21 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 18:36:07 +01:00
parent 88c210699c
commit 79802e2c50

View File

@ -1,6 +1,6 @@
Name: tpm2-tss
Version: 3.0.3
Release: 1mamba
Release: 2mamba
Summary: OSS implementation of the TCG TPM2 Software Stack (TSS2)
Group: System/Libraries
Vendor: openmamba
@ -12,25 +12,30 @@ Patch0: tpm2-tss-3.0.3-autoconf-2.70.patch
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libbrotli-devel
BuildRequires: libcares-devel
BuildRequires: libcurl-devel
BuildRequires: libe2fs-devel
BuildRequires: libgsasl-devel
BuildRequires: libgss-devel
BuildRequires: libicu-devel
BuildRequires: libidn-devel
BuildRequires: libidn2-devel
BuildRequires: libjson-c-devel
BuildRequires: libkrb5-devel
BuildRequires: libnghttp2-devel
BuildRequires: libntlm-devel
BuildRequires: libopenldap-devel
BuildRequires: libopenssl-devel
BuildRequires: libpsl-devel
BuildRequires: librtmp-devel
BuildRequires: libsasl2-devel
BuildRequires: libssh2-devel
BuildRequires: libunistring-devel
BuildRequires: libz-devel
BuildRequires: libzstd-devel
## AUTOBUILDREQ-END
Requires: libtss2 = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
OSS implementation of the TCG TPM2 Software Stack (TSS2).
@ -61,7 +66,10 @@ This package contains libraries and header files for developing applications tha
%build
%configure \
--with-udevrulesdir=%{_udevrulesdir}
--with-udevrulesdir=%{_udevrulesdir} \
--with-runstatedir=/run \
--with-tmpfilesdir=%{_tmpfilesdir} \
--with-sysusersdir=%{_sysusersdir}
%make
@ -72,16 +80,22 @@ This package contains libraries and header files for developing applications tha
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
%sysusers_create tpm2-tss
%tmpfiles_create tpm2-tss-fapi
:
%post -n libtss2 -p /sbin/ldconfig
%postun -n libtss2 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_sysconfdir}/sysusers.d/tpm2-tss.conf
%{_sysconfdir}/tmpfiles.d/tpm2-tss-fapi.conf
%dir %{_sysconfdir}/tpm2-tss
%{_sysconfdir}/tpm2-tss/fapi-config.json
%{_sysconfdir}/tpm2-tss/fapi-profiles/P_ECCP256SHA256.json
%{_sysconfdir}/tpm2-tss/fapi-profiles/P_RSA2048SHA256.json
%{_tmpfilesdir}/tpm2-tss-fapi.conf
%{_sysusersdir}/tpm2-tss.conf
%{_udevrulesdir}/tpm-udev.rules
%{_mandir}/man5/fapi-config.5*
%{_mandir}/man5/fapi-profile.5*
@ -108,6 +122,9 @@ This package contains libraries and header files for developing applications tha
%doc README.md
%changelog
* Wed Apr 21 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.3-2mamba
- reconfigure with correct system paths
* Wed Nov 25 2020 Automatic Build System <autodist@mambasoft.it> 3.0.3-1mamba
- automatic version update by autodist