ipset-6.15+
OBS-URL: https://build.opensuse.org/package/show/security:netfilter/ipset?expand=0&rev=17
This commit is contained in:
15
ipset.spec
15
ipset.spec
@@ -31,8 +31,13 @@ Url: http://ipset.netfilter.org/
|
||||
Source: %name-%version.tar.xz
|
||||
Source3: %name-preamble
|
||||
Patch1: sles11.diff
|
||||
Patch2: 0001-build-support-for-Linux-3.7-UAPI.patch
|
||||
Patch3: 0001-build-Linux-3.7-netlink-fun.patch
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake >= 1.11
|
||||
BuildRequires: libtool >= 2
|
||||
BuildRequires: pkgconfig >= 0.21
|
||||
BuildRequires: xz
|
||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
||||
@@ -47,7 +52,7 @@ BuildRequires: linux-glibc-devel >= 2.6.24
|
||||
BuildRequires: linux-kernel-headers >= 2.6.24
|
||||
%endif
|
||||
%if 0%{?redhat_version} || 0%{?centos_version} || 0%{?fedora_version}
|
||||
#BuildRequires: kernel-headers >= 2.6.24
|
||||
BuildRequires: kernel-headers >= 2.6.24
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
# Make quilt happy
|
||||
@@ -121,9 +126,15 @@ when matching an entry against a set.
|
||||
tar --use=xz -xf "%{S:0}";
|
||||
%setup -DTq
|
||||
%endif
|
||||
%patch -P 1 -p1
|
||||
%patch -P 1 -P 2 -p1
|
||||
%if "%_repository" == "Kernel_HEAD"
|
||||
%patch -P 3 -p1
|
||||
%endif
|
||||
|
||||
%build
|
||||
# patch2: force reconf
|
||||
autoreconf -fi;
|
||||
|
||||
%if 0%{?with_kmp}
|
||||
for flavor in %flavors_to_build; do
|
||||
cp -a . "../%name-$flavor-%version";
|
||||
|
Reference in New Issue
Block a user