1 # SPEC file for bbn_80211
4 # Original source from https://128.2.212.19/wiki/BBN80211
5 # Ben Maher Yahmed fix to let compile it with gnuradio 3.2.2 and USRP2
6 # Version 3.2.2 is the same than for gnuradio
7 # File: bbn_80211.tar.gz stored locally at:
12 %define actual_name %{name}-%{version}
15 %define module_taglevel_varname release
18 Summary: Very basic 802.11 transceiver code from BBN
22 URL: https://128.2.212.19/wiki/BBN80211
24 Source: %{actual_name}.tar.gz
25 BuildRoot: %{_tmppath}/%{actual_name}
28 BuildRequires: swig gnuradio gnuradio-devel
30 Requires: swig gnuradio boost
33 Basic 802.11 transmitter and receiver, which is able
34 to decode low rate 802.11 packets from standard NICs
35 over the air reliably at 1Mbps and partially at 2Mbps.
38 %setup -q -n %{actual_name}
39 # patch bbn_tap.cc that lacks an include (critical on f12)
41 /#include <stdexcept>/ a\
43 ' gr-bbn/src/bbn/bbn_tap.cc
46 #PKG_CONFIG_PATH="/usr/lib/pkgconfig"
47 #export PKG_CONFIG_PATH
49 ./configure --prefix=/usr
53 rm -rf $RPM_BUILD_ROOT
55 mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{actual_name}
56 cp -pru gr-bbn $RPM_BUILD_ROOT%{_datadir}/%{actual_name}
58 make DESTDIR=$RPM_BUILD_ROOT install
68 rm -rf $RPM_BUILD_ROOT
72 %defattr(-,root,root,-)
74 %{_includedir}/gnuradio/*
75 %{_libdir}/python*/site-packages/
76 %dir %{_datadir}/%{actual_name}
77 %{_datadir}/%{actual_name}/*
83 %changelog -n bbn_80211
84 * Wed Jan 20 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - bbn_80211-3.2.2-2
87 * Mon Oct 5 2009 Thierry Turletti <turletti@sophia.inria.fr> 3.2.2-1.1
88 - fixed errors with rpmlint
90 * Mon Oct 5 2009 Thierry Turletti <turletti@sophia.inria.fr> 3.2.2-1.0