2 # - fix volk, drop bcond and enable by default
7 %define snap 2012-03-26
8 %define snaps %(echo %{snap} | tr -d "-")
9 Summary: Software defined radio framework
12 Release: 0.%{snaps}.0.1
14 Group: Applications/Engineering
15 URL: http://www.gnuradio.org
16 Source0: http://gnuradio.org/files/builds/%{name}-%{version}-%{snap}.tar.gz
17 # Source0-md5: 597245618a773bad2ff6b973e83d5bcb
18 BuildRequires: SDL-devel
19 BuildRequires: alsa-lib-devel
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: boost-devel >= 1.35
23 BuildRequires: cppunit-devel
24 BuildRequires: doxygen
25 BuildRequires: fftw3-devel
26 BuildRequires: graphviz
27 BuildRequires: gsl-devel
28 BuildRequires: guile-devel
29 BuildRequires: libtool
30 BuildRequires: libtool
31 BuildRequires: libusb-devel
32 BuildRequires: orc-devel
33 BuildRequires: portaudio-devel
34 BuildRequires: python-PyQt4-devel
35 BuildRequires: python-PyQwt-devel
36 BuildRequires: python-cheetah
37 BuildRequires: python-devel
38 BuildRequires: python-lxml
39 BuildRequires: python-numpy
40 BuildRequires: python-pygtk-devel
41 BuildRequires: python-wxPython-devel
42 BuildRequires: qwt-devel
45 BuildRequires: texlive-latex
46 %{?with_uhd:BuildRequires: uhd-devel}
47 BuildRequires: xdg-utils
51 Requires: python-cheetah
53 Requires: python-numpy
54 Requires: python-pygtk-gtk
55 Requires: python-wxPython
57 Obsoletes: grc < 0.80-1
58 Obsoletes: usrp < 3.3.0-1
59 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62 GNU Radio is a collection of software that when combined with minimal
63 hardware, allows the construction of radios where the actual waveforms
64 transmitted and received are defined by software. What this means is
65 that it turns the digital modulation schemes used in today's high
66 performance wireless devices into software problems.
70 Group: Applications/Engineering
71 Requires: %{name} = %{version}-%{release}
72 Obsoletes: usrp-devel < 3.3.0-1
79 Group: Applications/Engineering
80 Requires: %{name} = %{version}-%{release}
83 GNU Radio Documentation
87 Group: Applications/Engineering
88 Requires: %{name} = %{version}-%{release}
96 #force regeneration of cached moc output files
97 find . -name "*_moc.cc" -exec rm {} \;
101 #enabling deps tracking is workaround to build
103 --enable-dependency-tracking \
107 --%{?with_volk:en}%{!?with_volk:dis}able-volk \
109 --enable-gnuradio-core \
110 --enable-gr-msdd6000 \
113 --enable-gr-cvsd-vocoder \
115 %{?with_uhd:--enable-gr-uhd} \
116 --enable-gr-gsm-fr-vocoder \
119 --enable-gr-radar-pager \
120 --enable-gr-radar-mono \
121 --enable-gr-radio-astronomy \
122 --enable-gr-trellis \
123 --enable-gr-video-sdl \
125 --enable-gr-sounder \
127 --enable-gnuradio-examples \
130 --with-boost-libdir=%{_libdir}
132 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
138 rm -rf $RPM_BUILD_ROOT
141 DESTDIR=$RPM_BUILD_ROOT
144 rm -rf $RPM_BUILD_ROOT
146 %post -n gnuradio -p /sbin/ldconfig
147 %postun -n gnuradio -p /sbin/ldconfig
150 %defattr(644,root,root,755)
152 %attr(755,root,root) %{_bindir}/*
156 %config(noreplace) %{_sysconfdir}/gnuradio/conf.d/*.conf
157 %exclude %{_datadir}/gnuradio/examples
158 %exclude %{py_sitedir}/gnuradio/*.la
159 %exclude %{_docdir}/%{name}-%{version}/html
160 %exclude %{_docdir}/%{name}-%{version}/xml
161 %doc ChangeLog NEWS INSTALL COPYING AUTHORS
164 %defattr(644,root,root,755)
167 %{_pkgconfigdir}/*.pc
168 %exclude %{_libdir}/*.la
171 %defattr(644,root,root,755)
172 %doc %{_docdir}/%{name}-%{version}/html
173 %doc %{_docdir}/%{name}-%{version}/xml
176 %defattr(644,root,root,755)
177 %{_datadir}/gnuradio/examples