]>
Commit | Line | Data |
---|---|---|
e5cb1905 AM |
1 | Summary: Common software API for various radio hardware |
2 | Name: gr-osmosdr | |
3da98231 AM |
3 | Version: 0.1.4 |
4 | Release: 1 | |
e5cb1905 AM |
5 | License: GPL v3+ |
6 | Group: Applications/Engineering | |
7 | URL: http://sdr.osmocom.org/trac/wiki/GrOsmoSDR | |
3da98231 AM |
8 | Source0: http://git.osmocom.org/gr-osmosdr/snapshot/%{name}-%{version}.tar.xz |
9 | # Source0-md5: da9733eee05e1409beb1c606c2db4521 | |
e5cb1905 AM |
10 | BuildRequires: boost-devel |
11 | BuildRequires: cmake | |
12 | BuildRequires: doxygen | |
3da98231 | 13 | BuildRequires: gnuradio-devel >= 3.7.3 |
e5cb1905 | 14 | BuildRequires: graphviz |
d6cfa776 | 15 | BuildRequires: librtlsdr-devel |
e5cb1905 | 16 | BuildRequires: python-devel |
e5cb1905 AM |
17 | BuildRequires: swig |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | Primarily gr-osmosdr supports the OsmoSDR hardware, but it also offers | |
22 | a wrapper functionality for FunCube Dongle, Ettus UHD and rtl-sdr | |
23 | radios. By using gr-osmosdr source you can take advantage of a common | |
24 | software api in your application(s) independent of the underlying | |
25 | radio hardware. | |
26 | ||
27 | %package devel | |
28 | Summary: Development files for gr-osmosdr | |
29 | Group: Applications/Engineering | |
30 | Requires: %{name} = %{version}-%{release} | |
31 | ||
32 | %description devel | |
33 | Development files for gr-osmosdr. | |
34 | ||
35 | %prep | |
3da98231 | 36 | %setup -q |
e5cb1905 AM |
37 | |
38 | %build | |
39 | install -d build | |
40 | cd build | |
41 | %cmake \ | |
42 | -DENABLE_DOXYGEN=on \ | |
43 | -DGR_PKG_DOC_DIR=%{_docdir}/%{name} \ | |
44 | .. | |
45 | ||
46 | %{__make} | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %{__make} -C build install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
e5d3419e AM |
54 | rm -rf doc-inst |
55 | mv $RPM_BUILD_ROOT%{_docdir}/%{name} doc-inst | |
56 | ||
e5cb1905 AM |
57 | %clean |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %post -p /sbin/ldconfig | |
61 | %postun -p /sbin/ldconfig | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
e5d3419e AM |
65 | %doc AUTHORS COPYING doc-inst/* |
66 | %attr(755,root,root) %{_bindir}/osmocom_fft | |
67 | %attr(755,root,root) %{_bindir}/osmocom_siggen | |
68 | %attr(755,root,root) %{_bindir}/osmocom_siggen_nogui | |
69 | %attr(755,root,root) %{_bindir}/osmocom_spectrum_sense | |
70 | %attr(755,root,root) %{_libdir}/libgnuradio-osmosdr-*.so.*.* | |
71 | %attr(755,root,root) %ghost %{_libdir}/libgnuradio-osmosdr-*.so.0 | |
72 | %dir %{py_sitedir}/osmosdr | |
73 | %attr(755,root,root) %{py_sitedir}/osmosdr/*.so | |
74 | %{py_sitedir}/osmosdr/*.py* | |
75 | %{_datadir}/gnuradio/grc/blocks/osmosdr_sink.xml | |
76 | %{_datadir}/gnuradio/grc/blocks/osmosdr_source.xml | |
77 | %{_datadir}/gnuradio/grc/blocks/rtlsdr_source.xml | |
e5cb1905 AM |
78 | |
79 | %files devel | |
80 | %defattr(644,root,root,755) | |
81 | %{_includedir}/osmosdr | |
e5d3419e AM |
82 | %attr(755,root,root) %{_libdir}/libgnuradio-osmosdr.so |
83 | %attr(755,root,root) %{_libdir}/libgnuradio-osmosdr-*.so | |
84 | %{_pkgconfigdir}/gnuradio-osmosdr.pc |