/[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 433512 - (hide annotations) (download)
Thu May 30 22:30:09 2013 UTC (11 years, 3 months ago) by barjac
File size: 2656 byte(s)
new version 3.5.3
1 barjac 196101 Name: uhd
2     URL: http://code.ettus.com/redmine/ettus/projects/uhd/wiki
3 barjac 433512 Version: 3.5.3
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 258969 # $ ./make-tarball uhd git://code.ettus.com/ettus/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 196157 BuildRequires: boost-devel
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     # Allow access only to users in usrp group
41     sed -i 's/MODE:="0666"/MODE:="0660"/' %{buildroot}%{_datadir}/uhd/utils/uhd-usrp.rules
42 fwang 385731 mkdir -p %{buildroot}%{_prefix}/lib/udev/rules.d
43     mv %{buildroot}%{_datadir}/uhd/utils/uhd-usrp.rules %{buildroot}%{_prefix}/lib/udev/rules.d/10-usrp-uhd.rules
44 barjac 196101
45     # Remove binaries for tests, examples
46     rm -rf %{buildroot}%{_datadir}/uhd/{tests,examples}
47    
48     # Move the utils stuff to libexec dir
49     mkdir -p %{buildroot}%{_libexecdir}/uhd
50     mv %{buildroot}%{_datadir}/uhd/utils/* %{buildroot}%{_libexecdir}/uhd
51    
52     # Package base docs to base package
53     mkdir _tmpdoc
54     mv %{buildroot}%{_docdir}/%{name}/{AUTHORS.txt,LICENSE.txt,README.txt} _tmpdoc
55    
56     %package devel
57     Summary: Development files for UHD
58 barjac 299080 Group: Communications/Radio
59 barjac 196101 Requires: %{name} = %{version}-%{release}
60    
61     %description devel
62     Development files for the Universal Hardware Driver (UHD).
63    
64     %package doc
65     Summary: Documentation files for UHD
66 barjac 299080 Group: Communications/Radio
67 barjac 196101 BuildArch: noarch
68    
69     %description doc
70     Documentation for the Universal Hardware Driver (UHD).
71    
72     %pre -n uhd
73     getent group usrp >/dev/null || groupadd -r usrp
74    
75     %files
76     %doc _tmpdoc/*
77     %{_bindir}/uhd_find_devices
78     %{_bindir}/uhd_usrp_probe
79 barjac 232342 %{_bindir}/uhd_cal_rx_iq_balance
80     %{_bindir}/uhd_cal_tx_dc_offset
81     %{_bindir}/uhd_cal_tx_iq_balance
82 barjac 433512 %{_bindir}/uhd_images_downloader
83     %{_bindir}/usrp2_card_burner
84     %{_bindir}/usrp_n2xx_simple_net_burner
85 fwang 385731 %{_prefix}/lib/udev/rules.d/10-usrp-uhd.rules
86 barjac 196101 %{_libdir}/lib*.so.*
87     %{_libexecdir}/uhd
88    
89     %files devel
90     %{_includedir}/*
91     %{_libdir}/lib*.so
92     %{_libdir}/pkgconfig/*.pc
93    
94     %files doc
95     %doc %{_docdir}/%{name}/*
96 barjac 433512 %{_mandir}/man1/*

  ViewVC Help
Powered by ViewVC 1.1.30