]> git.pld-linux.org Git - packages/gnuradio.git/blame - gnuradio.spec
- rel 3; fix find
[packages/gnuradio.git] / gnuradio.spec
CommitLineData
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 "-")
9Summary: Software defined radio framework
10Name: gnuradio
11Version: 3.5.3
45cedb3f 12Release: 0.%{snaps}.3
bd978e6e
AM
13License: GPL v3
14Group: Applications/Engineering
27dc4c8e 15URL: http://www.gnuradio.org/
bd978e6e
AM
16Source0: http://gnuradio.org/files/builds/%{name}-%{version}-%{snap}.tar.gz
17# Source0-md5: 597245618a773bad2ff6b973e83d5bcb
a9e3794d 18Patch0: %{name}-build.patch
bd978e6e
AM
19BuildRequires: SDL-devel
20BuildRequires: alsa-lib-devel
21BuildRequires: autoconf
a9e3794d 22BuildRequires: automake >= 1:1.11.3-2
bd978e6e
AM
23BuildRequires: boost-devel >= 1.35
24BuildRequires: cppunit-devel
25BuildRequires: doxygen
26BuildRequires: fftw3-devel
27BuildRequires: graphviz
28BuildRequires: gsl-devel
29BuildRequires: guile-devel
30BuildRequires: libtool
31BuildRequires: libtool
32BuildRequires: libusb-devel
33BuildRequires: orc-devel
34BuildRequires: portaudio-devel
35BuildRequires: python-PyQt4-devel
36BuildRequires: python-PyQwt-devel
37BuildRequires: python-cheetah
38BuildRequires: python-devel
39BuildRequires: python-lxml
40BuildRequires: python-numpy
41BuildRequires: python-pygtk-devel
42BuildRequires: python-wxPython-devel
43BuildRequires: qwt-devel
44BuildRequires: sdcc
45BuildRequires: swig
46BuildRequires: texlive-latex
47%{?with_uhd:BuildRequires: uhd-devel}
48BuildRequires: xdg-utils
49BuildRequires: xmlto
bd978e6e 50Requires: portaudio
27dc4c8e 51Requires: python-PyQt4
bd978e6e
AM
52Requires: python-cheetah
53Requires: python-lxml
54Requires: python-numpy
55Requires: python-pygtk-gtk
a9e3794d 56Requires: python-scipy
27dc4c8e 57Requires: python-wxPython
bd978e6e
AM
58Obsoletes: grc < 0.80-1
59Obsoletes: usrp < 3.3.0-1
60BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61
62%description
63GNU Radio is a collection of software that when combined with minimal
64hardware, allows the construction of radios where the actual waveforms
65transmitted and received are defined by software. What this means is
66that it turns the digital modulation schemes used in today's high
67performance wireless devices into software problems.
68
69%package devel
70Summary: GNU Radio
71Group: Applications/Engineering
72Requires: %{name} = %{version}-%{release}
73Obsoletes: usrp-devel < 3.3.0-1
74
75%description devel
76GNU Radio Headers
77
bd978e6e
AM
78%package examples
79Summary: GNU Radio
80Group: Applications/Engineering
81Requires: %{name} = %{version}-%{release}
82
83%description examples
84GNU 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)
91find -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
132rm -rf $RPM_BUILD_ROOT
133
a9e3794d 134%{__make} install -j1 \
6a522c31 135 pythondir=%{py_sitedir} \
bd978e6e
AM
136 DESTDIR=$RPM_BUILD_ROOT
137
27dc4c8e 138rm -rf inst-doc
a9e3794d 139install -d inst-doc
27dc4c8e 140mv $RPM_BUILD_ROOT%{_docdir}/gnuradio-*/* inst-doc
a9e3794d 141
bd978e6e
AM
142%clean
143rm -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
This page took 0.054613 seconds and 4 git commands to generate.