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