]>
Commit | Line | Data |
---|---|---|
bd978e6e AM |
1 | # TODO: |
2 | # - fix volk, drop bcond and enable by default | |
3 | # - fix uhd build | |
4 | %bcond_with uhd | |
5 | %bcond_with volk | |
6 | # | |
bd978e6e AM |
7 | Summary: Software defined radio framework |
8 | Name: gnuradio | |
5da91619 TP |
9 | Version: 3.7.2.1 |
10 | Release: 0.1 | |
bd978e6e AM |
11 | License: GPL v3 |
12 | Group: Applications/Engineering | |
5da91619 TP |
13 | Source0: http://gnuradio.org/files/builds/%{name}-%{version}.tar.gz |
14 | # Source0-md5: f2ea23a30cb02802870fe8cb9bf272c9 | |
a9e3794d | 15 | Patch0: %{name}-build.patch |
5da91619 | 16 | URL: http://www.gnuradio.org/ |
ccd7cc61 TP |
17 | BuildRequires: SDL-devel >= 1.2.0 |
18 | BuildRequires: Qt3Support >= 4.8 | |
19 | BuildRequires: QtCLucene-devel >= 4.8 | |
20 | BuildRequires: QtCore-devel >= 4.8 | |
21 | BuildRequires: QtDBus-devel >= 4.8 | |
22 | BuildRequires: QtDeclarative-devel >= 4.8 | |
23 | BuildRequires: QtDesigner-devel >= 4.8 | |
24 | BuildRequires: QtGui-devel >= 4.8 | |
25 | BuildRequires: QtHelp-devel >= 4.8 | |
26 | BuildRequires: QtNetwork-devel >= 4.8 | |
27 | BuildRequires: QtOpenGL-devel >= 4.8 | |
28 | BuildRequires: QtScript-devel >= 4.8 | |
29 | BuildRequires: QtScriptTools-devel >= 4.8 | |
30 | BuildRequires: QtSql-devel >= 4.8 | |
31 | BuildRequires: QtSvg-devel >= 4.8 | |
32 | BuildRequires: QtTest-devel >= 4.8 | |
33 | BuildRequires: QtUiTools-devel >= 4.8 | |
34 | BuildRequires: QtWebKit-devel >= 4.8 | |
35 | BuildRequires: QtXml-devel >= 4.8 | |
36 | BuildRequires: QtXmlPatterns-devel >= 4.8 | |
37 | BuildRequires: alsa-lib-devel >= 0.9 | |
bd978e6e | 38 | BuildRequires: boost-devel >= 1.35 |
ccd7cc61 TP |
39 | BuildRequires: cmake >= 2.6 |
40 | BuildRequires: cppunit-devel >= 1.9.14 | |
41 | BuildRequires: doxygen >= 1.5 | |
5da91619 | 42 | BuildRequires: fftw3-devel >= 3.0 |
5da91619 | 43 | BuildRequires: gsl-devel >= 1.10 |
ccd7cc61 TP |
44 | BuildRequires: ice-devel |
45 | BuildRequires: jack-audio-connection-kit-devel >= 0.8 | |
bd978e6e | 46 | BuildRequires: libusb-devel |
ccd7cc61 TP |
47 | BuildRequires: log4cpp-devel |
48 | BuildRequires: orc-devel >= 0.4.11 | |
49 | BuildRequires: portaudio-devel >= 19 | |
50 | BuildRequires: python-PyOpenGL | |
51 | BuildRequires: python-PyQt4-devel >= 4.4 | |
52 | BuildRequires: python-PyQwt-devel >= 5.2 | |
5da91619 TP |
53 | BuildRequires: python-cheetah >= 2.0.0 |
54 | BuildRequires: python-devel >= 2.5 | |
55 | BuildRequires: python-lxml >= 1.3.6 | |
ccd7cc61 | 56 | BuildRequires: python-numpy >= 1.1.0 |
5da91619 | 57 | BuildRequires: python-pygtk-devel >= 2.10.0 |
ccd7cc61 TP |
58 | BuildRequires: python-wxPython-devel >= 2.8 |
59 | BuildRequires: qwt-devel >= 5.2 | |
60 | BuildRequires: sphinx | |
61 | BuildRequires: swig-python >= 1.3.31 | |
bd978e6e | 62 | BuildRequires: texlive-latex |
ccd7cc61 | 63 | %{?with_uhd:BuildRequires: uhd-devel >= 3.0.0} |
bd978e6e AM |
64 | BuildRequires: xdg-utils |
65 | BuildRequires: xmlto | |
5da91619 TP |
66 | BuildConflicts: boost-devel = 1.46.0 |
67 | BuildConflicts: boost-devel = 1.46.1 | |
68 | BuildConflicts: boost-devel = 1.47.0 | |
69 | BuildConflicts: boost-devel = 1.52.0 | |
bd978e6e | 70 | Requires: portaudio |
27dc4c8e | 71 | Requires: python-PyQt4 |
bd978e6e AM |
72 | Requires: python-cheetah |
73 | Requires: python-lxml | |
74 | Requires: python-numpy | |
75 | Requires: python-pygtk-gtk | |
a9e3794d | 76 | Requires: python-scipy |
27dc4c8e | 77 | Requires: python-wxPython |
bd978e6e AM |
78 | Obsoletes: grc < 0.80-1 |
79 | Obsoletes: usrp < 3.3.0-1 | |
80 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
81 | ||
82 | %description | |
83 | GNU Radio is a collection of software that when combined with minimal | |
84 | hardware, allows the construction of radios where the actual waveforms | |
85 | transmitted and received are defined by software. What this means is | |
86 | that it turns the digital modulation schemes used in today's high | |
87 | performance wireless devices into software problems. | |
88 | ||
89 | %package devel | |
90 | Summary: GNU Radio | |
91 | Group: Applications/Engineering | |
92 | Requires: %{name} = %{version}-%{release} | |
93 | Obsoletes: usrp-devel < 3.3.0-1 | |
94 | ||
95 | %description devel | |
ccd7cc61 | 96 | GNU Radio Headers. |
bd978e6e | 97 | |
bd978e6e AM |
98 | %package examples |
99 | Summary: GNU Radio | |
100 | Group: Applications/Engineering | |
101 | Requires: %{name} = %{version}-%{release} | |
102 | ||
103 | %description examples | |
ccd7cc61 | 104 | GNU Radio examples. |
bd978e6e AM |
105 | |
106 | %prep | |
107 | %setup -q -n %{name} | |
a9e3794d | 108 | %patch0 -p1 |
bd978e6e | 109 | |
45cedb3f | 110 | # force regeneration of cached moc output files (for final tarballs) |
4892c550 | 111 | find -name "*_moc.cc" | xargs -r rm |
bd978e6e AM |
112 | |
113 | %build | |
a9e3794d AM |
114 | %{__libtoolize} |
115 | %{__aclocal} -I config | |
116 | %{__autoheader} | |
117 | %{__automake} -Wno-portability -Wno-override -Wnone | |
118 | %{__autoconf} | |
bd978e6e AM |
119 | %configure \ |
120 | --enable-dependency-tracking \ | |
121 | --enable-python \ | |
122 | --enable-doxygen \ | |
123 | --enable-dot \ | |
124 | --%{?with_volk:en}%{!?with_volk:dis}able-volk \ | |
125 | --enable-gruel \ | |
126 | --enable-gnuradio-core \ | |
127 | --enable-gr-msdd6000 \ | |
128 | --enable-gr-audio \ | |
129 | --enable-gr-atsc \ | |
130 | --enable-gr-cvsd-vocoder \ | |
131 | --enable-gr-gpio \ | |
132 | %{?with_uhd:--enable-gr-uhd} \ | |
133 | --enable-gr-gsm-fr-vocoder \ | |
134 | --enable-gr-noaa \ | |
135 | --enable-gr-pager \ | |
136 | --enable-gr-radar-pager \ | |
137 | --enable-gr-radar-mono \ | |
138 | --enable-gr-radio-astronomy \ | |
139 | --enable-gr-trellis \ | |
140 | --enable-gr-video-sdl \ | |
141 | --enable-gr-wxgui \ | |
142 | --enable-gr-sounder \ | |
143 | --enable-gr-utils \ | |
144 | --enable-gnuradio-examples \ | |
145 | --enable-grc \ | |
146 | --enable-docs \ | |
147 | --with-boost-libdir=%{_libdir} | |
148 | ||
bd978e6e AM |
149 | %{__make} |
150 | ||
151 | %install | |
152 | rm -rf $RPM_BUILD_ROOT | |
153 | ||
a9e3794d | 154 | %{__make} install -j1 \ |
6a522c31 | 155 | pythondir=%{py_sitedir} \ |
bd978e6e AM |
156 | DESTDIR=$RPM_BUILD_ROOT |
157 | ||
27dc4c8e | 158 | rm -rf inst-doc |
a9e3794d | 159 | install -d inst-doc |
27dc4c8e | 160 | mv $RPM_BUILD_ROOT%{_docdir}/gnuradio-*/* inst-doc |
a9e3794d | 161 | |
bd978e6e AM |
162 | %clean |
163 | rm -rf $RPM_BUILD_ROOT | |
164 | ||
27dc4c8e ER |
165 | %post -p /sbin/ldconfig |
166 | %postun -p /sbin/ldconfig | |
bd978e6e AM |
167 | |
168 | %files | |
169 | %defattr(644,root,root,755) | |
a9e3794d AM |
170 | %doc ChangeLog NEWS INSTALL COPYING AUTHORS |
171 | %doc inst-doc/* | |
172 | %attr(755,root,root) %{_bindir}/create-gnuradio-out-of-tree-project | |
173 | %attr(755,root,root) %{_bindir}/file_rx_*.py | |
174 | %attr(755,root,root) %{_bindir}/gnuradio-* | |
175 | %attr(755,root,root) %{_bindir}/gr_*.py | |
176 | %attr(755,root,root) %{_bindir}/hrpt_*.py | |
177 | %attr(755,root,root) %{_bindir}/qt_digital_window.ui | |
178 | %attr(755,root,root) %{_bindir}/usrp_display_qtgui.ui | |
179 | %attr(755,root,root) %{_bindir}/usrp_*.py | |
4892c550 ER |
180 | %attr(755,root,root) %{_libdir}/libgnuradio-*.so.*.* |
181 | %attr(755,root,root) %ghost %{_libdir}/libgnuradio-*.so.0 | |
182 | %attr(755,root,root) %{_libdir}/libgruel-*.so.*.* | |
183 | %attr(755,root,root) %ghost %{_libdir}/libgruel-*.so.0 | |
a9e3794d AM |
184 | %dir %{_libdir}/gnuradio |
185 | %attr(755,root,root) %{_libdir}/gnuradio/grc_setup_freedesktop | |
bd978e6e | 186 | %{_datadir}/gnuradio |
a9e3794d AM |
187 | %dir %{_sysconfdir}/gnuradio |
188 | %dir %{_sysconfdir}/gnuradio/conf.d | |
189 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gnuradio/conf.d/*.conf | |
a9e3794d | 190 | %dir %{py_sitedir}/gruel |
6a522c31 | 191 | %{py_sitedir}/gruel/*.py* |
a9e3794d | 192 | %dir %{py_sitedir}/gruel/pmt |
6a522c31 | 193 | %{py_sitedir}/gruel/pmt/*.py* |
a9e3794d AM |
194 | %attr(755,root,root) %{py_sitedir}/gruel/pmt/*.so |
195 | %dir %{py_sitedir}/gnuradio | |
6a522c31 | 196 | %{py_sitedir}/gnuradio/*.py* |
a9e3794d AM |
197 | %attr(755,root,root) %{py_sitedir}/gnuradio/*.so |
198 | %dir %{py_sitedir}/gnuradio/gr | |
6a522c31 | 199 | %{py_sitedir}/gnuradio/gr/*.py* |
a9e3794d AM |
200 | %attr(755,root,root) %{py_sitedir}/gnuradio/gr/*.so |
201 | %dir %{py_sitedir}/gnuradio/digital | |
30f2849b | 202 | %{py_sitedir}/gnuradio/digital/*.py* |
a9e3794d | 203 | %attr(755,root,root) %{py_sitedir}/gnuradio/digital/*.so |
30f2849b AM |
204 | %dir %{py_sitedir}/gnuradio/digital/utils |
205 | %{py_sitedir}/gnuradio/digital/utils/*.py* | |
a9e3794d | 206 | %dir %{py_sitedir}/gnuradio/audio |
6a522c31 | 207 | %{py_sitedir}/gnuradio/audio/*.py* |
a9e3794d AM |
208 | %attr(755,root,root) %{py_sitedir}/gnuradio/audio/*.so |
209 | %dir %{py_sitedir}/gnuradio/vocoder | |
30f2849b | 210 | %{py_sitedir}/gnuradio/vocoder/*.py* |
a9e3794d AM |
211 | %attr(755,root,root) %{py_sitedir}/gnuradio/vocoder/*.so |
212 | %dir %{py_sitedir}/gnuradio/noaa | |
30f2849b | 213 | %{py_sitedir}/gnuradio/noaa/*.py* |
a9e3794d AM |
214 | %attr(755,root,root) %{py_sitedir}/gnuradio/noaa/*.so |
215 | %dir %{py_sitedir}/gnuradio/pager | |
30f2849b | 216 | %{py_sitedir}/gnuradio/pager/*.py* |
a9e3794d AM |
217 | %attr(755,root,root) %{py_sitedir}/gnuradio/pager/*.so |
218 | %dir %{py_sitedir}/gnuradio/qtgui | |
30f2849b | 219 | %{py_sitedir}/gnuradio/qtgui/*.py* |
a9e3794d | 220 | %attr(755,root,root) %{py_sitedir}/gnuradio/qtgui/*.so |
6a522c31 AM |
221 | %{py_sitedir}/gnuradio/blks2 |
222 | %{py_sitedir}/gnuradio/blks2impl | |
6a522c31 | 223 | %{py_sitedir}/gnuradio/grc |
30f2849b | 224 | %{py_sitedir}/gnuradio/gru |
6a522c31 | 225 | %{py_sitedir}/gnuradio/gruimpl |
6a522c31 AM |
226 | %{py_sitedir}/gnuradio/wxgui |
227 | %{py_sitedir}/grc_gnuradio | |
bd978e6e | 228 | %exclude %{_datadir}/gnuradio/examples |
a9e3794d | 229 | %exclude %{py_sitedir}/gruel/*/*.la |
bd978e6e | 230 | %exclude %{py_sitedir}/gnuradio/*.la |
a9e3794d | 231 | %exclude %{py_sitedir}/gnuradio/*/*.la |
bd978e6e AM |
232 | |
233 | %files devel | |
234 | %defattr(644,root,root,755) | |
a9e3794d AM |
235 | %{_includedir}/gnuradio |
236 | %{_includedir}/gruel | |
237 | %attr(755,root,root) %{_libdir}/libgnuradio-*.so | |
238 | %attr(755,root,root) %{_libdir}/libgruel.so | |
239 | %{_pkgconfigdir}/gnuradio-*.pc | |
240 | %{_pkgconfigdir}/gr-wxgui.pc | |
241 | %{_pkgconfigdir}/gruel.pc | |
bd978e6e AM |
242 | %exclude %{_libdir}/*.la |
243 | ||
bd978e6e AM |
244 | %files examples |
245 | %defattr(644,root,root,755) | |
246 | %{_datadir}/gnuradio/examples |