b43-tools-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. Name: b43-tools
  3. Version: 017
  4. Release: 1%{?_dist_release}
  5. Summary: Tools for the Broadcom 43xx series WLAN chip
  6. Summary(ja): Broadcom 43xx シリーズ無線LANチップ用ツール集
  7. Group: System Environment/Base
  8. # assembler — GPLv2
  9. # debug — GPLv3
  10. # disassembler — GPLv2
  11. # ssb_sprom — GPLv2+
  12. License: GPLv2 and GPLv2+ and GPLv3
  13. URL: http://bues.ch/gitweb?p=b43-tools.git;a=summary
  14. ## git clone git://git.bues.ch/b43-tools.git
  15. ## cd b43-tools
  16. ## git-archive --format=tar --prefix=%{name}-%{version}/ b43-fwcutter-%{version} | xz > ../%{name}-%{version}.tar.xz
  17. Source0: %{name}-%{version}.tar.xz
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  19. BuildRequires: bison
  20. BuildRequires: flex
  21. BuildRequires: python-devel
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. %description
  25. Tools for the Broadcom 43xx series WLAN chip.
  26. %description -l ja
  27. Broadcom 43xx シリーズ無線LAN用のツール集です。
  28. %prep
  29. %setup -q
  30. install -p -m 0644 assembler/COPYING COPYING.assembler
  31. install -p -m 0644 assembler/README README.assembler
  32. install -p -m 0644 debug/COPYING COPYING.debug
  33. install -p -m 0644 debug/README README.debug
  34. install -p -m 0644 disassembler/COPYING COPYING.disassembler
  35. install -p -m 0644 ssb_sprom/README README.ssb_sprom
  36. install -p -m 0644 ssb_sprom/COPYING COPYING.ssb_sprom
  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 disassembler/brcm80211-fwconv $RPM_BUILD_ROOT%{_bindir}
  50. install -p -m 0755 disassembler/brcm80211-ivaldump $RPM_BUILD_ROOT%{_bindir}
  51. install -p -m 0755 ssb_sprom/ssb-sprom $RPM_BUILD_ROOT%{_bindir}
  52. cd debug && python install.py install --skip-build --root $RPM_BUILD_ROOT
  53. %clean
  54. rm -rf $RPM_BUILD_ROOT
  55. %files
  56. %defattr(-,root,root,-)
  57. %doc README.* COPYING.*
  58. %{_bindir}/b43-asm
  59. %{_bindir}/b43-asm.bin
  60. %{_bindir}/b43-beautifier
  61. %{_bindir}/b43-dasm
  62. %{_bindir}/b43-fwdump
  63. %{_bindir}/b43-ivaldump
  64. %{_bindir}/brcm80211-fwconv
  65. %{_bindir}/brcm80211-ivaldump
  66. %{_bindir}/ssb-sprom
  67. %{python_sitelib}/*
  68. %changelog
  69. * Tue Mar 17 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 017-1
  70. - updated to 017
  71. * Thu Aug 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0-0.1.git20090125
  72. - initial build for Vine Linux
  73. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.4.git20090125
  74. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  75. * Tue May 19 2009 Peter Lemenkov <lemenkov@gmail.com> 0-0.3.git20090125
  76. - Corrected 'License' field
  77. - Since now ssb_sprom honours optflags
  78. * Sat Apr 4 2009 Peter Lemenkov <lemenkov@gmail.com> 0-0.2.git20090125
  79. - Added missing BuildRequire
  80. * Sat Mar 14 2009 Peter Lemenkov <lemenkov@gmail.com> 0-0.1.git20090125
  81. - Initial package for Fedora