2008-01-23 04:28:04 +01:00
|
|
|
#
|
2009-08-03 18:24:54 +02:00
|
|
|
# spec file for package b43-fwcutter (Version 012)
|
2008-01-23 04:28:04 +01:00
|
|
|
#
|
2010-01-21 13:32:57 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-01-23 04:28:04 +01:00
|
|
|
#
|
2009-02-09 17:48:28 +01:00
|
|
|
# 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.
|
|
|
|
|
2008-01-23 04:28:04 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-03-16 19:52:02 +01:00
|
|
|
|
2008-01-23 04:28:04 +01:00
|
|
|
Name: b43-fwcutter
|
|
|
|
Group: Hardware/Wifi
|
|
|
|
AutoReqProv: on
|
|
|
|
Summary: Tool for extracting firmware from newer Broadcom WLAN drivers
|
2009-08-03 18:24:54 +02:00
|
|
|
Version: 012
|
2010-01-21 13:32:57 +01:00
|
|
|
Release: 2
|
2008-01-23 04:28:04 +01:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
Patch0: %{name}.diff
|
2008-04-10 22:14:11 +02:00
|
|
|
Source1: install_bcm43xx_firmware
|
2009-02-09 17:48:28 +01:00
|
|
|
Url: http://linuxwireless.org/en/users/Drivers/b43
|
2010-01-21 13:32:57 +01:00
|
|
|
License: BSD3c(or similar) ; BSD4c(or similar)
|
2008-01-23 04:28:04 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-04-12 20:55:57 +02:00
|
|
|
Requires: curl
|
2008-03-16 19:52:02 +01:00
|
|
|
Obsoletes: bcm43xx-fwcutter
|
|
|
|
Provides: bcm43xx-fwcutter
|
2008-04-10 22:14:11 +02:00
|
|
|
Supplements: modalias(pci:v000014E4d000043*sv*sd*bc*sc*i*)
|
2008-01-23 04:28:04 +01:00
|
|
|
%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
|
2008-04-10 22:14:11 +02:00
|
|
|
mkdir -p %{buildroot}/usr/sbin
|
|
|
|
install -m 755 %SOURCE1 %{buildroot}/usr/sbin/
|
2009-02-09 17:48:28 +01:00
|
|
|
mkdir -p %{buildroot}/lib/firmware/b43/
|
|
|
|
mkdir -p %{buildroot}/lib/firmware/b43legacy/
|
|
|
|
for i in a0g0bsinitvals4.fw a0g0bsinitvals5.fw a0g0bsinitvals9.fw a0g0initvals4.fw a0g0initvals5.fw a0g0initvals9.fw a0g1bsinitvals13.fw a0g1bsinitvals5.fw a0g1bsinitvals9.fw a0g1initvals13.fw a0g1initvals5.fw a0g1initvals9.fw b0g0bsinitvals13.fw b0g0bsinitvals4.fw b0g0bsinitvals5.fw b0g0bsinitvals9.fw b0g0initvals13.fw b0g0initvals4.fw b0g0initvals5.fw b0g0initvals9.fw lp0bsinitvals13.fw lp0bsinitvals14.fw lp0bsinitvals15.fw lp0initvals13.fw lp0initvals14.fw lp0initvals15.fw n0absinitvals11.fw n0bsinitvals11.fw n0initvals11.fw pcm4.fw pcm5.fw ucode11.fw ucode13.fw ucode14.fw ucode15.fw ucode4.fw ucode5.fw ucode9.fw
|
|
|
|
do
|
|
|
|
touch %{buildroot}/lib/firmware/b43/$i
|
|
|
|
done
|
|
|
|
for j in a0g0bsinitvals2.fw a0g0bsinitvals5.fw a0g0initvals2.fw a0g0initvals5.fw a0g1bsinitvals5.fw a0g1initvals5.fw b0g0bsinitvals2.fw b0g0bsinitvals5.fw b0g0initvals2.fw b0g0initvals5.fw pcm4.fw pcm5.fw ucode11.fw ucode2.fw ucode4.fw ucode5.fw
|
|
|
|
do
|
|
|
|
touch %{buildroot}/lib/firmware/b43legacy/$j
|
|
|
|
done
|
2008-01-23 04:28:04 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
%__rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2009-02-09 17:48:28 +01:00
|
|
|
%doc README
|
2008-01-23 04:28:04 +01:00
|
|
|
%{_bindir}/b43-fwcutter
|
2008-04-10 22:14:11 +02:00
|
|
|
/usr/sbin/install_bcm43xx_firmware
|
2008-01-23 04:28:04 +01:00
|
|
|
%{_mandir}/man1/b43-fwcutter.1*
|
2009-02-09 17:48:28 +01:00
|
|
|
%dir /lib/firmware/b43
|
|
|
|
%dir /lib/firmware/b43legacy
|
|
|
|
# ghost b43 firmware
|
|
|
|
%ghost /lib/firmware/b43/a0g0bsinitvals4.fw
|
|
|
|
%ghost /lib/firmware/b43/a0g0bsinitvals5.fw
|
|
|
|
%ghost /lib/firmware/b43/a0g0bsinitvals9.fw
|
|
|
|
%ghost /lib/firmware/b43/a0g0initvals4.fw
|
|
|
|
%ghost /lib/firmware/b43/a0g0initvals5.fw
|
|
|
|
%ghost /lib/firmware/b43/a0g0initvals9.fw
|
|
|
|
%ghost /lib/firmware/b43/a0g1bsinitvals13.fw
|
|
|
|
%ghost /lib/firmware/b43/a0g1bsinitvals5.fw
|
|
|
|
%ghost /lib/firmware/b43/a0g1bsinitvals9.fw
|
|
|
|
%ghost /lib/firmware/b43/a0g1initvals13.fw
|
|
|
|
%ghost /lib/firmware/b43/a0g1initvals5.fw
|
|
|
|
%ghost /lib/firmware/b43/a0g1initvals9.fw
|
|
|
|
%ghost /lib/firmware/b43/b0g0bsinitvals13.fw
|
|
|
|
%ghost /lib/firmware/b43/b0g0bsinitvals4.fw
|
|
|
|
%ghost /lib/firmware/b43/b0g0bsinitvals5.fw
|
|
|
|
%ghost /lib/firmware/b43/b0g0bsinitvals9.fw
|
|
|
|
%ghost /lib/firmware/b43/b0g0initvals13.fw
|
|
|
|
%ghost /lib/firmware/b43/b0g0initvals4.fw
|
|
|
|
%ghost /lib/firmware/b43/b0g0initvals5.fw
|
|
|
|
%ghost /lib/firmware/b43/b0g0initvals9.fw
|
|
|
|
%ghost /lib/firmware/b43/lp0bsinitvals13.fw
|
|
|
|
%ghost /lib/firmware/b43/lp0bsinitvals14.fw
|
|
|
|
%ghost /lib/firmware/b43/lp0bsinitvals15.fw
|
|
|
|
%ghost /lib/firmware/b43/lp0initvals13.fw
|
|
|
|
%ghost /lib/firmware/b43/lp0initvals14.fw
|
|
|
|
%ghost /lib/firmware/b43/lp0initvals15.fw
|
|
|
|
%ghost /lib/firmware/b43/n0absinitvals11.fw
|
|
|
|
%ghost /lib/firmware/b43/n0bsinitvals11.fw
|
|
|
|
%ghost /lib/firmware/b43/n0initvals11.fw
|
|
|
|
%ghost /lib/firmware/b43/pcm4.fw
|
|
|
|
%ghost /lib/firmware/b43/pcm5.fw
|
|
|
|
%ghost /lib/firmware/b43/ucode11.fw
|
|
|
|
%ghost /lib/firmware/b43/ucode13.fw
|
|
|
|
%ghost /lib/firmware/b43/ucode14.fw
|
|
|
|
%ghost /lib/firmware/b43/ucode15.fw
|
|
|
|
%ghost /lib/firmware/b43/ucode4.fw
|
|
|
|
%ghost /lib/firmware/b43/ucode5.fw
|
|
|
|
%ghost /lib/firmware/b43/ucode9.fw
|
|
|
|
# ghost b43legacy firmware
|
|
|
|
%ghost /lib/firmware/b43legacy/a0g0bsinitvals2.fw
|
|
|
|
%ghost /lib/firmware/b43legacy/a0g0bsinitvals5.fw
|
|
|
|
%ghost /lib/firmware/b43legacy/a0g0initvals2.fw
|
|
|
|
%ghost /lib/firmware/b43legacy/a0g0initvals5.fw
|
|
|
|
%ghost /lib/firmware/b43legacy/a0g1bsinitvals5.fw
|
|
|
|
%ghost /lib/firmware/b43legacy/a0g1initvals5.fw
|
|
|
|
%ghost /lib/firmware/b43legacy/b0g0bsinitvals2.fw
|
|
|
|
%ghost /lib/firmware/b43legacy/b0g0bsinitvals5.fw
|
|
|
|
%ghost /lib/firmware/b43legacy/b0g0initvals2.fw
|
|
|
|
%ghost /lib/firmware/b43legacy/b0g0initvals5.fw
|
|
|
|
%ghost /lib/firmware/b43legacy/pcm4.fw
|
|
|
|
%ghost /lib/firmware/b43legacy/pcm5.fw
|
|
|
|
%ghost /lib/firmware/b43legacy/ucode11.fw
|
|
|
|
%ghost /lib/firmware/b43legacy/ucode2.fw
|
|
|
|
%ghost /lib/firmware/b43legacy/ucode4.fw
|
|
|
|
%ghost /lib/firmware/b43legacy/ucode5.fw
|
2008-01-23 04:28:04 +01:00
|
|
|
|
|
|
|
%changelog
|