2017-03-08 16:48:02 +01:00
|
|
|
#
|
|
|
|
# spec file for package bladeRF
|
|
|
|
#
|
2018-09-07 10:34:17 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-03-08 16:48:02 +01:00
|
|
|
# Copyright (c) 2013-2015 Wojciech Kazubski, wk@ire.pw.edu.pl
|
|
|
|
#
|
|
|
|
# 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.
|
2017-03-09 10:10:43 +01:00
|
|
|
|
2018-09-07 14:05:41 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-03-08 16:48:02 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-09-07 10:34:17 +02:00
|
|
|
%define sover 2
|
2017-03-23 17:59:37 +01:00
|
|
|
%define libname lib%{name}%{sover}
|
2019-08-18 18:41:28 +02:00
|
|
|
%define libversion 2.2.1
|
|
|
|
%define release_name 2019.07
|
2017-04-15 22:42:35 +02:00
|
|
|
%define bladerf_group bladerf
|
|
|
|
%define use_syslog 0
|
2017-03-08 16:48:02 +01:00
|
|
|
Name: bladeRF
|
2019-08-18 18:41:28 +02:00
|
|
|
Version: 1.8.0
|
2017-03-09 10:10:43 +01:00
|
|
|
Release: 0
|
2017-03-08 16:48:02 +01:00
|
|
|
Summary: SDR radio receiver
|
2018-09-07 14:05:41 +02:00
|
|
|
License: GPL-2.0-only AND AGPL-3.0-or-later
|
2017-03-08 16:48:02 +01:00
|
|
|
Group: Productivity/Hamradio/Other
|
2018-09-07 14:05:41 +02:00
|
|
|
URL: http://nuand.com/
|
2017-04-15 22:42:35 +02:00
|
|
|
#Git-Clone: https://github.com/Nuand/bladeRF.git
|
2019-08-18 18:41:28 +02:00
|
|
|
Source0: https://github.com/Nuand/bladeRF/archive/%{release_name}.tar.gz#/%{name}-%{release_name}.tar.xz
|
|
|
|
Source1: ad9361.tar.xz
|
2017-03-08 16:48:02 +01:00
|
|
|
BuildRequires: cmake >= 2.8.4
|
|
|
|
BuildRequires: doxygen
|
2017-03-09 10:10:43 +01:00
|
|
|
BuildRequires: fdupes
|
2017-03-08 16:48:02 +01:00
|
|
|
BuildRequires: gcc-c++
|
2017-03-09 10:10:43 +01:00
|
|
|
BuildRequires: git-core
|
2017-03-08 16:48:02 +01:00
|
|
|
BuildRequires: help2man
|
2017-03-09 10:10:43 +01:00
|
|
|
BuildRequires: pkgconfig
|
2017-04-26 21:01:49 +02:00
|
|
|
BuildRequires: tecla-devel
|
2017-03-09 10:10:43 +01:00
|
|
|
BuildRequires: pkgconfig(libusb-1.0)
|
|
|
|
BuildRequires: pkgconfig(udev)
|
2017-03-08 16:48:02 +01:00
|
|
|
|
|
|
|
%description
|
2017-03-09 10:10:43 +01:00
|
|
|
The software for bladeRF USB 3.0 Superspeed Software Defined Radio.
|
2017-03-08 16:48:02 +01:00
|
|
|
|
|
|
|
%package -n %{libname}
|
2018-09-07 10:34:17 +02:00
|
|
|
Version: %{libversion}
|
2017-03-23 17:59:37 +01:00
|
|
|
Release: 0
|
2017-03-08 16:48:02 +01:00
|
|
|
Summary: Library for bladeRF
|
2017-03-23 17:59:37 +01:00
|
|
|
Group: System/Libraries
|
2017-03-09 10:10:43 +01:00
|
|
|
Requires: %{name}-udev
|
2017-03-08 16:48:02 +01:00
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
Library for bladeRF, SDR transceiver.
|
|
|
|
|
2019-08-18 18:41:28 +02:00
|
|
|
%package -n %{libname}-doc
|
|
|
|
Version: %{libversion}
|
|
|
|
Release: 0
|
|
|
|
Summary: Documentation for libbladeRF
|
|
|
|
Group: System/Libraries
|
|
|
|
Requires: %{name}-udev
|
|
|
|
|
|
|
|
%description -n %{libname}-doc
|
|
|
|
HTML Documentation files for libbladeRF
|
|
|
|
|
2017-03-09 10:10:43 +01:00
|
|
|
%package udev
|
|
|
|
Summary: Udev rules for bladeRF
|
|
|
|
Group: Hardware/Other
|
2017-04-23 22:14:01 +02:00
|
|
|
Requires(pre): shadow
|
2017-03-08 16:48:02 +01:00
|
|
|
|
2017-03-09 10:10:43 +01:00
|
|
|
%description udev
|
|
|
|
Udev rules for bladeRF
|
|
|
|
|
|
|
|
%package devel
|
2017-03-08 16:48:02 +01:00
|
|
|
Summary: Development files for libbladeRF
|
|
|
|
Group: Development/Libraries/Other
|
2018-09-07 10:34:17 +02:00
|
|
|
Requires: %{libname} = %{libversion}
|
2017-03-08 16:48:02 +01:00
|
|
|
|
2017-03-09 10:10:43 +01:00
|
|
|
%description devel
|
2017-03-08 16:48:02 +01:00
|
|
|
Libraries and header files for developing applications that want to make
|
|
|
|
use of libbladerf.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{release_name}
|
2019-08-18 18:41:28 +02:00
|
|
|
ls
|
|
|
|
pushd thirdparty/analogdevicesinc/no-OS
|
|
|
|
tar -xJf %{SOURCE1}
|
|
|
|
popd
|
2017-03-08 16:48:02 +01:00
|
|
|
|
|
|
|
%build
|
2017-04-15 22:42:35 +02:00
|
|
|
cd host
|
2017-03-09 10:10:43 +01:00
|
|
|
%cmake \
|
2017-04-15 22:47:47 +02:00
|
|
|
-DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
|
|
|
|
-DUDEV_RULES_PATH=%{_udevrulesdir} \
|
|
|
|
-DBLADERF_GROUP=%{bladerf_group} \
|
2017-04-15 22:42:35 +02:00
|
|
|
%if 0%{?use_syslog}
|
2017-04-15 22:47:47 +02:00
|
|
|
-DENABLE_LIBBLADERF_SYSLOG=ON \
|
2017-04-15 22:42:35 +02:00
|
|
|
%endif
|
2017-04-15 22:47:47 +02:00
|
|
|
-DBUILD_DOCUMENTATION=ON
|
2017-09-05 10:39:52 +02:00
|
|
|
%make_jobs
|
2017-03-08 16:48:02 +01:00
|
|
|
|
|
|
|
%install
|
2017-04-15 22:42:35 +02:00
|
|
|
cd host
|
2017-03-09 10:10:43 +01:00
|
|
|
%cmake_install
|
2017-03-08 16:48:02 +01:00
|
|
|
|
2019-08-18 18:41:28 +02:00
|
|
|
#move docs
|
|
|
|
mkdir -p %{buildroot}%{_docdir}
|
|
|
|
mv %{buildroot}/%{_datadir}/doc/libbladeRF %{buildroot}%{_docdir}
|
|
|
|
|
2017-03-08 16:48:02 +01:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2017-04-23 22:14:01 +02:00
|
|
|
|
|
|
|
%pre udev
|
2017-09-05 10:39:52 +02:00
|
|
|
getent group %{bladerf_group} >/dev/null || groupadd -r %{bladerf_group}
|
2017-04-23 22:14:01 +02:00
|
|
|
|
2017-03-09 10:10:43 +01:00
|
|
|
%post udev
|
|
|
|
%udev_rules_update
|
|
|
|
|
|
|
|
%postun udev
|
|
|
|
%udev_rules_update
|
2017-03-08 16:48:02 +01:00
|
|
|
|
|
|
|
%files
|
2018-09-07 14:05:41 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc README.md CONTRIBUTORS
|
2017-03-09 10:10:43 +01:00
|
|
|
%{_bindir}/bladeRF-cli
|
2018-09-07 10:34:17 +02:00
|
|
|
%{_bindir}/bladeRF-fsk
|
2018-09-07 14:05:41 +02:00
|
|
|
%{_mandir}/man1/bladeRF-cli.1%{?ext_man}
|
2017-03-09 10:10:43 +01:00
|
|
|
|
|
|
|
%files udev
|
2019-08-18 18:41:28 +02:00
|
|
|
%{_udevrulesdir}/88-nuand-*.rules
|
2017-03-08 16:48:02 +01:00
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
%{_libdir}/libbladeRF.so.*
|
|
|
|
|
2019-08-18 18:41:28 +02:00
|
|
|
%files -n %{libname}-doc
|
|
|
|
%{_docdir}/libbladeRF
|
|
|
|
|
2017-03-09 10:10:43 +01:00
|
|
|
%files devel
|
2017-03-08 16:48:02 +01:00
|
|
|
%{_libdir}/libbladeRF.so
|
2018-09-07 10:34:17 +02:00
|
|
|
%{_includedir}/bladeRF1.h
|
|
|
|
%{_includedir}/bladeRF2.h
|
2017-03-08 16:48:02 +01:00
|
|
|
%{_includedir}/libbladeRF.h
|
|
|
|
%{_libdir}/pkgconfig/libbladeRF.pc
|
|
|
|
|
|
|
|
%changelog
|