SHA256
1
0
forked from pool/ipset
ipset/ipset.spec
Kristyna Streitova d6162b1d5e Accepting request 354634 from home:kstreitova:branches:security:netfilter
- update to 6.27:
  * kernel part changes
    * fix reported memory size for hash:* types
    * fix hash type expire: release empty hash bucket block
    * fix hash type expiration: incorrect index fixed
    * collapse same condition body to a single one
    * fix extension alignment
    * compatibility: include linux/export.h when needed
    * compatibility: make sure vmalloc.h is included for kvfree()
    * compatibility: Fix detecting 'struct net' in 'struct tcf_ematch'
    * compatibility: Protect definition of RCU_INIT_POINTER in 
      compatibility header file
    * netfilter: ipset: Fix sleeping memory allocation in atomic
      context (Nikolay Borisov)
  * userspace changes
    * handle uint64_t alignment issue in ipset tool
- disable KMP build as we support the in-kernel version instead.
  Remove ipset-preamble file that is no longer needed [bsc#962345]
- run spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/354634
OBS-URL: https://build.opensuse.org/package/show/security:netfilter/ipset?expand=0&rev=49
2016-01-19 13:12:16 +00:00

109 lines
3.5 KiB
RPMSpec

#
# spec file for package ipset
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define lname libipset3
Name: ipset
Version: 6.27
Release: 0
Summary: Netfilter ipset administration utility
License: GPL-2.0
Group: Productivity/Networking/Security
Url: http://ipset.netfilter.org/
#Git-Clone: git://git.netfilter.org/ipset
#Git-Web: http://git.netfilter.org/
Source: ftp://ftp.netfilter.org/pub/ipset/%{name}-%{version}.tar.bz2
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: linux-glibc-devel >= 2.6.24
BuildRequires: pkgconfig >= 0.21
BuildRequires: pkgconfig(libmnl) >= 1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
IP sets are a framework inside the Linux kernel, which can be
administered by the ipset utility. Depending on the type, currently
an IP set may store IP addresses, (TCP/UDP) port numbers or IP
addresses with MAC addresses in a way, which ensures lightning speed
when matching an entry against a set.
ipset can:
* store multiple IP addresses or port numbers and match against the
collection by iptables at one swoop;
* dynamically update iptables rules against IP addresses or ports
without performance penalty;
* express complex IP address and ports based rulesets with one single
iptables rule and benefit from the speed of IP sets
%package -n %{lname}
Summary: Userspace library for the in-kernel Netfilter ipset interface
Group: System/Libraries
%description -n %{lname}
IP sets are a framework inside the Linux kernel, which can be
administered by the ipset utility. Depending on the type, currently
an IP set may store IP addresses, (TCP/UDP) port numbers or IP
addresses with MAC addresses in a way, which ensures lightning speed
when matching an entry against a set.
%package devel
Summary: Development files for ipset extensions
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}
%description devel
IP sets are a framework inside the Linux kernel, which can be
administered by the ipset utility. Depending on the type, currently
an IP set may store IP addresses, (TCP/UDP) port numbers or IP
addresses with MAC addresses in a way, which ensures lightning speed
when matching an entry against a set.
%prep
%setup -q
%build
%configure --disable-static \
--with-kmod=no \
--includedir="%{_includedir}/pkg/%{name}"
make %{?_smp_mflags};
%install
make %{?_smp_mflags} install DESTDIR="%{buildroot}";
find %{buildroot} -type f -name "*.la" -delete -print
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_sbindir}/ipset
%{_mandir}/man*/*
%files -n %{lname}
%defattr(-,root,root)
%{_libdir}/libipset.so.3*
%files devel
%defattr(-,root,root)
%{_libdir}/libipset.so
%{_libdir}/pkgconfig/libipset.pc
%{_includedir}/pkg/
%changelog