b43-tools-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. %define git_commit 8dc01d7b658dc04c5c500640854c6dba547a3118
  3. %define git_commit_date 20090125
  4. Name: b43-tools
  5. Version: 0
  6. Release: 0.1.git%{git_commit_date}%{?_dist_release}
  7. Summary: Tools for the Broadcom 43xx series WLAN chip
  8. Summary(ja): Broadcom 43xx シリーズ無線LAN 用のツール
  9. Group: System Environment/Base
  10. # assembler — GPLv2
  11. # debug — GPLv3
  12. # disassembler — GPLv2
  13. # ssb_sprom — GPLv2+
  14. License: GPLv2 and GPLv2+ and GPLv3
  15. URL: http://bu3sch.de/gitweb?p=b43-tools.git;a=summary
  16. # git clone http://git.bu3sch.de/git/b43-tools.git
  17. # cd b43-tools
  18. # git-archive --format=tar --prefix=%{name}-%{version}/ %{git_commit} | bzip2 > ../%{name}-%{version}.git%{git_commit_date}.tar.bz2
  19. Source0: %{name}-%{version}.git%{git_commit}.tar.bz2
  20. Patch0: b43-tools--use_optflags_in_ssb_sprom.diff
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  22. BuildRequires: bison
  23. BuildRequires: flex
  24. BuildRequires: python-devel
  25. %description
  26. Tools for the Broadcom 43xx series WLAN chip.
  27. %prep
  28. %setup -q
  29. install -p -m 0644 assembler/COPYING COPYING.assembler
  30. install -p -m 0644 assembler/README README.assembler
  31. install -p -m 0644 debug/COPYING COPYING.debug
  32. install -p -m 0644 debug/README README.debug
  33. install -p -m 0644 disassembler/COPYING COPYING.disassembler
  34. install -p -m 0644 ssb_sprom/README README.ssb_sprom
  35. install -p -m 0644 ssb_sprom/COPYING COPYING.ssb_sprom
  36. %patch0 -p0 -b .optflags
  37. %build
  38. CFLAGS="%{optflags}" make %{?_smp_mflags} -C assembler
  39. CFLAGS="%{optflags}" make %{?_smp_mflags} -C disassembler
  40. CFLAGS="%{optflags}" make %{?_smp_mflags} -C ssb_sprom
  41. cd debug && python install.py build
  42. %install
  43. rm -rf $RPM_BUILD_ROOT
  44. mkdir -p $RPM_BUILD_ROOT%{_bindir}
  45. install -p -m 0755 assembler/b43-asm $RPM_BUILD_ROOT%{_bindir}
  46. install -p -m 0755 assembler/b43-asm.bin $RPM_BUILD_ROOT%{_bindir}
  47. install -p -m 0755 disassembler/b43-dasm $RPM_BUILD_ROOT%{_bindir}
  48. install -p -m 0755 disassembler/b43-ivaldump $RPM_BUILD_ROOT%{_bindir}
  49. install -p -m 0755 ssb_sprom/ssb-sprom $RPM_BUILD_ROOT%{_bindir}
  50. cd debug && python install.py install --skip-build --root $RPM_BUILD_ROOT
  51. %clean
  52. rm -rf $RPM_BUILD_ROOT
  53. %files
  54. %defattr(-,root,root,-)
  55. %doc README.* COPYING.*
  56. %{_bindir}/b43-asm
  57. %{_bindir}/b43-asm.bin
  58. %{_bindir}/b43-beautifier
  59. %{_bindir}/b43-dasm
  60. %{_bindir}/b43-fwdump
  61. %{_bindir}/b43-ivaldump
  62. %{_bindir}/ssb-sprom
  63. %{python_sitelib}/*
  64. %changelog
  65. * Thu Aug 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0-0.1.git20090125
  66. - initial build for Vine Linux
  67. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.4.git20090125
  68. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  69. * Tue May 19 2009 Peter Lemenkov <lemenkov@gmail.com> 0-0.3.git20090125
  70. - Corrected 'License' field
  71. - Since now ssb_sprom honours optflags
  72. * Sat Apr 4 2009 Peter Lemenkov <lemenkov@gmail.com> 0-0.2.git20090125
  73. - Added missing BuildRequire
  74. * Sat Mar 14 2009 Peter Lemenkov <lemenkov@gmail.com> 0-0.1.git20090125
  75. - Initial package for Fedora