Matthias Gerstner 2018-07-03 10:46:16 +00:00 committed by Git OBS Bridge
parent 61a8990276
commit 89d067305c

View File

@ -36,6 +36,10 @@ BuildRequires: pkgconfig(tss2-sys)
Requires(pre): pwdutils Requires(pre): pwdutils
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch0: fix_dlopen.patch 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 %description
The tpm2.0-abrmd package provides the TPM2 Access Broker & Resource Manager. 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 # don't install the systemd preset, our presets are handled by
# systemd-presets-* packages # systemd-presets-* packages
rm %{buildroot}/usr/lib*/systemd/system-preset/tpm2-abrmd.preset 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 %pre
%service_add_pre tpm2-abrmd.service %service_add_pre tpm2-abrmd.service
@ -104,7 +112,7 @@ rm %{buildroot}/usr/lib*/systemd/system-preset/tpm2-abrmd.preset
%{_sbindir}/tpm2-abrmd %{_sbindir}/tpm2-abrmd
%{_sbindir}/rctpm2-abrmd %{_sbindir}/rctpm2-abrmd
%{_unitdir}/tpm2-abrmd.service %{_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 # the auto activation is not whitelisted for <= SLE12-SP3
%config %{_sysconfdir}/dbus-1/system.d/tpm2-abrmd.conf %config %{_sysconfdir}/dbus-1/system.d/tpm2-abrmd.conf
%{_datadir}/dbus-1/system-services/com.intel.tss2.Tabrmd.service %{_datadir}/dbus-1/system-services/com.intel.tss2.Tabrmd.service