File conntrack-tools.spec of Package conntrack-tools.992

#
# spec file for package conntrack-tools
#
# Copyright (c) 2015 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/
#


Name:           conntrack-tools
Version:        1.4.2
Release:        0
Url:            http://conntrack-tools.netfilter.org/
Summary:        Userspace tools for interacting with the Connection Tracking System
License:        GPL-2.0+
Group:          Productivity/Networking/Security

#Freecode-URL:	http://freecode.com/projects/conntrack-tools/
#Git-Clone:	git://git.netfilter.org/conntrack-tools
#DL-URL:	http://netfilter.org/projects/conntrack-tools/files/
Source:         http://netfilter.org/projects/conntrack-tools/files/%name-%version.tar.bz2
Source2:        http://netfilter.org/projects/conntrack-tools/files/%name-%version.tar.bz2.sig
Source3:        %name.keyring
Patch1:         conntrack-tools-1.4.2-fix-conntrackd-crash-modules-not-loaded.patch

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  bison
BuildRequires:  flex >= 2.5.33
BuildRequires:  pkgconfig >= 0.21
%if 0%{?suse_version} >= 1140
BuildRequires:  pkgconfig(libmnl) >= 1.0.0
BuildRequires:  pkgconfig(libnetfilter_conntrack) >= 1.0.4
BuildRequires:  pkgconfig(libnetfilter_cthelper) >= 1.0.0
BuildRequires:  pkgconfig(libnetfilter_cttimeout) >= 1.0.0
BuildRequires:  pkgconfig(libnetfilter_queue) >= 1.0.2
BuildRequires:  pkgconfig(libnfnetlink) >= 1.0.1
%else
BuildRequires:  libmnl-devel >= 1.0.0
BuildRequires:  libnetfilter_conntrack-devel >= 1.0.4
BuildRequires:  libnetfilter_cthelper-devel >= 1.0.0
BuildRequires:  libnetfilter_cttimeout-devel >= 1.0.0
BuildRequires:  libnetfilter_queue-devel >= 1.0.2
BuildRequires:  libnfnetlink-devel >= 1.0.1
%endif
%if 0%{?suse_version} >= 1230
BuildRequires:  gpg-offline
%endif

%description
The conntrack-tools are a set of tools targeted at system
administrators. They are conntrack, the userspace command line
interface, and conntrackd, the userspace daemon. The tool conntrack
provides a full featured interface that has replaced the old procfs
interface. Using conntrack, you can view and manage the in-kernel
connection tracking state table from userspace. On the other hand,
conntrackd covers the specific aspects of stateful firewalls to
enable highly available scenarios, and can be used as statistics
collector as well.

%prep
%{?gpg_verify: %gpg_verify %{S:2}}
%setup -q
%patch1 -p1

%build
%configure --disable-static
make %{?_smp_mflags}

%install
b="%buildroot";
make install DESTDIR="$b";
find "$b/%_libdir" -type f -name "*.la" -delete;

%files
%defattr(-,root,root)
%doc AUTHORS TODO doc/stats/conntrackd.conf
%_sbindir/conntrack
%_sbindir/conntrackd
%_sbindir/nfct
%_libdir/%name
%_mandir/man8/*

%changelog
openSUSE Build Service is sponsored by