[uhd] Initial import (#750591)
Jaroslav Škarvada
jskarvad at fedoraproject.org
Thu Dec 1 16:16:30 UTC 2011
commit 574a83c3cedbbb5c70e6183e440c60628c4d8edb
Author: Jaroslav Škarvada <jskarvad at redhat.com>
Date: Thu Dec 1 17:15:55 2011 +0100
Initial import (#750591)
.gitignore | 1 +
sources | 1 +
uhd.spec | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 106 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2d144e6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/uhd-3.3.0.tar.gz
diff --git a/sources b/sources
index e69de29..c09c600 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+438e6fbf20352b76eda21840d6714d6f uhd-3.3.0.tar.gz
diff --git a/uhd.spec b/uhd.spec
new file mode 100644
index 0000000..ded7c4a
--- /dev/null
+++ b/uhd.spec
@@ -0,0 +1,104 @@
+# Pull from git
+%global git_tag release_003_003_000
+
+# git clone git://code.ettus.com/ettus/uhd.git
+# cd uhd
+# git archive --format=tar --prefix=%%{name}-%%{version}/ %%{git_tag} | \
+# gzip > ../%%{name}-%%{version}.tar.gz
+
+Name: uhd
+URL: http://code.ettus.com/redmine/ettus/projects/uhd/wiki
+Version: 3.3.0
+Release: 2%{?dist}
+License: GPLv3+
+BuildRequires: cmake
+BuildRequires: boost-devel libusb1-devel python-cheetah
+BuildRequires: docutils doxygen pkgconfig
+Group: Applications/Engineering
+Summary: Universal Hardware Driver
+Source0: %{name}-%{version}.tar.gz
+
+%description
+The UHD is the universal hardware driver for Ettus Research products.
+The goal of the UHD is to provide a host driver and API for current and
+future Ettus Research products. It can be used standalone without GNU Radio.
+
+%prep
+%setup -q
+
+%build
+mkdir host/build
+cd host/build
+%cmake ../
+make %{?_smp_mflags}
+
+%check
+cd host/build
+make test
+
+%install
+pushd host/build
+make install DESTDIR=%{buildroot}
+
+# Allow access only to users in usrp group
+sed -i 's/MODE:="0666"/MODE:="0660"/' %{buildroot}%{_datadir}/uhd/utils/uhd-usrp.rules
+mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d
+mv %{buildroot}%{_datadir}/uhd/utils/uhd-usrp.rules %{buildroot}%{_sysconfdir}/udev/rules.d/10-usrp-uhd.rules
+
+# Remove binaries for tests, examples
+rm -rf %{buildroot}%{_datadir}/uhd/{tests,examples}
+
+# Move the utils stuff to libexec dir
+mkdir -p %{buildroot}%{_libexecdir}/uhd
+mv %{buildroot}%{_datadir}/uhd/utils/* %{buildroot}%{_libexecdir}/uhd
+
+popd
+# Package base docs to base package
+mkdir _tmpdoc
+mv %{buildroot}%{_docdir}/%{name}/{AUTHORS.txt,LICENSE.txt,README.txt} _tmpdoc
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%package devel
+Summary: Development files for UHD
+Group: Applications/Engineering
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Development files for the Universal Hardware Driver (UHD).
+
+%package doc
+Summary: Documentation files for UHD
+Group: Applications/Engineering
+BuildArch: noarch
+
+%description doc
+Documentation for the Universal Hardware Driver (UHD).
+
+%pre -n uhd
+getent group usrp >/dev/null || groupadd -r usrp
+
+%files
+%doc _tmpdoc/*
+%{_bindir}/uhd_find_devices
+%{_bindir}/uhd_usrp_probe
+%config(noreplace) %{_sysconfdir}/udev/rules.d/10-usrp-uhd.rules
+%{_libdir}/lib*.so.*
+%{_libexecdir}/uhd
+
+%files devel
+%{_includedir}/*
+%{_libdir}/lib*.so
+%{_libdir}/pkgconfig/*.pc
+
+%files doc
+%doc %{_docdir}/%{name}/*
+
+%changelog
+* Wed Nov 30 2011 Jaroslav Škarvada <jskarvad at redhat.com> - 3.3.0-2
+- Fixed according to reviewer comments
+
+* Tue Nov 01 2011 Jaroslav Škarvada <jskarvad at redhat.com> - 3.3.0-1
+- Initial version
More information about the scm-commits
mailing list