Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:wkazubski
uhd3_15
uhd.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File uhd.spec of Package uhd3_15
# # spec file for package uhd # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: uhd %define libname libuhd3_15_0 Version: 3.15.0.0 Release: 0 Summary: The driver for USRP SDR boards License: GPL-3.0-or-later Group: Hardware/Other Url: http://ettus-apps.sourcerepo.com/redmine/ettus/projects/uhd/wiki %if 0%{?suse_version} > 1000 Source0: https://github.com/EttusResearch/uhd/archive/uhd-%{version}git20210617.tar.gz Patch0: uhd_fix_boost.patch Patch1: uhd-3.15-add-boost-math-header-files.patch %else Source0: https://github.com/EttusResearch/uhd/archive/uhd-%{version}.tar.gz %endif Source1: requests https://github.com/EttusResearch/uhd/releases/download/v%{version}/uhd-images_%{version}.tar.xz %if 0%{?suse_version} > 1325 BuildRequires: libboost_filesystem-devel BuildRequires: libboost_headers-devel BuildRequires: libboost_program_options-devel BuildRequires: libboost_regex-devel BuildRequires: libboost_serialization-devel BuildRequires: libboost_system-devel BuildRequires: libboost_test-devel BuildRequires: libboost_thread-devel %else BuildRequires: boost-devel >= 1.36.0 %endif BuildRequires: cmake >= 2.6 BuildRequires: docutils BuildRequires: doxygen BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libudev-devel BuildRequires: ncurses-devel BuildRequires: orc BuildRequires: pkg-config %if 0%{?suse_version} >= 1500 BuildRequires: libboost_python3-devel BuildRequires: python3-Cheetah3 >= 3.0.0 BuildRequires: python3-Mako >= 0.4.2 BuildRequires: python3-requests BuildRequires: python3-numpy-devel BuildRequires: python3-setuptools BuildRequires: python3-devel %else BuildRequires: libboost_python-devel BuildRequires: python-Cheetah >= 2.0.0 BuildRequires: python-Mako >= 0.4.2 BuildRequires: python-requests BuildRequires: python-numpy-devel BuildRequires: python-setuptools BuildRequires: python-devel >= 2.6 %endif BuildRequires: udev BuildRequires: pkgconfig(liberio) BuildRequires: pkgconfig(libusb-1.0) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: gpsd-devel Requires: udev %description The UHD is the "Universal Software Radio Peripheral" hardware driver. The goal of the UHD is to provide a host driver and API for current and future Ettus Research products. Users will be able to use the UHD driver standalone or with 3rd party applications. %package -n %{libname} Summary: The UHD driver Group: Hardware/Other Requires: %{name}-udev >= %{version} # PRE script requires /usr/sbin/groupadd, that exists in the "shadow" package Requires(pre): shadow %description -n %{libname} The UHD is the "Universal Software Radio Peripheral" hardware driver. The goal of the UHD is to provide a host driver and API for current and future Ettus Research products. Users will be able to use the UHD driver standalone or with 3rd party applications. %package -n python2-%{name} Summary: Python binding for UHD Group: Hardware/Other %description -n python2-%{name} The UHD is the "Universal Software Radio Peripheral" hardware driver. The goal of the UHD is to provide a host driver and API for current and future Ettus Research products. Users will be able to use the UHD driver standalone or with 3rd party applications. This package contains python 2 bindings for UHD %package -n python3-%{name} Summary: Python binding for UHD Group: Hardware/Other %description -n python3-%{name} The UHD is the "Universal Software Radio Peripheral" hardware driver. The goal of the UHD is to provide a host driver and API for current and future Ettus Research products. Users will be able to use the UHD driver standalone or with 3rd party applications. This package contains python 3 bindings for UHD %package rfnoc Summary: RFNoC blocks for GNU Radio Group: Hardware/Other Requires: %{libname} = %{version} Requires: gnuradio BuildArch: noarch %description rfnoc GNU Radio building blocks for RFNoC (RF Network-on-Chip), the new feature available on 3rd generation (E3xx and X3xx) of USRP devices. Special version of firmware may be required. %package udev Summary: UHD udev rules Group: Hardware/Other BuildArch: noarch %description udev The UHD is the "Universal Software Radio Peripheral" hardware driver. The goal of the UHD is to provide a host driver and API for current and future Ettus Research products. Users will be able to use the UHD driver standalone or with 3rd party applications. This package contains udev rules for UHD. %package devel Summary: Development files for uhd Group: Development/Libraries/Other Requires: %{libname} = %{version} %if 0%{?suse_version} > 1325 Requires: libboost_filesystem-devel Requires: libboost_program_options-devel Requires: libboost_regex-devel Requires: libboost_serialization-devel Requires: libboost_test-devel Requires: libboost_thread-devel %else Requires: boost-devel %endif Recommends: %{name}-doc %description devel The UHD is the "Universal Software Radio Peripheral" hardware driver. The goal of the UHD is to provide a host driver and API for current and future Ettus Research products. Users will be able to use the UHD driver standalone or with 3rd party applications. This package contains all the necessary tools, examples and include files for development with the UHD Driver. %package doc Summary: Documentation files for uhd Group: Documentation/Other BuildArch: noarch %description doc This package contains the documentation for the Universal Hardware Driver (UHD). %package firmware Summary: Firmware images for uhd Group: Hardware/Other Requires: %{libname} = %{version} BuildArch: noarch %description firmware This package contains binary firmware images for the Universal Hardware Driver (UHD). %prep %setup -q %if 0%{?suse_version} > 1500 %patch0 -p 1 %patch1 -p 1 %endif # remove buildtime from documentation echo "HTML_TIMESTAMP = NO" >> host/docs/Doxyfile.in %build touch ../README.md cd host %cmake \ -DENABLE_TESTS=0 \ -DENABLE_RFNOC=1 \ %if 0%{?suse_version} > 1500 -DENABLE_PYTHON3=1 \ %endif -DUHD_IMAGES_DIR=/usr/share/uhd/images \ -DCMAKE_SHARED_LINKER_FLAGS="" make VERBOSE=1 %{?_smp_mflags} %check # Disable tests on some arcitectures due to failure of convert_test %ifarch aarch64 armv7h x86_64 cd host/build make VERBOSE=1 test %endif %install cd host %cmake_install # Fix udev rules and allow access only to users in usrp group sed -i 's/BUS==/SUBSYSTEM==/;s/SYSFS{/ATTRS{/;s/MODE:="0666"/GROUP:="usrp", MODE:="0660"/' %{buildroot}%{_libdir}/uhd/utils/uhd-usrp.rules install -m 0644 -D %{buildroot}%{_libdir}/uhd/utils/uhd-usrp.rules %{buildroot}%{_udevrulesdir}/10-usrp-uhd.rules rm %{buildroot}%{_libdir}/uhd/utils/uhd-usrp.rules # Move documentation at the default docdir mkdir -p %{buildroot}%{_docdir}/uhd mv %{buildroot}%{_datadir}/doc/uhd %{buildroot}%{_docdir}/ # Move utils to the default bindir mv %{buildroot}%{_libdir}/uhd/utils/*_*[!.rules] %{buildroot}%{_bindir} rm -rf %{buildroot}%{_libdir}/uhd/tests rm -rf %{buildroot}%{_docdir}/uhd/LICENSE rm -rf %{buildroot}%{_docdir}/uhd/README.md # two executable files are installed to /usr/share/uhd mv %{buildroot}%{_libdir}/uhd/utils/query_gpsdo_sensors %{buildroot}%{_bindir} mv %{buildroot}%{_libdir}/uhd/utils/b2xx_fx3_utils %{buildroot}%{_bindir} # extract firmware mkdir -p %{buildroot}%{_datadir}/uhd tar -xJvf %{SOURCE1} --transform="s,^uhd-images_%{img_ver}-release/share/uhd/,," --show-transformed-names -C %{buildroot}%{_datadir}/uhd # find dupes %fdupes -s %{buildroot}%{_prefix} %pre -n %{libname} getent group usrp >/dev/null || %{_sbindir}/groupadd -r usrp %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files -n %{libname} %license host/LICENSE %{_libdir}/*.so.*.* %if 0%{?suse_version} >= 1500 %files -n python3-%{name} %{python3_sitearch}/%{name} %else %files -n python2-%{name} %{python_sitearch}/%{name} %endif %files rfnoc %{_datadir}/%{name}/rfnoc %files udev %{_udevrulesdir}/10-usrp-uhd.rules %files devel %dir %{_includedir}/uhd %dir %{_datadir}/uhd %exclude %{_datadir}/uhd/uhd-images* %{_includedir}/uhd/* %{_includedir}/uhd.h %{_bindir}/* %{_libdir}/%{name} %{_libdir}/libuhd.so %{_libdir}/pkgconfig/uhd.pc %{_libdir}/cmake/uhd %{_mandir}/man1/* %files firmware %{_datadir}/uhd/uhd-images* %files doc %dir %{_docdir}/uhd %{_docdir}/uhd/doxygen %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor