File kismet.spec of Package kismet

#
# spec file for package kismet (Version 2010_01_R1)
#
# Copyright (c) 2010 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/
#

# norootforbuild


Name:           kismet
BuildRequires:  ImageMagick-devel gcc-c++ gmp-devel libpcap-devel wget wireshark-devel
BuildRequires:  libexpat-devel libnl-devel ncurses-devel pcre-devel
Version:        2010_01_R1
Release:        1
%define realver 2010-01-R1
Requires:       wget wireless-tools
AutoReqProv:    on
Group:          Productivity/Networking/Diagnostic
License:        GPLv2+
Url:            http://www.kismetwireless.net/
Summary:        An 802.11 Wireless Network Sniffer
Source:         %{name}-%{realver}.tar.bz2
Patch0:         %{name}-2010-01-R1-makefile.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Kismet is an 802.11 wireless network sniffer. This is different from a
normal network sniffer (such as Ethereal or tcpdump) because it
separates and identifies different wireless networks in the area.
Kismet works with any 802.11b wireless card that is capable of
reporting raw packets (rfmon support), which include any Prism2-based
cards (Linksys, D-Link, Rangelan, and more), Cisco Aironet cards, and
Orinoco-based cards. Kismet also supports the WSP100 802.11b remote
sensor by Network Chemistry and is able to monitor 802.11a networks
with cards that use the ar5k chipset.



Authors:
--------
    Mike Kershaw <dragorn@kismetwireless.net>

%prep
%setup -q -n %{name}-%{realver}
%patch0

%build
export CFLAGS="$RPM_OPT_FLAGS -Wall -fstack-protector -fno-strict-aliasing `ncurses5-config --cflags`"
export CXXFLAGS="$RPM_OPT_FLAGS -Wall -fstack-protector -fno-strict-aliasing `ncurses5-config --cflags`"
export LDFLAGS="-Wl,--as-needed"
%configure --enable-ipv6 --disable-setuid
make dep
%{__make} %{?jobs:-j%jobs}

%install
make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc CHANGELOG GPL README docs/
%{_mandir}/man?/*
%config %{_sysconfdir}/kismet.conf
%config %{_sysconfdir}/kismet_drone.conf
%{_datadir}/kismet
%{_bindir}/*

%changelog
openSUSE Build Service is sponsored by