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