]>
Commit | Line | Data |
---|---|---|
938948b4 BS |
1 | %define ver_major 3 |
2 | %define ver_minor 8 | |
3 | %define ver_patch 3 | |
4 | ||
5 | %define ver %(printf "%03d.%03d.%03d" %{ver_major} %{ver_minor} %{ver_patch}) | |
938948b4 | 6 | Summary: Universal Hardware Driver for Ettus Research products |
938948b4 BS |
7 | Name: uhd |
8 | Version: %{ver_major}.%{ver_minor}.%{ver_patch} | |
9 | Release: 0.1 | |
10 | License: GPL v3+ | |
11 | Group: X11/Libraries | |
12 | Source0: http://files.ettus.com/binaries/uhd/uhd_%{ver}-release/%{name}-%{version}.tar.gz | |
13 | # Source0-md5: 84928825717678e77ffc400d73bcf412 | |
938948b4 BS |
14 | URL: http://www.qcustomplot.com/ |
15 | BuildRequires: QtCore-devel | |
16 | BuildRequires: QtGui-devel | |
24404f1d | 17 | BuildRequires: boost-devel |
938948b4 BS |
18 | BuildRequires: cmake >= 2.8.0 |
19 | BuildRequires: qt4-build | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
938948b4 BS |
21 | |
22 | %define filterout -flto | |
23 | ||
24 | %description | |
25 | The UHD is the universal hardware driver for Ettus Research products. | |
26 | The goal of the UHD is to provide a host driver and API for current | |
27 | and future Ettus Research products. It can be used standalone without | |
28 | GNU Radio. | |
29 | ||
30 | %package devel | |
31 | Summary: Development files for %{name} | |
32 | Group: X11/Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | ||
35 | %description devel | |
36 | Header files for Universal Hardware Driver for Ettus Research | |
37 | products. | |
38 | ||
24404f1d | 39 | %package doc |
938948b4 BS |
40 | Summary: Documentation and examples for uhd |
41 | Group: Documentation | |
42 | %if "%{_rpmversion}" >= "5" | |
43 | BuildArch: noarch | |
44 | %endif | |
45 | ||
46 | %description doc | |
47 | Documentation and examples for Universal Hardware Driver for Ettus | |
48 | Research products | |
49 | ||
50 | %prep | |
51 | %setup -q | |
52 | ||
53 | %build | |
938948b4 BS |
54 | install -d build |
55 | cd build | |
56 | %cmake \ | |
24404f1d | 57 | .. |
938948b4 BS |
58 | %{__make} |
59 | ||
938948b4 BS |
60 | %install |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | %{__make} -C build install/fast \ | |
63 | DESTDIR=$RPM_BUILD_ROOT | |
64 | ||
24404f1d ER |
65 | rm $RPM_BUILD_ROOT%{_libdir}/%{name}/utils/usrp_n2xx_simple_net_burner |
66 | rm $RPM_BUILD_ROOT%{_libdir}/%{name}/utils/usrp_x3xx_fpga_burner | |
67 | ||
68 | # not packaged | |
69 | rm -r $RPM_BUILD_ROOT%{_libdir}/%{name}/tests | |
938948b4 BS |
70 | |
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
24404f1d ER |
74 | %post -p /sbin/ldconfig |
75 | %postun -p /sbin/ldconfig | |
938948b4 BS |
76 | |
77 | %files | |
78 | %defattr(644,root,root,755) | |
79 | %attr(755,root,root) %{_bindir}/nirio_programmer | |
80 | %attr(755,root,root) %{_bindir}/octoclock_firmware_burner | |
81 | %attr(755,root,root) %{_bindir}/uhd_cal_rx_iq_balance | |
82 | %attr(755,root,root) %{_bindir}/uhd_cal_tx_dc_offset | |
83 | %attr(755,root,root) %{_bindir}/uhd_cal_tx_iq_balance | |
84 | %attr(755,root,root) %{_bindir}/uhd_find_devices | |
85 | %attr(755,root,root) %{_bindir}/uhd_images_downloader | |
86 | %attr(755,root,root) %{_bindir}/uhd_usrp_probe | |
24404f1d ER |
87 | %attr(755,root,root) %{_bindir}/usrp2_card_burner |
88 | %attr(755,root,root) %{_bindir}/usrp_n2xx_simple_net_burner | |
89 | %attr(755,root,root) %{_bindir}/usrp_x3xx_fpga_burner | |
90 | %{_mandir}/man1/octoclock_firmware_burner.1* | |
91 | %{_mandir}/man1/uhd_cal_rx_iq_balance.1* | |
92 | %{_mandir}/man1/uhd_cal_tx_dc_offset.1* | |
93 | %{_mandir}/man1/uhd_cal_tx_iq_balance.1* | |
94 | %{_mandir}/man1/uhd_find_devices.1* | |
95 | %{_mandir}/man1/uhd_images_downloader.1* | |
96 | %{_mandir}/man1/uhd_usrp_probe.1* | |
97 | %{_mandir}/man1/usrp2_card_burner.1* | |
98 | %{_mandir}/man1/usrp_n2xx_simple_net_burner.1* | |
99 | %{_mandir}/man1/usrp_x3xx_fpga_burner.1* | |
100 | %attr(755,root,root) %{_libdir}/libuhd.so.00*.00* | |
101 | %attr(755,root,root) %ghost %{_libdir}/libuhd.so.003 | |
102 | %dir %{_libdir}/%{name} | |
103 | %attr(755,root,root) %{_libdir}/%{name}/utils | |
938948b4 BS |
104 | |
105 | %files devel | |
106 | %defattr(644,root,root,755) | |
107 | %{_pkgconfigdir}/uhd.pc | |
938948b4 | 108 | %{_includedir}/uhd |
24404f1d ER |
109 | %{_libdir}/cmake/uhd |
110 | %{_libdir}/libuhd.so | |
938948b4 BS |
111 | |
112 | %files doc | |
113 | %defattr(644,root,root,755) | |
24404f1d ER |
114 | %{_docdir}/%{name} |
115 | %dir %dir %{_libdir}/%{name} | |
116 | %dir %{_libdir}/%{name}/examples | |
117 | %{_libdir}/%{name}/examples/benchmark_rate | |
118 | %{_libdir}/%{name}/examples/fpgpio | |
119 | %{_libdir}/%{name}/examples/latency_test | |
120 | %{_libdir}/%{name}/examples/network_relay | |
121 | %{_libdir}/%{name}/examples/rx_ascii_art_dft | |
122 | %{_libdir}/%{name}/examples/rx_multi_samples | |
123 | %{_libdir}/%{name}/examples/rx_samples_to_file | |
124 | %{_libdir}/%{name}/examples/rx_samples_to_udp | |
125 | %{_libdir}/%{name}/examples/rx_timed_samples | |
126 | %{_libdir}/%{name}/examples/test_clock_synch | |
127 | %{_libdir}/%{name}/examples/test_dboard_coercion | |
128 | %{_libdir}/%{name}/examples/test_messages | |
129 | %{_libdir}/%{name}/examples/test_pps_input | |
130 | %{_libdir}/%{name}/examples/test_timed_commands | |
131 | %{_libdir}/%{name}/examples/transport_hammer | |
132 | %{_libdir}/%{name}/examples/tx_bursts | |
133 | %{_libdir}/%{name}/examples/tx_samples_from_file | |
134 | %{_libdir}/%{name}/examples/tx_timed_samples | |
135 | %{_libdir}/%{name}/examples/tx_waveforms | |
136 | %{_libdir}/%{name}/examples/txrx_loopback_to_file |