Skip to content

Commit f221577

Browse files
dirkmuellernmorey
authored andcommitted
suse: switch to systemd_requires
Replace direct Requires of systemd/udev by a systemd provided macros. Signed-off-by: Dirk Müller <dmueller@suse.com> Signed-off-by: Nicolas Morey <nmorey@suse.com>
1 parent ff68db8 commit f221577

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

suse/rdma-core.spec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,11 @@ BuildRequires: valgrind-devel
9898
BuildRequires: systemd-rpm-macros
9999
BuildRequires: pkgconfig(libnl-3.0)
100100
BuildRequires: pkgconfig(libnl-route-3.0)
101+
%if %{with systemd}
101102
BuildRequires: pkgconfig(systemd)
103+
%{systemd_requires}
102104
Requires: kmod
103-
Requires: systemd
104-
Requires: udev
105+
%endif
105106
Recommends: rdma-ndd
106107

107108
# SUSE previously shipped rdma as a stand-alone

0 commit comments

Comments
 (0)