b43-fwcutter/b43-fwcutter.spec

79 lines
2.0 KiB
RPMSpec

#
# spec file for package b43-fwcutter (Version 011)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: b43-fwcutter
Group: Hardware/Wifi
AutoReqProv: on
Summary: Tool for extracting firmware from newer Broadcom WLAN drivers
Version: 011
Release: 1
Source: %{name}-%{version}.tar.bz2
Patch0: %{name}.diff
Source1: install_bcm43xx_firmware
Url: http://developer.berlios.de/projects/bcm43xx/
License: BSD 3-Clause; BSD 4-Clause
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Obsoletes: bcm43xx-fwcutter
Provides: bcm43xx-fwcutter
Supplements: modalias(pci:v000014E4d000043*sv*sd*bc*sc*i*)
%define prefix /usr
%description
b43-fwcutter can be used to extract firmware from Windows WLAN drivers
for Broadcom bcm43xx devices. The firmware is necessary to run such a
card under Linux using the b43 or b43legacy driver.
Authors:
--------
Martin Langer <martin-langer@gmx.de>,
Michael Buesch <mbuesch@freenet.de>
Alex Beregszaszi
Johannes Berg <johannes@sipsolutions.net>
%prep
%setup -q
%patch0
%build
make CFLAGS="$RPM_OPT_FLAGS"
%install
make PREFIX=%{buildroot}/usr \
MANDIR=%{buildroot}/%{_mandir} install
mkdir -p %{buildroot}/usr/sbin
install -m 755 %SOURCE1 %{buildroot}/usr/sbin/
%clean
%__rm -rf %{buildroot}
%files
%defattr(-, root, root)
%{_bindir}/b43-fwcutter
/usr/sbin/install_bcm43xx_firmware
%{_mandir}/man1/b43-fwcutter.1*
%doc README
%changelog
* Thu Apr 10 2008 cstender@suse.de
- updated to version 011
- added supplement tag so package gets installed when a bcm43xx
card is detected
- added install_bcm43xx_firmware script which downloads and
extracts firmware files
* Sun Mar 16 2008 coolo@suse.de
- correctly replace the old name
* Thu Jan 10 2008 cstender@suse.de
- initial package (version 009)