|
|
|
@ -1,11 +1,12 @@
|
|
|
|
|
%global selinuxtype targeted
|
|
|
|
|
%global with_tests 1
|
|
|
|
|
|
|
|
|
|
Name: tpm2-abrmd
|
|
|
|
|
Version: 2.4.0
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Version: 3.0.0
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Summary: A system daemon implementing TPM2 Access Broker and Resource Manager
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
|
License: BSD-2-Clause
|
|
|
|
|
URL: https://github.com/tpm2-software/tpm2-abrmd
|
|
|
|
|
Source0: https://github.com/tpm2-software/tpm2-abrmd/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
@ -14,16 +15,19 @@ BuildRequires: make
|
|
|
|
|
BuildRequires: systemd
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
BuildRequires: autoconf-archive
|
|
|
|
|
BuildRequires: pkgconfig(cmocka)
|
|
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
|
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
|
|
|
|
BuildRequires: pkgconfig(tss2-mu)
|
|
|
|
|
BuildRequires: pkgconfig(tss2-sys)
|
|
|
|
|
# tpm2-abrmd depends on tpm2-tss-devel for tss2-mu/sys libs
|
|
|
|
|
BuildRequires: tpm2-tss-devel >= 2.4.0
|
|
|
|
|
%if 0%{?with_tests}
|
|
|
|
|
BuildRequires: pkgconfig(cmocka)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# tpm2-abrmd depends on the package that contains its SELinux policy module
|
|
|
|
|
Requires: (%{name}-selinux >= 2.0.0-1%{?dist} if selinux-policy-%{selinuxtype})
|
|
|
|
|
Requires(pre): tpm2-tss >= 2.4.0
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
tpm2-abrmd is a system daemon implementing the TPM2 access broker (TAB) and
|
|
|
|
@ -46,7 +50,9 @@ required to build applications that use tpm2-abrmd.
|
|
|
|
|
%build
|
|
|
|
|
%configure --disable-static --disable-silent-rules \
|
|
|
|
|
--with-systemdsystemunitdir=%{_unitdir} \
|
|
|
|
|
--with-systemdpresetdir=%{_presetdir}
|
|
|
|
|
--with-systemdpresetdir=%{_presetdir} \
|
|
|
|
|
--with-dbuspolicydir=%{_datarootdir}/dbus-1/system.d/
|
|
|
|
|
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
@ -54,16 +60,10 @@ required to build applications that use tpm2-abrmd.
|
|
|
|
|
find %{buildroot}%{_libdir} -type f -name \*.la -delete
|
|
|
|
|
rm -f %{buildroot}/%{_presetdir}/tpm2-abrmd.preset
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
getent group tss >/dev/null || groupadd -f -g 59 -r tss
|
|
|
|
|
if ! getent passwd tss >/dev/null ; then
|
|
|
|
|
if ! getent passwd 59 >/dev/null ; then
|
|
|
|
|
useradd -r -u 59 -g tss -d /dev/null -s /sbin/nologin -c "Account used for TPM access" tss
|
|
|
|
|
else
|
|
|
|
|
useradd -r -g tss -d /dev/null -s /sbin/nologin -c "Account used for TPM access" tss
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
exit 0
|
|
|
|
|
%if 0%{?with_tests}
|
|
|
|
|
%check
|
|
|
|
|
make check
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%systemd_post tpm2-abrmd.service
|
|
|
|
@ -79,7 +79,7 @@ exit 0
|
|
|
|
|
%doc README.md CHANGELOG.md
|
|
|
|
|
%{_libdir}/libtss2-tcti-tabrmd.so.*
|
|
|
|
|
%{_sbindir}/tpm2-abrmd
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/tpm2-abrmd.conf
|
|
|
|
|
%{_datarootdir}/dbus-1/system.d/tpm2-abrmd.conf
|
|
|
|
|
%{_datarootdir}/dbus-1/system-services/com.intel.tss2.Tabrmd.service
|
|
|
|
|
%{_unitdir}/tpm2-abrmd.service
|
|
|
|
|
%{_mandir}/man3/Tss2_Tcti_Tabrmd_Init.3*
|
|
|
|
@ -93,12 +93,44 @@ exit 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.4.0-3
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Tue Nov 26 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 3.0.0-6
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 3.0.0-6
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Sep 26 2023 Štěpán Horáček <shoracek@redhat.com> - 3.0.0-4
|
|
|
|
|
- Migrate license to SPDX
|
|
|
|
|
|
|
|
|
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Dec 21 2022 Peter Robinson <pbrobinson@fedoraproject.org> - 3.0.0-1
|
|
|
|
|
- Update to 3.0.0
|
|
|
|
|
|
|
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Mar 17 2022 Peter Robinson <pbrobinson@fedoraproject.org> - 2.4.1-1
|
|
|
|
|
- Update to 2.4.1
|
|
|
|
|
|
|
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jun 12 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 2.4.0-3
|
|
|
|
|
- The tpm2-tss creates the tss user
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.4.0-2
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Sat Jun 12 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 2.4.0-2
|
|
|
|
|
- Fix DBus policy location (rhbz #1955150), enable tests
|
|
|
|
|
|
|
|
|
|
* Tue Feb 09 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 2.4.0-1
|
|
|
|
|
- Update to 2.4.0
|
|
|
|
|