nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | %define _rel final |
2 | |||
3 | # these bits are constant across distributions |
||
4 | # |
||
5 | Name: aircrack-ng |
||
6 | Version: 1.2-rc2 |
||
7 | Summary: Reliable 802.11 (wireless) sniffer and WEP/WPA-PSK key cracker |
||
8 | License: GPL |
||
9 | Source: http://dl.aircrack-ng.org/%{name}-%{version}.tar.gz |
||
10 | URL: http://www.aircrack-ng.org/ |
||
11 | BuildRoot: %{_tmppath}/%{name}-%{version}-build |
||
12 | Packager: David Bolt <davjam@davjam.org> |
||
13 | Requires: openssl-devel glibc >= 2 |
||
14 | |||
15 | |||
16 | # define the package groups. If they all followed the LSB these would be the same, but they aren't :( |
||
17 | # |
||
18 | %define suse_group Productivity/Networking/Other |
||
19 | %define mandriva_group Productivity/Networking/Other |
||
20 | %define fedora_group Productivity/Networking/Other |
||
21 | |||
22 | |||
23 | |||
24 | # just in case we're not building on a (open)SUSE, Mandriva or Fedora system. |
||
25 | # |
||
26 | %define rel %{_rel} |
||
27 | |||
28 | |||
29 | # figure out which distribution we're being built on. choices so far are (open)SUSE, Mandriva and Fedora Core. |
||
30 | # |
||
31 | %define _suse %(if [ -f /etc/SuSE-release ]; then echo 1; else echo 0; fi) |
||
32 | %define _mandriva %(if [ -f /etc/mandriva-release ]; then echo 1; else echo 0; fi) |
||
33 | %define _fedora %(if [ -f /etc/fedora-release ]; then echo 1; else echo 0; fi) |
||
34 | |||
35 | # interesting facts: Mandriva includes /etc/redhat-release, as does Fedora. |
||
36 | # This means any builds for redhat are going to need to parse /etc/redhat-release |
||
37 | # to make sure they're being built on a redhat system |
||
38 | |||
39 | %if %{_suse} |
||
40 | %define _mandriva 0 |
||
41 | %define _fedora 0 |
||
42 | %endif |
||
43 | |||
44 | %if %{_mandriva} |
||
45 | %define _fedora 0 |
||
46 | %endif |
||
47 | |||
48 | |||
49 | # now for some distribution-specific modifications. |
||
50 | # |
||
51 | # these include making a distro-specific release number |
||
52 | # |
||
53 | |||
54 | # building on a (open)SUSE Linux system so make a release identifier for the (open)SUSE version |
||
55 | # |
||
56 | %if %_suse |
||
57 | %define _suse_version %(grep VERSION /etc/SuSE-release|cut -f3 -d" ") |
||
58 | %define _suse_vernum %(echo "%{_suse_version}"|tr -d '.') |
||
59 | %define rel %{_rel}.suse%{_suse_vernum} |
||
60 | %define _distribution SUSE Linux %{_suse_version} |
||
61 | %define group %{suse_group} |
||
62 | |||
63 | # distro name change for SUSE >= 10.2 to openSUSE |
||
64 | # |
||
65 | %if %suse_version >= 1020 |
||
66 | |||
67 | %define _distribution openSUSE %{_suse_version} |
||
68 | |||
69 | %endif |
||
70 | |||
71 | # not defined by SUSE/Novell but useful to have |
||
72 | # |
||
73 | %define _icondir %{_datadir}/pixmaps/ |
||
74 | |||
75 | %endif |
||
76 | |||
77 | # building on a Mandriva/Mandrake Linux system so use the standard Mandriva release string |
||
78 | # |
||
79 | # this is experimental and untested as yet, but should work. |
||
80 | # |
||
81 | %if %{_mandriva} |
||
82 | %define _mandriva_version %(cat /etc/mandriva-release|cut -f4 -d" ") |
||
83 | %define _distribution Mandriva %{_mandriva_version} |
||
84 | %define rel %{_rel}.mdv |
||
85 | %define group %{mandriva_group} |
||
86 | |||
87 | %endif |
||
88 | |||
89 | |||
90 | # building on a Fedora Core Linux system. not sure if there's a release string, but create one anyway |
||
91 | # |
||
92 | # this is experimental and untested as yet, but should work. |
||
93 | # |
||
94 | %if %{_fedora} |
||
95 | %define _fedora_version %(cat /etc/fedora-release|cut -f3 -d" ") |
||
96 | %define _distribution Fedora Core %{_fedora_version} |
||
97 | %define rel %{_rel}.fc%{_fedora_version} |
||
98 | %define group %{fedora_group} |
||
99 | %endif |
||
100 | |||
101 | |||
102 | # while these few are (relatively) distro-specific |
||
103 | # |
||
104 | Group: %{group} |
||
105 | Release: %{rel} |
||
106 | %{?_distribution:Distribution:%{_distribution}} |
||
107 | |||
108 | |||
109 | %description |
||
110 | aircrack-ng is a set of tools for auditing wireless networks. It's an |
||
111 | enhanced/reborn version of aircrack. It consists of airodump-ng (an 802.11 |
||
112 | packet capture program), aireplay-ng (an 802.11 packet injection program), |
||
113 | aircrack (static WEP and WPA-PSK cracking), airdecap-ng (decrypts WEP/WPA |
||
114 | capture files), and some tools to handle capture files (merge, convert, |
||
115 | etc.). |
||
116 | |||
117 | %prep |
||
118 | %setup -q |
||
119 | |||
120 | %build |
||
121 | make %{?_smp_mflags} sqlite=true pcre=true experimental=true |
||
122 | |||
123 | %install |
||
124 | |||
125 | rm -rf $RPM_BUILD_ROOT |
||
126 | mkdir $RPM_BUILD_ROOT |
||
127 | make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} mandir=%{_mandir}/man1 sqlite=true pcre=true experimental=true |
||
128 | |||
129 | cd $RPM_BUILD_ROOT |
||
130 | find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > %{_builddir}/file.list.%{name} |
||
131 | find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' | grep -v /man/ >> %{_builddir}/file.list.%{name} |
||
132 | find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> %{_builddir}/file.list.%{name} |
||
133 | |||
134 | %files -f %{_builddir}/file.list.%{name} |
||
135 | %doc ChangeLog INSTALLING README LICENSE AUTHORS VERSION |
||
136 | %doc test |
||
137 | %doc patches |
||
138 | %{_mandir}/man1/* |
||
139 | |||
140 | %clean |
||
141 | rm -rf $RPM_BUILD_ROOT |
||
142 | |||
143 | %changelog |
||
144 | * Sun Jan 29 2009 Xury <xury@poczta.onet.pl> aircrack-ng-1.0-rc3 |
||
145 | - small fix and update spec file |
||
146 | * Mon Jun 26 2006 David Bolt <davjam@davjam.org> aircrack-ng-0.6 |
||
147 | - Removed patch as no longer needed for SUSE 10.1 (GCC 4.1.2) |
||
148 | * Fri Jun 2 2006 David Bolt <davjam@davjam.org> aircrack-ng-0.5 |
||
149 | - Patched source to build properly on SUSE 10.1 (GCC 4.1.2) |
||
150 | * Thu Mar 30 2006 David Bolt <davjam@davjam.org> |
||
151 | - First package built for SUSE |