This commit is contained in:
parent
61a8990276
commit
89d067305c
@ -36,6 +36,10 @@ BuildRequires: pkgconfig(tss2-sys)
|
||||
Requires(pre): pwdutils
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Patch0: fix_dlopen.patch
|
||||
# the auto activation is not whitelisted for <= SLE12-SP3
|
||||
%if 0%{?sle_version} > 120300 || 0%{?is_opensuse}
|
||||
%define install_dbus_files 1
|
||||
%endif
|
||||
|
||||
%description
|
||||
The tpm2.0-abrmd package provides the TPM2 Access Broker & Resource Manager.
|
||||
@ -83,6 +87,10 @@ ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rctpm2-abrmd
|
||||
# don't install the systemd preset, our presets are handled by
|
||||
# systemd-presets-* packages
|
||||
rm %{buildroot}/usr/lib*/systemd/system-preset/tpm2-abrmd.preset
|
||||
%if ! 0%{?install_dbus_files}
|
||||
rm %{_sysconfdir}/dbus-1/system.d/tpm2-abrmd.conf
|
||||
rm %{_datadir}/dbus-1/system-services/com.intel.tss2.Tabrmd.service
|
||||
%endif
|
||||
|
||||
%pre
|
||||
%service_add_pre tpm2-abrmd.service
|
||||
@ -104,7 +112,7 @@ rm %{buildroot}/usr/lib*/systemd/system-preset/tpm2-abrmd.preset
|
||||
%{_sbindir}/tpm2-abrmd
|
||||
%{_sbindir}/rctpm2-abrmd
|
||||
%{_unitdir}/tpm2-abrmd.service
|
||||
%if 0%{?sle_version} > 120200 || 0%{?is_opensuse}
|
||||
%if 0%{?install_dbus_files}
|
||||
# the auto activation is not whitelisted for <= SLE12-SP3
|
||||
%config %{_sysconfdir}/dbus-1/system.d/tpm2-abrmd.conf
|
||||
%{_datadir}/dbus-1/system-services/com.intel.tss2.Tabrmd.service
|
||||
|
Loading…
Reference in New Issue
Block a user