Name: tpm2-abrmd Version: 2.2.0 Release: 1 Summary: A system daemon implementing the TPM2 access broker (TAB) & Resource Manager (RM) spec from the TCG License: BSD URL: https://github.com/tpm2-software/tpm2-abrmd Source0: https://github.com/tpm2-software/tpm2-abrmd/releases/download/%{version}/%{name}-%{version}.tar.gz BuildRequires: systemd pkgconfig(cmocka) pkgconfig(dbus-1) pkgconfig(gio-unix-2.0) pkgconfig(tss2-mu) pkgconfig(tss2-sys) BuildRequires: tpm2-tss-devel libtool autoconf-archive libgcrypt libgcrypt-devel BuildRequires: chrpath %description This is a system daemon implementing the TPM2 access broker (TAB) & Resource Manager (RM) spec from the TCG. The daemon (tpm2-abrmd) is implemented using Glib and the GObject system. %package devel Summary: Files necessary to develop applications with tpm2-abrmd Requires: %{name}%{_isa} = %{version}-%{release} Requires: tpm2-tss-devel %description devel This package contains development library files, headers and config files of tpm2-abrmd %package_help %prep %autosetup -p1 -n %{name}-%{version} %build export GDBUS_CODEGEN="/usr/bin/gdbus-codegen" %configure --disable-static --disable-silent-rules \ --with-systemdsystemunitdir=%{_unitdir} \ --with-systemdpresetdir=%{_presetdir} %make_build %install %make_install %delete_la_and_a #Remove Rpath chrpath -d $RPM_BUILD_ROOT%{_libdir}/libtss2-tcti-tabrmd.so.0.0.0 chrpath -d $RPM_BUILD_ROOT%{_sbindir}/tpm2-abrmd mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d echo "/usr/lib64/" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf %check make test %pre #add a user to sandbox the tpm2-abrmd daemon getent group tss >/dev/null || groupadd -g 59 -r tss getent passwd tss >/dev/null || \ useradd -r -u 59 -g tss -d /dev/null -s /sbin/nologin \ -c "Account used by the tpm2-abrmd package to sandbox the tpm2-abrmd daemon" tss exit 0 %preun %systemd_preun tpm2-abrmd.service %post /sbin/ldconfig %systemd_post tpm2-abrmd.service %postun /sbin/ldconfig %systemd_postun tpm2-abrmd.service %files %defattr(-,root,root) %license LICENSE %doc README.md CHANGELOG.md %{_libdir}/libtss2-tcti-tabrmd.so.* %{_sbindir}/tpm2-abrmd %{_unitdir}/tpm2-abrmd.service %{_presetdir}/tpm2-abrmd.preset %{_datadir}/dbus-1/system-services/com.intel.tss2.Tabrmd.service %config(noreplace) %{_sysconfdir}/dbus-1/system.d/tpm2-abrmd.conf %config(noreplace) /etc/ld.so.conf.d/* %files devel %defattr(-,root,root) %{_includedir}/tss2/tss2-tcti-tabrmd.h %{_libdir}/libtss2-tcti-tabrmd.so %{_libdir}/pkgconfig/tss2-tcti-tabrmd.pc %files help %{_mandir}/man3/*.3.gz %{_mandir}/man7/*.7.gz %{_mandir}/man8/*.8.gz %changelog * Fri Apr 24 2020 wanghongzhe - 2.2.0-1 - Type:enhancement - ID:NA - SUG:NA - DESC: update to 2.2.0 * Wed Mar 25 2020 wanghongzhe - 2.0.1-4.h2 - Type:enhancement - ID:NA - SUG:NA - DESC: fix communication faild to tpm because updated glib2 * Sat Mar 7 2020 wanghongzhe - 2.0.1-4.h1 - Type:enhancement - ID:NA - SUG:NA - DESC: remove rpath and runpath of exec files and libraries * Wed Jan 22 2020 openEuler Buildteam - 2.0.1-4 - Add buildrequires of libgcrypt-devel * Wed Jan 22 2020 openEuler Buildteam - 2.0.1-3 - Type: enhancement - ID: NA - SUG: NA - DESC:add buildrequires * Fri Sep 20 2019 openEuler Buildteam - 2.0.1-2 - Package init