File reaver.spec of Package reaver

#
# spec file for package reaver

Name:           reaver
Version:        1.6.6+9~git20210519.d6c931c
Release:        0
License:        GPL-2.0
Summary:        Brute force attack against WPS
Url:            https://github.com/t6x/reaver-wps-fork-t6x
Group:          Productivity/Networking/Diagnostic
Source:         %{name}-%{version}.tar.xz
Patch:          reaver_MR350.patch
BuildRequires:  autoconf automake libtool
BuildRequires:  libpcap-devel
BuildRequires:  sqlite3-devel
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(libnl-3.0)
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
%autosetup -p1

%build
cd src
autoreconf -fi
%configure

CFLAGS="%{optflags}" make %{?_smp_mflags}
ln -sf reaver wash

%install
install -D -m 0755 src/reaver %{buildroot}%{_bindir}/reaver
cp      -d         src/wash   %{buildroot}%{_bindir}/wash
gzip docs/reaver.1
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}/man?/reaver.?.*
%{_bindir}/reaver
%{_bindir}/wash

%changelog
openSUSE Build Service is sponsored by