b902daa
Name:           rfkill
b902daa
Version:        0.3
db38dba
Release:        3%{?dist}
1bc46d6
Summary:        A tool for enabling and disabling wireless devices
b902daa
b902daa
Group:          System Environment/Base
b902daa
License:        BSD
b902daa
URL:            http://www.linuxwireless.org/en/users/Documentation/rfkill
b902daa
Source0:        http://wireless.kernel.org/download/rfkill/rfkill-%{version}.tar.bz2
b902daa
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
b902daa
db38dba
Patch0:         rfkill-default-install-to-PREFIX-sbin.patch
b902daa
b902daa
%description
1bc46d6
rfkill is a simple tool for accessing the Linux rfkill device interface,
1bc46d6
which is used to enable and disable wireless networking devices, typically
1bc46d6
WLAN, Bluetooth and mobile broadband.
b902daa
b902daa
%prep
b902daa
%setup -q
db38dba
%patch0 -p 1
b902daa
b902daa
b902daa
%build
b902daa
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
b902daa
b902daa
b902daa
%install
b902daa
rm -rf $RPM_BUILD_ROOT
db38dba
make install DESTDIR=${RPM_BUILD_ROOT} PREFIX='' MANDIR=%{_mandir}
b902daa
b902daa
b902daa
%clean
b902daa
rm -rf $RPM_BUILD_ROOT
b902daa
b902daa
b902daa
%files
b902daa
%defattr(-,root,root,-)
db38dba
/sbin/rfkill
b902daa
%{_mandir}/man1/*
b902daa
%doc COPYING README
b902daa
b902daa
b902daa
%changelog
db38dba
* Tue Sep 29 2009 John W. Linville <linville@tuxdriver.com> 0.3-3
db38dba
- Install binary into /sbin to enable use during boot
db38dba
1bc46d6
* Tue Sep 15 2009 John W. Linville <linville@tuxdriver.com> 0.3-2
1bc46d6
- Change summary and description as suggested by Tomasz Torcz <zdzichu@irc.pl>
1bc46d6
b902daa
* Thu Sep  3 2009 John W. Linville <linville@tuxdriver.com> 0.3-1
b902daa
- Update to upstream version 0.3
b902daa
- Use 'make install' and include man page in files section
b902daa
b902daa
* Tue Aug 25 2009 John W. Linville <linville@tuxdriver.com> 0.1-1
b902daa
- Initial import