-Summary: nl80211 based CLI
+Summary: iw - utility to show or manipulate wireless devices and their configuration
+Summary(pl.UTF-8): iw - narzędzie do wyświetlania i modyfikowania konfiguracji urządzeń bezprzewodowych
Name: iw
-Version: 0.9.15
+Version: 3.11
Release: 1
License: BSD
Group: Networking/Admin
-Source0: http://wireless.kernel.org/download/iw/%{name}-%{version}.tar.bz2
-# Source0-md5: 98ba12eceec5a4ae8aa2d51abd56fa14
+# note: as of 3.11, .bz2 is smaller than .xz
+Source0: http://kernel.org/pub/software/network/iw/%{name}-%{version}.tar.bz2
+# Source0-md5: e633cf7c875c7d8b547abafc0d95f6c4
URL: http://wireless.kernel.org/en/users/Documentation/iw
-BuildRequires: libnl-devel
+BuildRequires: libnl-devel >= 1:3.2
+BuildRequires: pkgconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _sbindir /sbin
iw is a new nl80211 based CLI configuration utility for wireless
devices.
+%description -l pl.UTF-8
+iw to nowe, oparte na sterowniku nl80211, działające z linii poleceń
+narzędzie do konfiguracji urządzeń bezprzewodowych.
+
%prep
%setup -q
+sed -i -e 's#git rev-parse#false#g' version.sh
+
%build
+CC="%{__cc}" \
+CFLAGS="%{rpmcflags} %{rpmcppflags}" \
%{__make} \
- V=1 \
- CC="%{__cc}"
+ V=1
%install
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README
-%attr(755,root,root) %{_sbindir}/*
-%{_mandir}/man8/*
+%doc COPYING README
+%attr(755,root,root) %{_sbindir}/iw
+%{_mandir}/man8/iw.8*