77baa27
Name:           b43-fwcutter
John W. Linville 4d25ed4
Version:        019
91a118f
Release:        %autorelease
77baa27
Summary:        Firmware extraction tool for Broadcom wireless driver
914365d
License:        BSD-2-Clause
e4b131d
URL:            https://bues.ch/b43/fwcutter/
e4b131d
Source0:        https://bues.ch/b43/fwcutter/%{name}-%{version}.tar.bz2
John W. Linville d6b19d8
Source1:        README.too
91a118f
Patch1:         b43-fwcutter-0001-fwcutter-Add-firmware-9.10.178.27.patch
91a118f
Patch2:         b43-fwcutter-0002-fwcutter-make-Avoid-_DEFAULT_SOURCE-warning.patch
John W. Linville 5a7e6f1
BuildRequires:  gcc
8080a2a
BuildRequires:  make
John W. Linville 5a7e6f1
77baa27
%description
77baa27
This package contains the 'b43-fwcutter' tool which is used to
77baa27
extract firmware for the Broadcom network devices.
77baa27
John W. Linville d6b19d8
See the README.too file shipped in the package's documentation for
77baa27
instructions on using this tool.
77baa27
77baa27
%prep
bd419df
%autosetup -p2
158b941
259622d
cp %{SOURCE1} .
77baa27
77baa27
%build
259622d
CFLAGS="$RPM_OPT_FLAGS" make
77baa27
77baa27
%install
77baa27
mkdir -p $RPM_BUILD_ROOT%{_bindir}
77baa27
install -m0755 b43-fwcutter $RPM_BUILD_ROOT%{_bindir}/b43-fwcutter
77baa27
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
77baa27
install -m0644 b43-fwcutter.1 $RPM_BUILD_ROOT%{_mandir}/man1
77baa27
77baa27
%files
77baa27
%{_bindir}/b43-fwcutter
77baa27
%{_mandir}/man1/*
John W. Linville df90feb
%license COPYING
John W. Linville df90feb
%doc README README.too
77baa27
77baa27
%changelog
c29f1f7
%autochangelog