File nf3d.spec of Package nf3d

#
# spec file for package nf3d
#
# Copyright (c) 2013 SUSE LINUX Products 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:           nf3d
Version:        0.7
Release:        0
Summary:        GANTT-style visualization for Netfilter connections and logged packets
License:        GPL-3.0
Group:          Productivity/Networking/Security
Url:            http://netfilter.org/projects/nf3d/

#Freecode-URL:	http://freecode.com/projects/nf3d/
#Git-Clone:	git://github.com/regit/nf3d
#DL-URL:	http://home.regit.org/wp-content/uploads/2013/02/nf3d-0.7.tar.gz
Source:         %name-%version.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:	python-setuptools, xz

# RHE5...*yawn*
%{!?python_sitelib:  %global python_sitelib  %(%__python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%__python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

%description
nf3d is a Netfilter visualization tool. It displays connections and
logged packets in a GANTT diagram fashion.

%prep
%if 0%{?__xz:1}
%setup -q
%else
tar -xf "%{S:0}" --use=xz;
%setup -DTq
%endif

%build
export CFLAGS="%optflags"
python setup.py build

%install
python setup.py install --root="%buildroot" --prefix="%_prefix"

%files
%defattr(-,root,root)
%_bindir/nf3d
%python_sitelib/nf3d*

%changelog
openSUSE Build Service is sponsored by