File iptstate.spec of Package iptstate
#
# spec file for package iptstate
#
# 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/
#
Name: iptstate
Summary: Display IP Tables state table information in a "top"-like interface
Version: 2.2.6
Release: 0
Group: System/Monitoring
License: zlib/libpng License
Source: http://ovh.dl.sourceforge.net/project/iptstate/iptstate/%{version}/iptstate-%{version}.tar.bz2
Patch1: iptstate-makefile.patch
URL: http://www.phildev.net/iptstate/
BuildRoot: %{_tmppath}/%{name}-buildroot
BuildRequires: gcc-c++ make libstdc++-devel pkgconfig
BuildRequires: libnetfilter_conntrack-devel
BuildRequires: libnfnetlink-devel
BuildRequires: ncurses-devel
%description
IP Tables State implements the "state top" feature from IP Filter for
IP Tables. "State top" displays the states held by your stateful firewall in a
"top"-like manner. Since IP Tables doesn't have a built-in way to easily
display this information once, an option was added to iptstate to do this.
Authors:
--------
Phil Dibowitz <phil@ipom.com>
%prep
%setup -q
%patch1
%build
%__make %{?jobs:-j%{jobs}}
#\
# CXXFLAGS="%{optflags}" \
# CPPFLAGS=-DIPTSTATE_USE_PROC
%install
%makeinstall PREFIX="%{_prefix}" MAN="%{_mandir}"
%clean
[ -d %{buildroot} -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%doc BUGS CONTRIB Changelog LICENSE README.md WISHLIST
%{_sbindir}/iptstate
%doc %{_mandir}/man8/iptstate.8*
%changelog