/[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 196101 - (show annotations) (download)
Sat Jan 14 20:50:08 2012 UTC (12 years, 7 months ago) by barjac
File size: 2571 byte(s)
imported package uhd
1 # Pull from git
2 %global git_tag release_003_003_001
3
4 # git clone git://code.ettus.com/ettus/uhd.git
5 # cd uhd
6 # git archive --format=tar --prefix=%%{name}-%%{version}/ %%{git_tag} | \
7 # gzip > ../%%{name}-%%{version}.tar.gz
8
9 Name: uhd
10 URL: http://code.ettus.com/redmine/ettus/projects/uhd/wiki
11 Version: 3.3.1
12 Release: 1%{?dist}
13 License: GPLv3+
14 BuildRequires: cmake
15 BuildRequires: boost-devel libusb1-devel python-cheetah
16 BuildRequires: docutils doxygen pkgconfig
17 Group: Applications/Engineering
18 Summary: Universal Hardware Driver for Ettus Research products
19 Source0: %{name}-%{version}.tar.gz
20
21 %description
22 The UHD is the universal hardware driver for Ettus Research products.
23 The goal of the UHD is to provide a host driver and API for current and
24 future Ettus Research products. It can be used standalone without GNU Radio.
25
26 %prep
27 %setup -q
28
29 %build
30 mkdir host/build
31 cd host/build
32 %cmake ../
33 make %{?_smp_mflags}
34
35 %check
36 cd host/build
37 make test
38
39 %install
40 pushd host/build
41 make install DESTDIR=%{buildroot}
42
43 # Allow access only to users in usrp group
44 sed -i 's/MODE:="0666"/MODE:="0660"/' %{buildroot}%{_datadir}/uhd/utils/uhd-usrp.rules
45 mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d
46 mv %{buildroot}%{_datadir}/uhd/utils/uhd-usrp.rules %{buildroot}%{_sysconfdir}/udev/rules.d/10-usrp-uhd.rules
47
48 # Remove binaries for tests, examples
49 rm -rf %{buildroot}%{_datadir}/uhd/{tests,examples}
50
51 # Move the utils stuff to libexec dir
52 mkdir -p %{buildroot}%{_libexecdir}/uhd
53 mv %{buildroot}%{_datadir}/uhd/utils/* %{buildroot}%{_libexecdir}/uhd
54
55 popd
56 # Package base docs to base package
57 mkdir _tmpdoc
58 mv %{buildroot}%{_docdir}/%{name}/{AUTHORS.txt,LICENSE.txt,README.txt} _tmpdoc
59
60 %post -p /sbin/ldconfig
61
62 %postun -p /sbin/ldconfig
63
64 %package devel
65 Summary: Development files for UHD
66 Group: Applications/Engineering
67 Requires: %{name} = %{version}-%{release}
68
69 %description devel
70 Development files for the Universal Hardware Driver (UHD).
71
72 %package doc
73 Summary: Documentation files for UHD
74 Group: Applications/Engineering
75 BuildArch: noarch
76
77 %description doc
78 Documentation for the Universal Hardware Driver (UHD).
79
80 %pre -n uhd
81 getent group usrp >/dev/null || groupadd -r usrp
82
83 %files
84 %doc _tmpdoc/*
85 %{_bindir}/uhd_find_devices
86 %{_bindir}/uhd_usrp_probe
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