]>
Commit | Line | Data |
---|---|---|
f0a9bdd1 JB |
1 | Summary: iw - utility to show or manipulate wireless devices and their configuration |
2 | Summary(pl.UTF-8): iw - narzędzie do wyświetlania i modyfikowania konfiguracji urządzeń bezprzewodowych | |
6da01a44 | 3 | Name: iw |
c555fbd9 JB |
4 | Version: 3.1 |
5 | Release: 1 | |
6da01a44 AM |
6 | License: BSD |
7 | Group: Networking/Admin | |
8 | Source0: http://wireless.kernel.org/download/iw/%{name}-%{version}.tar.bz2 | |
c555fbd9 | 9 | # Source0-md5: 2b63438a12b7dc481140cb9a69c86e4a |
6da01a44 | 10 | URL: http://wireless.kernel.org/en/users/Documentation/iw |
93793d95 | 11 | BuildRequires: libnl-devel >= 1:3.2 |
220b3382 | 12 | BuildRequires: pkgconfig |
c555fbd9 | 13 | BuildRequires: sed >= 4.0 |
6da01a44 AM |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %define _sbindir /sbin | |
17 | ||
18 | %description | |
19 | iw is a new nl80211 based CLI configuration utility for wireless | |
20 | devices. | |
21 | ||
f0a9bdd1 JB |
22 | %description -l pl.UTF-8 |
23 | iw to nowe, oparte na sterowniku nl80211, działające z linii poleceń | |
24 | narzędzie do konfiguracji urządzeń bezprzewodowych. | |
25 | ||
6da01a44 AM |
26 | %prep |
27 | %setup -q | |
28 | ||
69f409b7 | 29 | sed -i -e 's#libnl-2.0#libnl-3.0#g' -e 's#-lnl-genl#-lnl-genl-3#g' Makefile |
cbaa52a8 | 30 | |
6da01a44 | 31 | %build |
f0a9bdd1 JB |
32 | CC="%{__cc}" \ |
33 | CFLAGS="%{rpmcflags} %{rpmcppflags}" \ | |
6da01a44 | 34 | %{__make} \ |
f0a9bdd1 | 35 | V=1 |
6da01a44 AM |
36 | |
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} | |
40 | ||
41 | install iw $RPM_BUILD_ROOT%{_sbindir} | |
42 | install iw.8 $RPM_BUILD_ROOT%{_mandir}/man8 | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
f0a9bdd1 JB |
49 | %doc COPYING README |
50 | %attr(755,root,root) %{_sbindir}/iw | |
51 | %{_mandir}/man8/iw.8* |