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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 588137 - (hide annotations) (download)
Mon Feb 10 11:22:33 2014 UTC (10 years, 7 months ago) by barjac
File size: 2717 byte(s)
SILENT: fix typo
1 barjac 196101 Name: uhd
2     URL: http://code.ettus.com/redmine/ettus/projects/uhd/wiki
3 barjac 588134 Version: 3.6.2
4     Release: %mkrel 1
5 barjac 299080 Group: Communications/Radio
6 barjac 196157 Summary: Universal Hardware Driver for Ettus Research products
7 barjac 196101 License: GPLv3+
8 barjac 196157 Source0: %{name}-%{version}.tar.gz
9 barjac 217237 # Create tarball from git with:
10 barjac 588134 # $ ./make-tarball uhd https://github.com/EttusResearch/uhd.git
11 barjac 217237 # See note in make-tarball script
12 barjac 258969 Source1: make-tarball
13 barjac 217237
14 barjac 196101 BuildRequires: cmake
15 barjac 588134 BuildRequires: boost-devel >= 1.55
16 barjac 341382 BuildRequires: pkgconfig(libusb-1.0)
17 fwang 276501 BuildRequires: pkgconfig(orc-0.4)
18 barjac 196157 BuildRequires: python-cheetah
19     BuildRequires: python-docutils
20     BuildRequires: doxygen
21     BuildRequires: pkgconfig
22 barjac 196101
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 fwang 249727 pushd host
33     %cmake
34 barjac 196157 %make
35 fwang 249727 popd
36 barjac 196101
37     %install
38 fwang 249727 %makeinstall_std -C host/build
39 barjac 196101
40 barjac 588137 mv -t %{buildroot}%{_prefix}/share/ %{buildroot}%{_libdir}/uhd
41 barjac 588134
42 barjac 196101 # Allow access only to users in usrp group
43     sed -i 's/MODE:="0666"/MODE:="0660"/' %{buildroot}%{_datadir}/uhd/utils/uhd-usrp.rules
44 fwang 385731 mkdir -p %{buildroot}%{_prefix}/lib/udev/rules.d
45     mv %{buildroot}%{_datadir}/uhd/utils/uhd-usrp.rules %{buildroot}%{_prefix}/lib/udev/rules.d/10-usrp-uhd.rules
46 barjac 196101
47     # Remove binaries for tests, examples
48     rm -rf %{buildroot}%{_datadir}/uhd/{tests,examples}
49    
50     # Move the utils stuff to libexec dir
51     mkdir -p %{buildroot}%{_libexecdir}/uhd
52     mv %{buildroot}%{_datadir}/uhd/utils/* %{buildroot}%{_libexecdir}/uhd
53    
54     # Package base docs to base package
55     mkdir _tmpdoc
56 barjac 588134 mv %{buildroot}%{_docdir}/%{name}/{LICENSE,README.md} _tmpdoc
57 barjac 196101
58     %package devel
59     Summary: Development files for UHD
60 barjac 299080 Group: Communications/Radio
61 barjac 196101 Requires: %{name} = %{version}-%{release}
62    
63     %description devel
64     Development files for the Universal Hardware Driver (UHD).
65    
66     %package doc
67     Summary: Documentation files for UHD
68 barjac 299080 Group: Communications/Radio
69 barjac 196101 BuildArch: noarch
70    
71     %description doc
72     Documentation for the Universal Hardware Driver (UHD).
73    
74     %pre -n uhd
75     getent group usrp >/dev/null || groupadd -r usrp
76    
77     %files
78     %doc _tmpdoc/*
79     %{_bindir}/uhd_find_devices
80     %{_bindir}/uhd_usrp_probe
81 barjac 232342 %{_bindir}/uhd_cal_rx_iq_balance
82     %{_bindir}/uhd_cal_tx_dc_offset
83     %{_bindir}/uhd_cal_tx_iq_balance
84 barjac 433512 %{_bindir}/uhd_images_downloader
85     %{_bindir}/usrp2_card_burner
86     %{_bindir}/usrp_n2xx_simple_net_burner
87 fwang 385731 %{_prefix}/lib/udev/rules.d/10-usrp-uhd.rules
88 barjac 196101 %{_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 barjac 433512 %{_mandir}/man1/*

  ViewVC Help
Powered by ViewVC 1.1.30