File reaver.spec of Package reaver

#
# spec file for package reaver
#
# Copyright (c) 2013 Sidlovsky, Yaroslav <zawertun@gmail.com>
#
# 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:           reaver
Version:        1.4
Release:        1
License:        GPL-2.0
Summary:        Brute force attack against WPS
Url:            http://code.google.com/p/reaver-wps/
Group:          Productivity/Networking/Diagnostic
Source0:        %{name}-%{version}.tar.bz2
BuildRequires:  libpcap-devel
BuildRequires:  sqlite3-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Reaver implements a brute force attack against Wifi Protected Setup (WPS)
registrar PINs in order to recover WPA/WPA2 passphrases, as described in
http://sviehb.files.wordpress.com/2011/12/viehboeck_wps.pdf.

Reaver has been designed to be a robust and practical attack against WPS,
and has been tested against a wide variety of access points and WPS
implementations.

%prep
%setup -q

%build
cd src
%configure

CFLAGS="%{optflags}" make %{?_smp_mflags}

%install
install -D -m 0755 src/reaver %{buildroot}%{_bindir}/reaver
install -D -m 0755 src/wash %{buildroot}%{_bindir}/wash
install -D -m 0644 docs/reaver.1.gz %{buildroot}%{_mandir}/man1/reaver.1.gz

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root)
%doc docs/README docs/README.REAVER docs/README.WASH
%doc %{_mandir}/man1/reaver.1.gz
%{_bindir}/reaver
%{_bindir}/wash

%changelog
openSUSE Build Service is sponsored by