]>
Commit | Line | Data |
---|---|---|
938948b4 | 1 | Summary: Universal Hardware Driver for Ettus Research products |
245f21b5 | 2 | Summary(pl.UTF-8): Uniwersalny sterownik sprzętowy do produktów Ettus Research |
938948b4 | 3 | Name: uhd |
245f21b5 JB |
4 | Version: 3.10.1.1 |
5 | Release: 1 | |
938948b4 | 6 | License: GPL v3+ |
245f21b5 JB |
7 | Group: Applications/System |
8 | Source0: https://files.ettus.com/binaries/uhd/src/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 7b33dffef36c7c029104a49b0151b1ae | |
10 | Patch0: %{name}-boost.patch | |
11 | Patch1: %{name}-libdir.patch | |
12 | URL: https://www.ettus.com/sdr-software/uhd-usrp-hardware-driver/ | |
13 | BuildRequires: boost-devel >= 1.53 | |
938948b4 | 14 | BuildRequires: cmake >= 2.8.0 |
e4482680 | 15 | BuildRequires: doxygen |
245f21b5 JB |
16 | BuildRequires: gpsd-devel >= 3.11 |
17 | BuildRequires: libstdc++-devel >= 6:4.8.0 | |
18 | BuildRequires: libusb-devel >= 1.0 | |
e4482680 | 19 | BuildRequires: ncurses-devel |
e4482680 | 20 | BuildRequires: pkgconfig |
245f21b5 JB |
21 | BuildRequires: python >= 1:2.7 |
22 | BuildRequires: python-Mako >= 0.4.2 | |
23 | BuildRequires: python-requests >= 2.0 | |
e4482680 ER |
24 | BuildRequires: rpm-pythonprov |
25 | BuildRequires: udev-devel | |
245f21b5 | 26 | Requires: %{name}-libs = %{version}-%{release} |
938948b4 | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
938948b4 | 28 | |
938948b4 BS |
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 | ||
245f21b5 JB |
35 | %description -l pl.UTF-8 |
36 | UHD to uniwersalny sterownik sprzętowy do produktów Ettus Research. | |
37 | Celem UHD jest zapewnienie sterownika gospodarza oraz API do obecnych | |
38 | i przyszłych produków Ettus Research. Może być używany samodzielnie | |
39 | bez GNU Radio. | |
40 | ||
41 | %package libs | |
42 | Summary: USRP Hardware Driver library | |
43 | Summary(pl.UTF-8): Biblioteka USRP Hardware Driver | |
44 | Group: Libraries | |
45 | ||
46 | %description libs | |
47 | USRP Hardware Driver library. | |
48 | ||
49 | %description libs -l pl.UTF-8 | |
50 | Biblioteka USRP Hardware Driver. | |
51 | ||
938948b4 | 52 | %package devel |
245f21b5 JB |
53 | Summary: Development files for USRP Hardware Driver library |
54 | Summary(pl.UTF-8): Pliki programistyczne biblioteki USRP Hardware Driver | |
55 | Group: Development/Libraries | |
56 | Requires: %{name}-libs = %{version}-%{release} | |
57 | Requires: boost-devel >= 1.53 | |
938948b4 BS |
58 | |
59 | %description devel | |
245f21b5 JB |
60 | Header files for USRP Hardware Driver for Ettus Research products. |
61 | ||
62 | %description devel -l pl.UTF-8 | |
63 | Pliki nagłówkowe biblioteki USRP Hardware Driver (sterownika dla | |
64 | sprzętu USRP) do produktów Ettus Research. | |
65 | ||
66 | %package examples | |
67 | Summary: Examples for UHD | |
68 | Summary(pl.UTF-8): Przykłady do UHD | |
69 | Group: Applications/System | |
70 | Requires: %{name}-libs = %{version}-%{release} | |
71 | ||
72 | %description examples | |
73 | Example programs for USRP Hardware Driver for Ettus Research products. | |
74 | ||
75 | %description examples -l pl.UTF-8 | |
76 | Programy przykładowe do biblioteki USRP Hardware Driver (sterownika | |
77 | dla sprzętu USRP) do produktów Ettus Research. | |
938948b4 | 78 | |
24404f1d | 79 | %package doc |
245f21b5 JB |
80 | Summary: Documentation for UHD |
81 | Summary(pl.UTF-8): Dokumentacja do UHD | |
938948b4 | 82 | Group: Documentation |
245f21b5 | 83 | %if "%{_rpmversion}" >= "4.6" |
938948b4 BS |
84 | BuildArch: noarch |
85 | %endif | |
86 | ||
87 | %description doc | |
245f21b5 JB |
88 | Documentation for USRP Hardware Driver for Ettus Research products. |
89 | ||
90 | %description doc -l pl.UTF-8 | |
91 | Dokumentacja do biblioteki USRP Hardware Driver (sterownika dla | |
92 | sprzętu USRP) do produktów Ettus Research. | |
938948b4 BS |
93 | |
94 | %prep | |
245f21b5 JB |
95 | %setup -q -n UHD_%{version}_release |
96 | %patch0 -p1 | |
97 | %patch1 -p1 | |
98 | ||
99 | %{__sed} -i -e '1s,/usr/bin/env python$,%{__python},' utils/{converter_benchmark.py,uhd_images_downloader.py.in,usrp2_{card_burner,card_burner_gui,recovery}.py,usrp_n2xx_net_burner{,_gui}.py} | |
100 | %{__sed} -i -e '1s,/usr/bin/env python$,%{__python},' utils/latency/graph.py | |
938948b4 BS |
101 | |
102 | %build | |
938948b4 BS |
103 | install -d build |
104 | cd build | |
245f21b5 JB |
105 | %cmake .. \ |
106 | -DENABLE_USB=ON | |
107 | ||
938948b4 BS |
108 | %{__make} |
109 | ||
938948b4 BS |
110 | %install |
111 | rm -rf $RPM_BUILD_ROOT | |
245f21b5 JB |
112 | |
113 | %{__make} -C build install \ | |
938948b4 BS |
114 | DESTDIR=$RPM_BUILD_ROOT |
115 | ||
245f21b5 JB |
116 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/utils/usrp_n2xx_simple_net_burner |
117 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/utils/usrp_x3xx_fpga_burner | |
118 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/utils/latency/run_tests.py | |
119 | ||
120 | # packaged as %doc | |
121 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/uhd/{LICENSE,README.md} | |
24404f1d ER |
122 | |
123 | # not packaged | |
245f21b5 | 124 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/tests |
938948b4 BS |
125 | |
126 | %clean | |
127 | rm -rf $RPM_BUILD_ROOT | |
128 | ||
245f21b5 JB |
129 | %post libs -p /sbin/ldconfig |
130 | %postun libs -p /sbin/ldconfig | |
938948b4 BS |
131 | |
132 | %files | |
133 | %defattr(644,root,root,755) | |
245f21b5 | 134 | %doc LICENSE README.md |
938948b4 BS |
135 | %attr(755,root,root) %{_bindir}/octoclock_firmware_burner |
136 | %attr(755,root,root) %{_bindir}/uhd_cal_rx_iq_balance | |
137 | %attr(755,root,root) %{_bindir}/uhd_cal_tx_dc_offset | |
138 | %attr(755,root,root) %{_bindir}/uhd_cal_tx_iq_balance | |
245f21b5 | 139 | %attr(755,root,root) %{_bindir}/uhd_config_info |
938948b4 | 140 | %attr(755,root,root) %{_bindir}/uhd_find_devices |
245f21b5 | 141 | %attr(755,root,root) %{_bindir}/uhd_image_loader |
938948b4 BS |
142 | %attr(755,root,root) %{_bindir}/uhd_images_downloader |
143 | %attr(755,root,root) %{_bindir}/uhd_usrp_probe | |
24404f1d ER |
144 | %attr(755,root,root) %{_bindir}/usrp2_card_burner |
145 | %attr(755,root,root) %{_bindir}/usrp_n2xx_simple_net_burner | |
146 | %attr(755,root,root) %{_bindir}/usrp_x3xx_fpga_burner | |
147 | %{_mandir}/man1/octoclock_firmware_burner.1* | |
148 | %{_mandir}/man1/uhd_cal_rx_iq_balance.1* | |
149 | %{_mandir}/man1/uhd_cal_tx_dc_offset.1* | |
150 | %{_mandir}/man1/uhd_cal_tx_iq_balance.1* | |
245f21b5 | 151 | %{_mandir}/man1/uhd_config_info.1* |
24404f1d | 152 | %{_mandir}/man1/uhd_find_devices.1* |
245f21b5 | 153 | %{_mandir}/man1/uhd_image_loader.1* |
24404f1d ER |
154 | %{_mandir}/man1/uhd_images_downloader.1* |
155 | %{_mandir}/man1/uhd_usrp_probe.1* | |
245f21b5 JB |
156 | %{_mandir}/man1/usrp2_card_burner.1* |
157 | %{_mandir}/man1/usrp_n2xx_simple_net_burner.1* | |
158 | %{_mandir}/man1/usrp_x3xx_fpga_burner.1* | |
58254af1 | 159 | %dir %{_libdir}/%{name}/utils |
245f21b5 JB |
160 | %attr(755,root,root) %{_libdir}/%{name}/utils/b2xx_fx3_utils |
161 | %attr(755,root,root) %{_libdir}/%{name}/utils/converter_benchmark | |
162 | %attr(755,root,root) %{_libdir}/%{name}/utils/converter_benchmark.py | |
163 | %attr(755,root,root) %{_libdir}/%{name}/utils/fx2_init_eeprom | |
164 | %attr(755,root,root) %{_libdir}/%{name}/utils/octoclock_burn_eeprom | |
165 | %attr(755,root,root) %{_libdir}/%{name}/utils/query_gpsdo_sensors | |
166 | %attr(755,root,root) %{_libdir}/%{name}/utils/uhd_images_downloader.py | |
167 | %attr(755,root,root) %{_libdir}/%{name}/utils/usrp2_card_burner.py | |
168 | %attr(755,root,root) %{_libdir}/%{name}/utils/usrp2_card_burner_gui.py | |
169 | %attr(755,root,root) %{_libdir}/%{name}/utils/usrp2_recovery.py | |
170 | %attr(755,root,root) %{_libdir}/%{name}/utils/usrp_burn_db_eeprom | |
171 | %attr(755,root,root) %{_libdir}/%{name}/utils/usrp_burn_mb_eeprom | |
172 | %attr(755,root,root) %{_libdir}/%{name}/utils/usrp_n2xx_net_burner.py | |
173 | %attr(755,root,root) %{_libdir}/%{name}/utils/usrp_n2xx_net_burner_gui.py | |
58254af1 | 174 | %{_libdir}/%{name}/utils/uhd-usrp.rules |
58254af1 | 175 | %dir %{_libdir}/%{name}/utils/latency |
245f21b5 JB |
176 | %attr(755,root,root) %{_libdir}/%{name}/utils/latency/graph.py |
177 | %attr(755,root,root) %{_libdir}/%{name}/utils/latency/responder | |
178 | %{_datadir}/%{name} | |
179 | ||
180 | %files libs | |
181 | %defattr(644,root,root,755) | |
182 | %attr(755,root,root) %{_libdir}/libuhd.so.*.* | |
183 | %attr(755,root,root) %ghost %{_libdir}/libuhd.so.003 | |
184 | %dir %{_libdir}/%{name} | |
938948b4 BS |
185 | |
186 | %files devel | |
187 | %defattr(644,root,root,755) | |
245f21b5 | 188 | %attr(755,root,root) %{_libdir}/libuhd.so |
938948b4 | 189 | %{_includedir}/uhd |
245f21b5 | 190 | %{_includedir}/uhd.h |
24404f1d | 191 | %{_libdir}/cmake/uhd |
245f21b5 | 192 | %{_pkgconfigdir}/uhd.pc |
938948b4 | 193 | |
245f21b5 | 194 | %files examples |
938948b4 | 195 | %defattr(644,root,root,755) |
24404f1d | 196 | %dir %{_libdir}/%{name}/examples |
58254af1 | 197 | %attr(755,root,root) %{_libdir}/%{name}/examples/* |
245f21b5 JB |
198 | |
199 | %files doc | |
200 | %defattr(644,root,root,755) | |
201 | %{_docdir}/%{name} |