c4eef8c
Name:          ipset
5254985
Version:       6.16.1
65945b9
Release:       2%{?dist}
c4eef8c
Summary:       Manage Linux IP sets
c4eef8c
c4eef8c
License:       GPLv2
c4eef8c
URL:           http://ipset.netfilter.org/
c4eef8c
Source0:       http://ipset.netfilter.org/%{name}-%{version}.tar.bz2
c4eef8c
c4eef8c
BuildRequires: libmnl-devel
c4eef8c
c4eef8c
# This is developped hand in hand with a kernel module
bd3d7b7
Requires:      kernel
c4eef8c
c4eef8c
%description
c4eef8c
IP sets are a framework inside the Linux 2.4.x and 2.6.x kernel, which can be
c4eef8c
administered by the ipset utility. Depending on the type, currently an IP set
c4eef8c
may store IP addresses, (TCP/UDP) port numbers or IP addresses with MAC
c4eef8c
addresses in a way, which ensures lightning speed when matching an entry
c4eef8c
against a set.
c4eef8c
c4eef8c
If you want to:
c4eef8c
 - store multiple IP addresses or port numbers and match against the collection
c4eef8c
   by iptables at one swoop;
c4eef8c
 - dynamically update iptables rules against IP addresses or ports without
c4eef8c
   performance penalty;
c4eef8c
 - express complex IP address and ports based rulesets with one single iptables
c4eef8c
   rule and benefit from the speed of IP sets
c4eef8c
then ipset may be the proper tool for you.
c4eef8c
9caff1a
%package libs
9caff1a
Summary:       Shared library providing the IP sets functionality
9caff1a
9caff1a
%description libs
9caff1a
This package contains the libraries which provide the IP sets funcionality.
c4eef8c
c4eef8c
%package devel
c4eef8c
Summary:       Development files for %{name}
af9c68b
Requires:      %{name}-libs%{?_isa} == %{version}-%{release}
bd3d7b7
Requires:      kernel-devel
c4eef8c
c4eef8c
%description devel
c4eef8c
This package contains the files required to develop software using the %{name}
c4eef8c
libraries.
c4eef8c
c4eef8c
c4eef8c
%prep
c4eef8c
%setup -q
c4eef8c
c4eef8c
# Just to make absolutely sure we are not building the bundled kernel module
c4eef8c
rm -fr kernel
c4eef8c
c4eef8c
c4eef8c
%build
c4eef8c
%configure --enable-static=no --with-kmod=no
c4eef8c
c4eef8c
# Prevent libtool from defining rpath
c4eef8c
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
c4eef8c
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
c4eef8c
c4eef8c
make %{?_smp_mflags}
c4eef8c
c4eef8c
c4eef8c
%install
dbbd648
make install DESTDIR=%{buildroot}
c4eef8c
find %{buildroot} -name '*.la' -exec rm -f '{}' \;
c4eef8c
c4eef8c
75f71d0
%post libs -p /sbin/ldconfig
c4eef8c
c4eef8c
75f71d0
%postun libs -p /sbin/ldconfig
c4eef8c
c4eef8c
c4eef8c
%files
dbbd648
%doc COPYING ChangeLog
c4eef8c
%doc %{_mandir}/man8/%{name}.8.gz
c4eef8c
%{_sbindir}/%{name}
9caff1a
9caff1a
%files libs
9caff1a
%doc COPYING
d5748a5
%{_libdir}/lib%{name}.so.3
d5748a5
%{_libdir}/lib%{name}.so.3.0.1
c4eef8c
c4eef8c
%files devel
71acab3
%{_includedir}/lib%{name}
c4eef8c
%{_libdir}/lib%{name}.so
c4eef8c
c4eef8c
c4eef8c
%changelog
65945b9
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.16.1-2
65945b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
65945b9
5254985
* Wed Sep 26 2012 Mathieu Bridon <bochecha@fedoraproject.org> - 6.16.1-1
5254985
- New upstream release.
5254985
- Fix a requirement.
5254985
9b28e1d
* Wed Sep 26 2012 Mathieu Bridon <bochecha@fedoraproject.org> - 6.14-1
9b28e1d
- New upstream release.
75f71d0
- Fix scriptlets, ldconfig is needed for the libs subpackage, not the main one.
75f71d0
d5748a5
* Mon Jul 30 2012 Mathieu Bridon <bochecha@fedoraproject.org> - 6.13-1
d5748a5
- New upstream release.
9caff1a
- Split out the library in its own subpackage.
d5748a5
b18ba51
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.11-2
b18ba51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b18ba51
71acab3
* Mon Feb 06 2012 Mathieu Bridon <bochecha@fedoraproject.org> - 6.11-1
71acab3
- New upstream release.
71acab3
- Removed our patch, it has been integrated upstream. As such, we also don't
71acab3
  need to re-run autoreconf any more.
71acab3
4b3ccb1
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.9.1-3
4b3ccb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4b3ccb1
dbbd648
* Fri Sep 16 2011 Mathieu Bridon <bochecha@fedoraproject.org> - 6.9.1-2
dbbd648
- Some fixes based on Pierre-Yves' review feedback.
dbbd648
c4eef8c
* Wed Sep 14 2011 Mathieu Bridon <bochecha@fedoraproject.org> - 6.9.1-1
c4eef8c
- Initial packaging.