]> git.pld-linux.org Git - packages/iw.git/blob - iw.spec
ffed1d9e83e842db50bfe9a20b581246dfc9e9bf
[packages/iw.git] / iw.spec
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
3 Name:           iw
4 Version:        3.0
5 Release:        3
6 License:        BSD
7 Group:          Networking/Admin
8 Source0:        http://wireless.kernel.org/download/iw/%{name}-%{version}.tar.bz2
9 # Source0-md5:  a92bab831b2f86918db3c0f27f797015
10 URL:            http://wireless.kernel.org/en/users/Documentation/iw
11 BuildRequires:  libnl-devel >= 1:3.0
12 BuildRequires:  pkgconfig
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %define         _sbindir        /sbin
16
17 %description
18 iw is a new nl80211 based CLI configuration utility for wireless
19 devices.
20
21 %description -l pl.UTF-8
22 iw to nowe, oparte na sterowniku nl80211, działające z linii poleceń
23 narzędzie do konfiguracji urządzeń bezprzewodowych.
24
25 %prep
26 %setup -q
27
28 sed -i -e 's#libnl-2.0#libnl-3.0#g' -e 's#-lnl-genl#-lnl-genl-3#g' Makefile
29
30 %build
31 CC="%{__cc}" \
32 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
33 %{__make} \
34         V=1
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
39
40 install iw $RPM_BUILD_ROOT%{_sbindir}
41 install iw.8 $RPM_BUILD_ROOT%{_mandir}/man8
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %files
47 %defattr(644,root,root,755)
48 %doc COPYING README
49 %attr(755,root,root) %{_sbindir}/iw
50 %{_mandir}/man8/iw.8*
This page took 0.057174 seconds and 3 git commands to generate.