Blob Blame History Raw
%define git_date 20080703
%define git_version f6fc7dc
Name:           iw
Version:        0.0
Release:        0.3.%{git_date}git%{git_version}%{?dist}
Summary:        A nl80211 based wireless configuration tool

Group:          System Environment/Base
License:        BSD
URL:            http://www.linuxwireless.org/en/users/Documentation/iw
# Generate tarball:
# git clone http://git.sipsolutions.net/iw.git
# cd iw
# git-archive --format=tar --prefix=iw/ %{git_version} | bzip2 > iw-0.0.`date +%Y%m%d`git%{git_version}.tar.bz2
Source0:        iw-0.0.%{git_date}git%{git_version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: kernel-devel >= 2.6.24 
BuildRequires: libnl-devel      

%description
iw is a new nl80211 based CLI configuration utility for wireless devices.
Currently you can only use this utility to configure devices which
use a mac80211 driver as these are the new drivers being written - 
only because most new wireless devices being sold are now SoftMAC.

%prep
%setup -q -n %{name}


%build
cp defconfig .config
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"


%install
rm -rf $RPM_BUILD_ROOT
install -D -p -m 0755 %{name} $RPM_BUILD_ROOT%{_bindir}/%{name}


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%doc COPYING

%changelog
* Tue Jul 22 2008 Adel Gadllah <adel.gadllah@gmail.com> 0.0-0.3.20080703gitf6fc7dc
- Add commitid to version
- Use versioned buildrequires for kernel-devel

* Thu Jul 3 2008 Adel Gadllah <adel.gadllah@gmail.com> 0.0-0.2.20080703git
- Add tarball instructions
- Fix install
- Fix changelog

* Thu Jul 3 2008 Adel Gadllah <adel.gadllah@gmail.com> 0.0-0.1.20080703git
- Initial build