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