diff --git a/ipset.spec b/ipset.spec index d19fe26..05193a5 100644 --- a/ipset.spec +++ b/ipset.spec @@ -35,22 +35,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool -BuildRequires: pkgconfig >= 0.21 -%if 0%{?suse_version} >= 1140 || 0%{?fedora_version} -BuildRequires: pkgconfig(libmnl) >= 1 -%else -BuildRequires: libmnl-devel >= 1 -%endif -%if 0%{?suse_version} >= 1140 BuildRequires: linux-glibc-devel >= 2.6.24 -%endif -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -BuildRequires: linux-kernel-headers >= 2.6.24 -%endif -%if 0%{?redhat_version} || 0%{?centos_version} || 0%{?fedora_version} -BuildRequires: kernel-headers >= 2.6.24 -%endif -%if 0%{?suse_version} +BuildRequires: pkgconfig >= 0.21 +BuildRequires: pkgconfig(libmnl) >= 1 # Make quilt happy %if 0%{?kernel_module_package_buildreqs:1} %define with_kmp 1 @@ -58,7 +45,6 @@ BuildRequires: %kernel_module_package_buildreqs %endif BuildRequires: kernel-syms >= 2.6.39 Recommends: %name-kmp -%endif %if 0%{?with_kmp:1} %kernel_module_package -p %name-preamble