b12b2ee
Name:		b43-tools
275cadd
Version:	019
edca97e
Release:	13%{?dist}
b12b2ee
Summary:	Tools for the Broadcom 43xx series WLAN chip
b12b2ee
# assembler — GPLv2
b12b2ee
# debug — GPLv3
b12b2ee
# disassembler — GPLv2
b12b2ee
# ssb_sprom — GPLv2+
b12b2ee
License:	GPLv2 and GPLv2+ and GPLv3
275cadd
URL:		https://bues.ch/cgit/b43-tools.git
275cadd
## git clone https://git.bues.ch/git/b43-tools.git
ff822b9
## cd b43-tools
275cadd
## git archive --format=tar --prefix=%{name}-%{version}/ b43-fwcutter-%{version} | xz > ../%{name}-%{version}.tar.xz
ff822b9
Source0:	%{name}-%{version}.tar.xz
5a04953
Patch1:		0001-b43-tools-fix-format-security-errors.patch
8b7350a
Patch2:		0002-Explicitly-use-python3.patch
b12b2ee
BuildRequires:	bison
275cadd
BuildRequires:	flex
275cadd
BuildRequires:	flex-static
275cadd
BuildRequires:	gcc
8b7350a
BuildRequires:	python3-devel
5511011
BuildRequires: make
b12b2ee
b12b2ee
b12b2ee
%description
b12b2ee
Tools for the Broadcom 43xx series WLAN chip.
b12b2ee
b12b2ee
b12b2ee
%prep
275cadd
%autosetup -p1
b12b2ee
install -p -m 0644 assembler/COPYING COPYING.assembler
b12b2ee
install -p -m 0644 assembler/README README.assembler
b12b2ee
install -p -m 0644 debug/COPYING COPYING.debug
b12b2ee
install -p -m 0644 debug/README README.debug
b12b2ee
install -p -m 0644 disassembler/COPYING COPYING.disassembler
b12b2ee
install -p -m 0644 ssb_sprom/README README.ssb_sprom
b12b2ee
install -p -m 0644 ssb_sprom/COPYING COPYING.ssb_sprom
8b7350a
# For py3_build/py3_install macros
468c2ee
install -p -m 0644 debug/install.py debug/setup.py
ff822b9
8b7350a
2to3 -w .
8b7350a
b12b2ee
b12b2ee
%build
0c9276d
CFLAGS="%{optflags}" %{make_build} -C assembler
0c9276d
CFLAGS="%{optflags}" %{make_build} -C disassembler
0c9276d
CFLAGS="%{optflags}" %{make_build} -C ssb_sprom
275cadd
cd debug
8b7350a
%py3_build
b12b2ee
b12b2ee
b12b2ee
%install
ff822b9
mkdir -p %{buildroot}%{_bindir}
ff822b9
install -p -m 0755 assembler/b43-asm %{buildroot}%{_bindir}
ff822b9
install -p -m 0755 assembler/b43-asm.bin %{buildroot}%{_bindir}
ff822b9
install -p -m 0755 disassembler/b43-dasm %{buildroot}%{_bindir}
ff822b9
install -p -m 0755 disassembler/b43-ivaldump %{buildroot}%{_bindir}
ff822b9
install -p -m 0755 disassembler/brcm80211-fwconv %{buildroot}%{_bindir}
ff822b9
install -p -m 0755 disassembler/brcm80211-ivaldump %{buildroot}%{_bindir}
ff822b9
install -p -m 0755 ssb_sprom/ssb-sprom %{buildroot}%{_bindir}
275cadd
cd debug
8b7350a
%py3_install
b12b2ee
b12b2ee
b12b2ee
%files
b12b2ee
%doc README.* COPYING.*
b12b2ee
%{_bindir}/b43-asm
b12b2ee
%{_bindir}/b43-asm.bin
b12b2ee
%{_bindir}/b43-beautifier
b12b2ee
%{_bindir}/b43-dasm
b12b2ee
%{_bindir}/b43-fwdump
b12b2ee
%{_bindir}/b43-ivaldump
ff822b9
%{_bindir}/brcm80211-fwconv
ff822b9
%{_bindir}/brcm80211-ivaldump
b12b2ee
%{_bindir}/ssb-sprom
8b7350a
%{python3_sitelib}/*
b12b2ee
b12b2ee
b12b2ee
%changelog
edca97e
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 019-13
edca97e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
edca97e
2730807
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 019-12
2730807
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2730807
d96d9cf
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 019-11
d96d9cf
- Rebuilt for Python 3.10
d96d9cf
cfcdf78
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 019-10
cfcdf78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
cfcdf78
9a9d3d8
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 019-9
9a9d3d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9a9d3d8
054a60c
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 019-8
054a60c
- Rebuilt for Python 3.9
054a60c
0c9276d
* Tue May 05 2020 Tom Stellard <tstellar@redhat.com> - 019-7
0c9276d
- Use make_build macro
0c9276d
- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make
0c9276d
572054a
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 019-6
572054a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
572054a
8b7350a
* Fri Nov 15 2019 Pete Walter <pwalter@fedoraproject.org> - 019-5
8b7350a
- Switch to Python 3 (#1737905)
8b7350a
fdd2e09
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 019-4
fdd2e09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
fdd2e09
5a04953
* Wed Mar 27 2019 Peter Lemenkov <lemenkov@gmail.com> - 019-3
5a04953
- Fix FTBFS on Fedora 30+
5a04953
6697445
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 019-2
6697445
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6697445
275cadd
* Wed Sep 05 2018 Peter Lemenkov <lemenkov@gmail.com> - 019-1
275cadd
- Ver. 019
275cadd
- Fix FTBFS
275cadd
f7032c0
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 017-14
f7032c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f7032c0
c22c363
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 017-13
c22c363
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c22c363
b7b081f
* Fri Dec 15 2017 Iryna Shcherbina <ishcherb@redhat.com> - 017-12
b7b081f
- Update Python 2 dependency declarations to new packaging standards
b7b081f
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
b7b081f
cc944c3
* Fri Oct 06 2017 Troy Dawson <tdawson@redhat.com> - 017-11
cc944c3
- Fix format-security errors
cc944c3
0e62cab
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 017-10
0e62cab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
0e62cab
f8800a0
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 017-9
f8800a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f8800a0
b9cd62c
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 017-8
b9cd62c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b9cd62c
dfe6677
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 017-7
dfe6677
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
dfe6677
18e139b
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 017-6
18e139b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
18e139b
93ae91d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 017-5
93ae91d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
93ae91d
b4c8da7
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 017-4
b4c8da7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
b4c8da7
1c396a2
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 017-3
1c396a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1c396a2
6a0a61f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 017-2
6a0a61f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
6a0a61f
ff822b9
* Sat Feb 23 2013 Peter Lemenkov <lemenkov@gmail.com> - 017-1
ff822b9
- Ver. 017
ff822b9
f36fff3
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.10.git20090125
f36fff3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f36fff3
2fdcec9
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.9.git20090125
2fdcec9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2fdcec9
47f959f
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.8.git20090125
47f959f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
47f959f
10a19a8
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.7.git20090125
10a19a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
10a19a8
04a990d
* Tue Dec 14 2010 Ralf Corsépius <corsepiu@fedoraproject.org> - 0-0.6.git20090125
04a990d
- Add BR: flex-static (Fix FTBFS: BZ 660756).
04a990d
cb91a50
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0-0.5.git20090125
cb91a50
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
cb91a50
0df4a4f
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.4.git20090125
0df4a4f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0df4a4f
b12b2ee
* Tue May 19 2009 Peter Lemenkov <lemenkov@gmail.com> 0-0.3.git20090125
b12b2ee
- Corrected 'License' field
b12b2ee
- Since now ssb_sprom honours optflags
b12b2ee
b12b2ee
* Sat Apr  4 2009 Peter Lemenkov <lemenkov@gmail.com> 0-0.2.git20090125
b12b2ee
- Added missing BuildRequire
b12b2ee
b12b2ee
* Sat Mar 14 2009 Peter Lemenkov <lemenkov@gmail.com> 0-0.1.git20090125
b12b2ee
- Initial package for Fedora
b12b2ee