Browse Source

Define requires according to the installed kernel.

thanks @mika for suggestion
pull/740/head
netaskd 7 years ago
committed by GitHub
parent
commit
c2ad397cc1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      el/rtpengine.spec

+ 5
- 1
el/rtpengine.spec View File

@ -50,7 +50,11 @@ Summary: Kernel module for NGCP rtpengine in-kernel packet forwarding
Group: System Environment/Daemons
BuildArch: noarch
BuildRequires: redhat-rpm-config
Requires: gcc make kernel-devel
Requires: gcc make
# Define requires according to the installed kernel.
%{?rhel:Requires: kernel-devel}
%{?fedora:Requires: kernel-devel}
%{?suse_version:Requires: kernel-source}
Requires(post): dkms
Requires(preun): dkms


Loading…
Cancel
Save