/[packages]/cauldron/uhd/current/SPECS/uhd.spec
ViewVC logotype

Contents of /cauldron/uhd/current/SPECS/uhd.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 249727 - (show annotations) (download)
Wed May 30 04:58:49 2012 UTC (12 years, 3 months ago) by fwang
File size: 2553 byte(s)
rebuild for new boost
1 Name: uhd
2 URL: http://code.ettus.com/redmine/ettus/projects/uhd/wiki
3 Version: 3.4.1
4 Release: %mkrel 2
5 Group: Communications
6 Summary: Universal Hardware Driver for Ettus Research products
7 License: GPLv3+
8 Source0: %{name}-%{version}.tar.gz
9 # Create tarball from git with:
10 # $ make-tarball uhd git://code.ettus.com/ettus/uhd.git
11 # See note in make-tarball script
12 Source1: make-tarball
13
14 BuildRequires: cmake
15 BuildRequires: boost-devel
16 BuildRequires: libusb1-devel
17 BuildRequires: liborc-devel
18 BuildRequires: python-cheetah
19 BuildRequires: python-docutils
20 BuildRequires: doxygen
21 BuildRequires: pkgconfig
22
23 %description
24 The UHD is the universal hardware driver for Ettus Research products.
25 The goal of the UHD is to provide a host driver and API for current and
26 future Ettus Research products. It can be used standalone without GNU Radio.
27
28 %prep
29 %setup -q
30
31 %build
32 pushd host
33 %cmake
34 %make
35 popd
36
37 %check
38 cd host/build
39 make test
40
41 %install
42 %makeinstall_std -C host/build
43
44 # Allow access only to users in usrp group
45 sed -i 's/MODE:="0666"/MODE:="0660"/' %{buildroot}%{_datadir}/uhd/utils/uhd-usrp.rules
46 mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d
47 mv %{buildroot}%{_datadir}/uhd/utils/uhd-usrp.rules %{buildroot}%{_sysconfdir}/udev/rules.d/10-usrp-uhd.rules
48
49 # Remove binaries for tests, examples
50 rm -rf %{buildroot}%{_datadir}/uhd/{tests,examples}
51
52 # Move the utils stuff to libexec dir
53 mkdir -p %{buildroot}%{_libexecdir}/uhd
54 mv %{buildroot}%{_datadir}/uhd/utils/* %{buildroot}%{_libexecdir}/uhd
55
56 popd
57 # Package base docs to base package
58 mkdir _tmpdoc
59 mv %{buildroot}%{_docdir}/%{name}/{AUTHORS.txt,LICENSE.txt,README.txt} _tmpdoc
60
61 %package devel
62 Summary: Development files for UHD
63 Group: Communications
64 Requires: %{name} = %{version}-%{release}
65
66 %description devel
67 Development files for the Universal Hardware Driver (UHD).
68
69 %package doc
70 Summary: Documentation files for UHD
71 Group: Communications
72 BuildArch: noarch
73
74 %description doc
75 Documentation for the Universal Hardware Driver (UHD).
76
77 %pre -n uhd
78 getent group usrp >/dev/null || groupadd -r usrp
79
80 %files
81 %doc _tmpdoc/*
82 %{_bindir}/uhd_find_devices
83 %{_bindir}/uhd_usrp_probe
84 %{_bindir}/uhd_cal_rx_iq_balance
85 %{_bindir}/uhd_cal_tx_dc_offset
86 %{_bindir}/uhd_cal_tx_iq_balance
87 %config(noreplace) %{_sysconfdir}/udev/rules.d/10-usrp-uhd.rules
88 %{_libdir}/lib*.so.*
89 %{_libexecdir}/uhd
90
91 %files devel
92 %{_includedir}/*
93 %{_libdir}/lib*.so
94 %{_libdir}/pkgconfig/*.pc
95
96 %files doc
97 %doc %{_docdir}/%{name}/*
98

  ViewVC Help
Powered by ViewVC 1.1.30