forked from pool/ipset
ipset-6.20
OBS-URL: https://build.opensuse.org/package/show/security:netfilter/ipset?expand=0&rev=31
This commit is contained in:
16
ipset.spec
16
ipset.spec
@@ -18,7 +18,7 @@
|
||||
|
||||
Name: ipset
|
||||
%define lname libipset3
|
||||
Version: 6.19
|
||||
Version: 6.20
|
||||
Release: 0
|
||||
Summary: Netfilter ipset administration utility
|
||||
License: GPL-2.0
|
||||
@@ -31,9 +31,12 @@ Url: http://ipset.netfilter.org/
|
||||
#Git-Web: http://git.netfilter.org/
|
||||
Source: %name-%version.tar.xz
|
||||
Source3: %name-preamble
|
||||
Patch1: sles11.diff
|
||||
Patch1: 0001-build-fix-incorrect-library-versioning.patch
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkgconfig >= 0.21
|
||||
BuildRequires: xz
|
||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
||||
@@ -123,6 +126,7 @@ tar --use=xz -xf "%{S:0}";
|
||||
%setup -DTq
|
||||
%endif
|
||||
%patch -P 1 -p1
|
||||
autoreconf -fi
|
||||
|
||||
%build
|
||||
%if 0%{?with_kmp}
|
||||
@@ -132,12 +136,13 @@ for flavor in %flavors_to_build; do
|
||||
# ksource: it just checks for a header
|
||||
%configure --disable-static \
|
||||
--with-kbuild="/usr/src/linux-obj/%_target_cpu/$flavor" \
|
||||
--with-ksource="/usr/src/linux";
|
||||
--with-ksource="/usr/src/linux" \
|
||||
--includedir="%_includedir/pkg"
|
||||
make %{?_smp_mflags} all modules;
|
||||
popd;
|
||||
done;
|
||||
%else
|
||||
%configure --disable-static --with-kmod=no
|
||||
%configure --disable-static --with-kmod=no --includedir="%_includedir/pkg"
|
||||
make %{?_smp_mflags};
|
||||
%endif
|
||||
|
||||
@@ -171,6 +176,7 @@ find "$b/%_libdir" -type f -name "*.la" -delete;
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%_libdir/libipset.so
|
||||
%_includedir/libipset
|
||||
%_libdir/pkgconfig/libipset.pc
|
||||
%_includedir/pkg/
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user