From 4dd958404356dc3cfbe3ee6993514123a4ec3548 Mon Sep 17 00:00:00 2001 From: Honggang Li Date: Wed, 22 Sep 2021 10:07:13 -0400 Subject: [PATCH] Fix Systemd Scriptlets Signed-off-by: Honggang Li --- rdma-core.spec | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/rdma-core.spec b/rdma-core.spec index 6665ca1..0346493 100644 --- a/rdma-core.spec +++ b/rdma-core.spec @@ -1,6 +1,6 @@ Name: rdma-core Version: 37.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: RDMA core userspace libraries and daemons # Almost everything is licensed under the OFA dual GPLv2, 2 Clause BSD license @@ -208,9 +208,7 @@ displays information about RDMA devices. %package -n ibacm Summary: InfiniBand Communication Manager Assistant -Requires(post): systemd-units -Requires(preun): systemd-units -Requires(postun): systemd-units +%{?systemd_requires} %description -n ibacm The ibacm daemon helps reduce the load of managing path record lookups on @@ -224,9 +222,7 @@ library knows how to talk directly to the ibacm daemon to retrieve data. %package -n iwpmd Summary: iWarp Port Mapper userspace daemon -Requires(post): systemd-units -Requires(preun): systemd-units -Requires(postun): systemd-units +%{?systemd_requires} %description -n iwpmd iwpmd provides a userspace service for iWarp drivers to claim @@ -258,9 +254,7 @@ Summary: Tools for using the InfiniBand SRP protocol devices Obsoletes: srptools <= 1.0.3 Provides: srptools = %{version}-%{release} Obsoletes: openib-srptools <= 0.0.6 -Requires(post): systemd-units -Requires(preun): systemd-units -Requires(postun): systemd-units +%{?systemd_requires} %description -n srp_daemon In conjunction with the kernel ib_srp driver, srp_daemon allows you to @@ -666,6 +660,9 @@ fi %endif %changelog +* Sun Sep 26 2021 Honggang Li - 37.0-2 +- Use systemd scriptlets + * Wed Sep 22 2021 Honggang Li - 37.0-1 - Rebase to upstream release v37.0