b12b2e
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
b12b2e
b12b2e
%define git_commit 8dc01d7b658dc04c5c500640854c6dba547a3118
b12b2e
%define git_commit_date 20090125
b12b2e
b12b2e
b12b2e
Name:		b43-tools
b12b2e
Version:	0
f36fff
Release:	0.10.git%{git_commit_date}%{?dist}
b12b2e
Summary:	Tools for the Broadcom 43xx series WLAN chip
b12b2e
Group:		System Environment/Base
b12b2e
# assembler — GPLv2
b12b2e
# debug — GPLv3
b12b2e
# disassembler — GPLv2
b12b2e
# ssb_sprom — GPLv2+
b12b2e
License:	GPLv2 and GPLv2+ and GPLv3
b12b2e
URL:		http://bu3sch.de/gitweb?p=b43-tools.git;a=summary
b12b2e
# git clone http://git.bu3sch.de/git/b43-tools.git
b12b2e
# cd b43-tools
b12b2e
# git-archive --format=tar --prefix=%{name}-%{version}/ %{git_commit} | bzip2 > ../%{name}-%{version}.git%{git_commit_date}.tar.bz2
b12b2e
Source0:	%{name}-%{version}.git%{git_commit}.tar.bz2
b12b2e
Patch0:		b43-tools--use_optflags_in_ssb_sprom.diff
b12b2e
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
b12b2e
BuildRequires:	bison
04a990
BuildRequires:	flex flex-static
b12b2e
BuildRequires:	python-devel
b12b2e
b12b2e
b12b2e
%description
b12b2e
Tools for the Broadcom 43xx series WLAN chip.
b12b2e
b12b2e
b12b2e
%prep
b12b2e
%setup -q
b12b2e
install -p -m 0644 assembler/COPYING COPYING.assembler
b12b2e
install -p -m 0644 assembler/README README.assembler
b12b2e
install -p -m 0644 debug/COPYING COPYING.debug
b12b2e
install -p -m 0644 debug/README README.debug
b12b2e
install -p -m 0644 disassembler/COPYING COPYING.disassembler
b12b2e
install -p -m 0644 ssb_sprom/README README.ssb_sprom
b12b2e
install -p -m 0644 ssb_sprom/COPYING COPYING.ssb_sprom
b12b2e
%patch0 -p0 -b .optflags
b12b2e
b12b2e
%build
b12b2e
CFLAGS="%{optflags}" make %{?_smp_mflags} -C assembler
b12b2e
CFLAGS="%{optflags}" make %{?_smp_mflags} -C disassembler
b12b2e
CFLAGS="%{optflags}" make %{?_smp_mflags} -C ssb_sprom
b12b2e
cd debug && python install.py build
b12b2e
b12b2e
b12b2e
%install
b12b2e
rm -rf $RPM_BUILD_ROOT
b12b2e
mkdir -p $RPM_BUILD_ROOT%{_bindir}
b12b2e
install -p -m 0755 assembler/b43-asm $RPM_BUILD_ROOT%{_bindir}
b12b2e
install -p -m 0755 assembler/b43-asm.bin $RPM_BUILD_ROOT%{_bindir}
b12b2e
install -p -m 0755 disassembler/b43-dasm $RPM_BUILD_ROOT%{_bindir}
b12b2e
install -p -m 0755 disassembler/b43-ivaldump $RPM_BUILD_ROOT%{_bindir}
b12b2e
install -p -m 0755 ssb_sprom/ssb-sprom $RPM_BUILD_ROOT%{_bindir}
b12b2e
cd debug && python install.py install --skip-build --root $RPM_BUILD_ROOT
b12b2e
b12b2e
b12b2e
%clean
b12b2e
rm -rf $RPM_BUILD_ROOT
b12b2e
b12b2e
b12b2e
%files
b12b2e
%defattr(-,root,root,-)
b12b2e
%doc README.* COPYING.*
b12b2e
%{_bindir}/b43-asm
b12b2e
%{_bindir}/b43-asm.bin
b12b2e
%{_bindir}/b43-beautifier
b12b2e
%{_bindir}/b43-dasm
b12b2e
%{_bindir}/b43-fwdump
b12b2e
%{_bindir}/b43-ivaldump
b12b2e
%{_bindir}/ssb-sprom
b12b2e
%{python_sitelib}/*
b12b2e
b12b2e
b12b2e
%changelog
f36fff
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.10.git20090125
f36fff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f36fff
2fdcec
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.9.git20090125
2fdcec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2fdcec
47f959
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.8.git20090125
47f959
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
47f959
10a19a
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.7.git20090125
10a19a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
10a19a
04a990
* Tue Dec 14 2010 Ralf Corsépius <corsepiu@fedoraproject.org> - 0-0.6.git20090125
04a990
- Add BR: flex-static (Fix FTBFS: BZ 660756).
04a990
cb91a5
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0-0.5.git20090125
cb91a5
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
cb91a5
0df4a4
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.4.git20090125
0df4a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0df4a4
b12b2e
* Tue May 19 2009 Peter Lemenkov <lemenkov@gmail.com> 0-0.3.git20090125
b12b2e
- Corrected 'License' field
b12b2e
- Since now ssb_sprom honours optflags
b12b2e
b12b2e
* Sat Apr  4 2009 Peter Lemenkov <lemenkov@gmail.com> 0-0.2.git20090125
b12b2e
- Added missing BuildRequire
b12b2e
b12b2e
* Sat Mar 14 2009 Peter Lemenkov <lemenkov@gmail.com> 0-0.1.git20090125
b12b2e
- Initial package for Fedora
b12b2e