File iw.spec of Package iw

#
# spec file for package iw (Version 0.9.4)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           iw
BuildRequires:  kernel-source libnl-devel pkg-config
Summary:        Configuration utility for nl80211 based wireless drivers
Version:        0.9.4
Release:        1
Group:          Hardware/Wifi
License:        BSD 3-Clause
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://linuxwireless.org/en/users/Documentation/iw
AutoReqProv:    on
Source:         iw-%{version}.tar.bz2
Source2:        config
Patch:          fix_supported_iftypes.diff
Patch2:         fix_reg_dom.diff

%description
Configuration utility for nl80211 based wireless drivers



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

%prep
%setup
%patch -p1
%patch2 -p2
cp %{SOURCE2} .config

%build
make

%install
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
install -m 755 iw $RPM_BUILD_ROOT%{_sbindir}/iw

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_sbindir}/iw

%changelog
* Thu Sep 18 2008 hschaa@suse.de
- Fix build
- Update to official release 0.9.4
- Add fix_supported_iftypes.diff and fix_reg_dom.diff to allow
  build against 2.6.27
* Thu Jul 24 2008 hschaa@suse.de
- Initial package
openSUSE Build Service is sponsored by