File iw.spec of Package iw

#
# spec file for package iw
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           iw
BuildRequires:  kernel-source
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(libnl-3.0)
Summary:        Configuration utility for nl80211 based wireless drivers
License:        ISC
Group:          Hardware/Wifi
Version:        3.11
Release:        0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://linuxwireless.org/en/users/Documentation/iw
Source:         iw-%{version}.tar.xz

%description
iw is a nl80211 based CLI configuration utility for wireless devices. It
supports almost all new drivers that have been added to the kernel
recently.

Authors:
--------
    Johannes Berg <johannes@sipsolutions.net>

%prep
%setup -q

%build
# FIXME: -fno-strict-aliasing seems to be obsolete, but upstream Makefile requires it.
# Either it is really obsolete or there is a hidden aliasing use.
make %{?jobs:-j%jobs} CFLAGS="${RPM_OPT_FLAGS} $(pkg-config --cflags libnl-3.0) -DCONFIG_LIBNL30 -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration" V=1

%install
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING README
%{_sbindir}/iw
%doc %{_mandir}/man?/iw.*

%changelog
openSUSE Build Service is sponsored by