%bcond_without pcre # build without pcre support
%bcond_without experimental
%bcond_with ext_scripts # build with extra scripts (NFY)
-#
+
+%define subver rc2
+%define rel 0.2
Summary: Reliable 802.11 (wireless) sniffer and WEP/WPA-PSK key cracker
Summary(pl.UTF-8): Pewny sniffer 802.11 (sieci bezprzewodowe) i łamacz kluczy WEP/WPA-PSK
Name: aircrack-ng
Version: 1.2
-%define subver rc2
-%define rel 0.1
Release: %{subver}.%{rel}
License: GPL
Group: Applications/Networking
URL: http://www.aircrack-ng.org/
Patch0: install.patch
Patch1: pldflags.patch
+Patch2: install_besside_manual.patch
+Patch3: use_standard_sleep.patch
BuildRequires: libnl-devel
BuildRequires: openssl-devel
-BuildRequires: pkgconfig
%{?with_pcre:BuildRequires: pcre-devel}
+BuildRequires: pkgconfig
%{?with_sqlite:BuildRequires: sqlite3-devel}
+BuildRequires: zlib-devel
+Requires: ethtool
+Requires: grep
+Requires: iw
+Requires: usbutils
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%setup -q -n %{name}-%{version}-%{subver}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
+%patch3 -p1
%build
%{__make} -j1 \
%{_mandir}/man8/airodump-ng.8*
%{_mandir}/man8/airserv-ng.8*
%{_mandir}/man8/airtun-ng.8*
-%{_mandir}/man8/besside-ng.8*
%if %{with experimental}
%attr(755,root,root) %{_bindir}/buddy-ng
%attr(755,root,root) %{_sbindir}/tkiptun-ng
%attr(755,root,root) %{_sbindir}/wesside-ng
%{_mandir}/man1/buddy-ng.1*
+%{_mandir}/man8/besside-ng.8*
%{_mandir}/man8/easside-ng.8*
%{_mandir}/man8/tkiptun-ng.8*
%{_mandir}/man8/wesside-ng.8*