1 |
# comment out when not pre-release |
2 |
#define prerel rc4 |
3 |
|
4 |
%define rel 3 |
5 |
|
6 |
Name: aircrack-ng |
7 |
Version: 1.7 |
8 |
Release: %mkrel %{?prerel:0.%prerel.}%{rel} |
9 |
Summary: Reliable 802.11 (wireless) sniffer and WEP key cracker |
10 |
License: GPLv2+ |
11 |
Group: Networking/Other |
12 |
URL: https://www.aircrack-ng.org/doku.php |
13 |
Source0: https://download.aircrack-ng.org/%{name}-%{version}%{?prerel:-%prerel}.tar.gz |
14 |
Patch1: aircrack-ng-parallel-build.patch |
15 |
Patch2: 0001-add-PCRE2-support.patch |
16 |
BuildRequires: pkgconfig(cmocka) |
17 |
BuildRequires: pkgconfig(jemalloc) |
18 |
BuildRequires: pkgconfig(hwloc) |
19 |
BuildRequires: pkgconfig(libpcap) |
20 |
BuildRequires: pkgconfig(libpcre2-8) |
21 |
BuildRequires: pkgconfig(libtcmalloc) |
22 |
BuildRequires: pkgconfig(openssl) |
23 |
BuildRequires: pkgconfig(zlib) |
24 |
BuildRequires: pkgconfig(sqlite3) |
25 |
BuildRequires: expect |
26 |
BuildRequires: libnl3-devel |
27 |
|
28 |
%description |
29 |
aircrack-ng is a set of tools for auditing wireless networks. It's an |
30 |
enhanced/reborn version of aircrack. It consists of airodump (an 802.11 |
31 |
packet capture program), aireplay (an 802.11 packet injection program), |
32 |
aircrack (static WEP and WPA-PSK cracking), airdecap (decrypts WEP/WPA |
33 |
capture files), and some tools to handle capture files (merge, convert, |
34 |
etc.). |
35 |
|
36 |
|
37 |
%package devel |
38 |
Summary: Development files for %{name} |
39 |
Group: Development/C++ |
40 |
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} |
41 |
|
42 |
%description devel |
43 |
Development files for %{name}. |
44 |
|
45 |
%prep |
46 |
%autosetup -p1 -n %{name}-%{version}%{?prerel:-%prerel} |
47 |
|
48 |
%build |
49 |
NOCONFIGURE=1 ./autogen.sh |
50 |
%configure \ |
51 |
--enable-static \ |
52 |
--disable-shared \ |
53 |
--disable-silent-rules \ |
54 |
--with-lto \ |
55 |
--with-avx512 \ |
56 |
--with-jemalloc \ |
57 |
--with-tcmalloc \ |
58 |
--with-experimental |
59 |
|
60 |
%make_build |
61 |
|
62 |
%install |
63 |
%make_install |
64 |
|
65 |
# we don't want these |
66 |
find %{buildroot} -name '*.*a' -delete |
67 |
|
68 |
mkdir -p %{buildroot}%{_datadir}/%{name} |
69 |
# License unclear, originates from: |
70 |
# http://standards.ieee.org/regauth/oui/oui.txt |
71 |
touch %{buildroot}%{_datadir}/%{name}/airodump-ng-oui.txt |
72 |
|
73 |
%post |
74 |
%{_sbindir}/airodump-ng-oui-update |
75 |
|
76 |
%files |
77 |
%doc ChangeLog README AUTHORS |
78 |
%{_bindir}/* |
79 |
%{_sbindir}/* |
80 |
%{_mandir}/man?/* |
81 |
%dir %{_datadir}/aircrack-ng |
82 |
%ghost %{_datadir}/aircrack-ng/airodump-ng-oui.txt |
83 |
|
84 |
%files devel |
85 |
%{_includedir}/%{name}/ |