7 %define actual_name %{name}-%{version}
9 %define module_taglevel_varname release
12 Summary: GNU software radio
16 URL: ftp://ftp.gnu.org/gnu/gnuradio/gnuradio-3.2.2.tar.gz
17 Group: Productivity/Hamradio/Other
18 Source0: %{actual_name}.tar.gz
19 Source1: 10-usrp.rules
20 Patch0: gnuradio-3.2-libtool.patch
22 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
25 BuildRequires: python python-numeric PyQt4 swig fftw sdcc gsl libtool
26 BuildRequires: subversion guile cppunit gcc gcc-c++ make
27 BuildRequires: boost-devel >= 1.35
28 BuildRequires: python-devel fftw-devel boost-devel gsl-devel libusb-devel
29 BuildRequires: cppunit-devel
32 Requires: python python-numeric PyQt4 swig fftw libtool
33 Requires: boost >= 1.35
36 gnuradio is a free software radio toolkit
39 %setup -q -n %{actual_name}
40 %patch0 -p1 -b .libtool
44 export PKG_CONFIG_PATH="/usr/lib/pkgconfig"
45 # dirty hack to let gnuradio configure find sdcc
46 export PATH=%{_libexecdir}/sdcc:$PATH
48 ########## the bootstrap script basically reruns autoconf and automake
49 %if "%{distro}" == "Fedora" && %{distrorelease} >= 12
51 %configure --disable-doxygen
52 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
53 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
57 %configure --disable-doxygen
62 rm -rf $RPM_BUILD_ROOT
63 make install DESTDIR=$RPM_BUILD_ROOT
64 install -D -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/10-usrp.rules
66 #make DESTDIR=$RPM_BUILD_ROOT install
70 echo 'export PYTHONPATH=/usr/lib/python2.5/site-packages/' >> ~/.bashrc
77 rm -rf $RPM_BUILD_ROOT
81 %package -n %{name}-devel
82 Summary: gnuradio devel files
85 Group: Productivity/Hamradio/Other
88 %description -n %{name}-devel
89 Devel package of gnuradio
91 %post -n %{name}-devel
94 %postun -n %{name}-devel
97 %files -n %{name}-devel
98 %defattr(-,root,root,-)
100 %{_libdir}/pkgconfig/*
105 %defattr(-,root,root,-)
108 %config /etc/gnuradio/*
110 %{_libdir}/python*/site-packages/
112 %dir %{_datadir}/gnuradio
113 %{_datadir}/gnuradio/*
114 %dir %{_datadir}/usrp
116 # TO FIX: if the 2 following commands are removed, the rpmbuild fails!
117 # It's weird because rev2 and rev3 directories are indeed created at the
118 # right place (/usr/share/rev*) when the rpm is installed...
121 %config(noreplace) %{_sysconfdir}/udev/rules.d/10-usrp.rules
122 %doc AUTHORS README README.hacking ChangeLog NEWS INSTALL COPYING
126 %changelog -n gnuradio
127 * Wed Oct 8 2009 Thierry Turletti <turletti@sophia.inria.fr> 3.2.2-2.1
128 - fixed lots of missing parameters...
130 * Thu Oct 1 2009 Thierry Turletti <turletti@sophia.inria.fr> 3.2.2-2.0
131 - derived from previous gnuradio-3.2 spec file written by Ben Yahmed Maher <ben.yahmed.maher@gmail.com>. Changes made to compile the new 3.2.2 gnuradio version on F10 with both USRP and USRP2 hardware enabled.
133 * Wed Apr 1 2009 Ben Yahmed Maher <ben.yahmed.maher@gmail.com> 3.2.2-1.2
134 - change to svn 10720 with fedora 10