]>
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 | 14 | URL: http://www.qcustomplot.com/ |
24404f1d | 15 | BuildRequires: boost-devel |
938948b4 | 16 | BuildRequires: cmake >= 2.8.0 |
e4482680 ER |
17 | BuildRequires: doxygen |
18 | BuildRequires: libusb-devel | |
19 | BuildRequires: ncurses-devel | |
20 | BuildRequires: orc-devel | |
21 | BuildRequires: pkgconfig | |
22 | BuildRequires: python-cheetah | |
e4482680 ER |
23 | BuildRequires: rpm-pythonprov |
24 | BuildRequires: udev-devel | |
938948b4 | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
938948b4 BS |
26 | |
27 | %define filterout -flto | |
28 | ||
29 | %description | |
30 | The UHD is the universal hardware driver for Ettus Research products. | |
31 | The goal of the UHD is to provide a host driver and API for current | |
32 | and future Ettus Research products. It can be used standalone without | |
33 | GNU Radio. | |
34 | ||
35 | %package devel | |
36 | Summary: Development files for %{name} | |
37 | Group: X11/Development/Libraries | |
38 | Requires: %{name} = %{version}-%{release} | |
39 | ||
40 | %description devel | |
41 | Header files for Universal Hardware Driver for Ettus Research | |
42 | products. | |
43 | ||
24404f1d | 44 | %package doc |
938948b4 BS |
45 | Summary: Documentation and examples for uhd |
46 | Group: Documentation | |
47 | %if "%{_rpmversion}" >= "5" | |
48 | BuildArch: noarch | |
49 | %endif | |
50 | ||
51 | %description doc | |
52 | Documentation and examples for Universal Hardware Driver for Ettus | |
53 | Research products | |
54 | ||
55 | %prep | |
56 | %setup -q | |
57 | ||
58 | %build | |
938948b4 BS |
59 | install -d build |
60 | cd build | |
61 | %cmake \ | |
24404f1d | 62 | .. |
938948b4 BS |
63 | %{__make} |
64 | ||
938948b4 BS |
65 | %install |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | %{__make} -C build install/fast \ | |
68 | DESTDIR=$RPM_BUILD_ROOT | |
69 | ||
24404f1d ER |
70 | rm $RPM_BUILD_ROOT%{_libdir}/%{name}/utils/usrp_n2xx_simple_net_burner |
71 | rm $RPM_BUILD_ROOT%{_libdir}/%{name}/utils/usrp_x3xx_fpga_burner | |
72 | ||
73 | # not packaged | |
74 | rm -r $RPM_BUILD_ROOT%{_libdir}/%{name}/tests | |
938948b4 BS |
75 | |
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
24404f1d ER |
79 | %post -p /sbin/ldconfig |
80 | %postun -p /sbin/ldconfig | |
938948b4 BS |
81 | |
82 | %files | |
83 | %defattr(644,root,root,755) | |
84 | %attr(755,root,root) %{_bindir}/nirio_programmer | |
85 | %attr(755,root,root) %{_bindir}/octoclock_firmware_burner | |
86 | %attr(755,root,root) %{_bindir}/uhd_cal_rx_iq_balance | |
87 | %attr(755,root,root) %{_bindir}/uhd_cal_tx_dc_offset | |
88 | %attr(755,root,root) %{_bindir}/uhd_cal_tx_iq_balance | |
89 | %attr(755,root,root) %{_bindir}/uhd_find_devices | |
90 | %attr(755,root,root) %{_bindir}/uhd_images_downloader | |
91 | %attr(755,root,root) %{_bindir}/uhd_usrp_probe | |
24404f1d ER |
92 | %attr(755,root,root) %{_bindir}/usrp2_card_burner |
93 | %attr(755,root,root) %{_bindir}/usrp_n2xx_simple_net_burner | |
94 | %attr(755,root,root) %{_bindir}/usrp_x3xx_fpga_burner | |
95 | %{_mandir}/man1/octoclock_firmware_burner.1* | |
96 | %{_mandir}/man1/uhd_cal_rx_iq_balance.1* | |
97 | %{_mandir}/man1/uhd_cal_tx_dc_offset.1* | |
98 | %{_mandir}/man1/uhd_cal_tx_iq_balance.1* | |
99 | %{_mandir}/man1/uhd_find_devices.1* | |
100 | %{_mandir}/man1/uhd_images_downloader.1* | |
101 | %{_mandir}/man1/uhd_usrp_probe.1* | |
58254af1 ER |
102 | %{_mandir}/man1%{_prefix}p2_card_burner.1* |
103 | %{_mandir}/man1%{_prefix}p_n2xx_simple_net_burner.1* | |
104 | %{_mandir}/man1%{_prefix}p_x3xx_fpga_burner.1* | |
24404f1d ER |
105 | %attr(755,root,root) %{_libdir}/libuhd.so.00*.00* |
106 | %attr(755,root,root) %ghost %{_libdir}/libuhd.so.003 | |
107 | %dir %{_libdir}/%{name} | |
58254af1 ER |
108 | %dir %{_libdir}/%{name}/utils |
109 | %attr(755,root,root) %{_libdir}/%{name}/utils/*.py | |
110 | %{_libdir}/%{name}/utils/uhd-usrp.rules | |
111 | %attr(755,root,root) %{_libdir}/%{name}/utils/*_eeprom | |
112 | %attr(755,root,root) %{_libdir}/%{name}/utils/*_utils | |
113 | %attr(755,root,root) %{_libdir}/%{name}/utils/*_sensors | |
114 | %dir %{_libdir}/%{name}/utils/latency | |
115 | %attr(755,root,root) %{_libdir}/%{name}/utils/latency/* | |
938948b4 BS |
116 | |
117 | %files devel | |
118 | %defattr(644,root,root,755) | |
119 | %{_pkgconfigdir}/uhd.pc | |
938948b4 | 120 | %{_includedir}/uhd |
24404f1d ER |
121 | %{_libdir}/cmake/uhd |
122 | %{_libdir}/libuhd.so | |
938948b4 BS |
123 | |
124 | %files doc | |
125 | %defattr(644,root,root,755) | |
24404f1d ER |
126 | %{_docdir}/%{name} |
127 | %dir %dir %{_libdir}/%{name} | |
128 | %dir %{_libdir}/%{name}/examples | |
58254af1 | 129 | %attr(755,root,root) %{_libdir}/%{name}/examples/* |