Accepting request 726303 from hardware:sdr

OBS-URL: https://build.opensuse.org/request/show/726303
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bladeRF?expand=0&rev=7
This commit is contained in:
Dominique Leuenberger 2019-08-27 08:28:39 +00:00 committed by Git OBS Bridge
commit 1ced0cb755
5 changed files with 67 additions and 18 deletions

3
ad9361.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:26c9960afebd5508823be6c062caae09533899f6a9e392df86486ade39dc145b
size 4625560

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6288c230dad26e32236a4b60f0b14c129e6fa0ad91bcf1c40abe8789b352e51f
size 2177625

3
bladeRF-2019.07.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:87c4ad80c22981cb3571eae222f9c11ba3a1aa18b5276a9cdff088032a24a987
size 2186702

View File

@ -1,3 +1,29 @@
-------------------------------------------------------------------
Tue Aug 27 05:20:04 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Update summaries and RPM category groups.
-------------------------------------------------------------------
Tue Aug 27 00:42:21 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
- Fix download url
- Small packaging enhancements
-------------------------------------------------------------------
Sat Aug 17 19:30:59 UTC 2019 - Wojciech Kazubski <wk@ire.pw.edu.pl>
- Update to version 2019.07
libbladeRF
* Gain mode setting default is now manual
* Tuning mode setting default is now host
* Add OTP command support
* Fix metadata related arithmetic
bladeRF-cli:
* Add RFIC fitler selection
* Add tuning_mode
* Display more useful warning and error messages
- libbladeRF doc files (HTML) in separate package
-------------------------------------------------------------------
Fri Sep 7 12:05:23 UTC 2018 - Martin Pluskal <mpluskal@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package bladeRF
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2013-2015 Wojciech Kazubski, wk@ire.pw.edu.pl
#
# All modifications and additions to the file contributed by third parties
@ -19,19 +19,20 @@
%define sover 2
%define libname lib%{name}%{sover}
%define libversion 2.0.2
%define release_name 2018.08
%define libversion 2.2.1
%define release_name 2019.07
%define bladerf_group bladerf
%define use_syslog 0
Name: bladeRF
Version: 1.4.0
Version: 1.8.0
Release: 0
Summary: SDR radio receiver
License: GPL-2.0-only AND AGPL-3.0-or-later
Group: Productivity/Hamradio/Other
URL: http://nuand.com/
URL: https://nuand.com/
#Git-Clone: https://github.com/Nuand/bladeRF.git
Source: https://github.com/Nuand/bladeRF/archive/%{release_name}.tar.gz#/%{name}-%{release_name}.tar.xz
Source0: https://github.com/Nuand/bladeRF/archive/%{release_name}.tar.gz#/%{name}-%{release_name}.tar.xz
Source1: ad9361.tar.xz
BuildRequires: cmake >= 2.8.4
BuildRequires: doxygen
BuildRequires: fdupes
@ -40,6 +41,7 @@ BuildRequires: git-core
BuildRequires: help2man
BuildRequires: pkgconfig
BuildRequires: tecla-devel
BuildRequires: pkgconfig(libedit)
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(udev)
@ -47,14 +49,23 @@ BuildRequires: pkgconfig(udev)
The software for bladeRF USB 3.0 Superspeed Software Defined Radio.
%package -n %{libname}
Summary: SDR radio receiver library
Group: System/Libraries
Version: %{libversion}
Release: 0
Summary: Library for bladeRF
Group: System/Libraries
Requires: %{name}-udev
%description -n %{libname}
Library for bladeRF, SDR transceiver.
Library for bladeRF, an SDR transceiver.
%package -n %{libname}-doc
Summary: Documentation for libbladeRF
Group: Documentation/HTML
Version: %{libversion}
Release: 0
%description -n %{libname}-doc
HTML documentation files for libbladeRF.
%package udev
Summary: Udev rules for bladeRF
@ -62,11 +73,11 @@ Group: Hardware/Other
Requires(pre): shadow
%description udev
Udev rules for bladeRF
Udev rules for bladeRF.
%package devel
Summary: Development files for libbladeRF
Group: Development/Libraries/Other
Group: Development/Libraries/C and C++
Requires: %{libname} = %{libversion}
%description devel
@ -75,6 +86,10 @@ use of libbladerf.
%prep
%setup -q -n %{name}-%{release_name}
ls
pushd thirdparty/analogdevicesinc/no-OS
tar -xJf %{SOURCE1}
popd
%build
cd host
@ -82,20 +97,22 @@ cd host
-DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
-DUDEV_RULES_PATH=%{_udevrulesdir} \
-DBLADERF_GROUP=%{bladerf_group} \
-DBUILD_DOCUMENTATION=YES \
%if 0%{?use_syslog}
-DENABLE_LIBBLADERF_SYSLOG=ON \
%endif
-DBUILD_DOCUMENTATION=ON
%make_jobs
%cmake_build
%install
cd host
%cmake_install
#move docs
mkdir -p %{buildroot}%{_docdir}
mv %{buildroot}/%{_datadir}/doc/libbladeRF %{buildroot}%{_docdir}
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%pre udev
getent group %{bladerf_group} >/dev/null || groupadd -r %{bladerf_group}
@ -113,11 +130,14 @@ getent group %{bladerf_group} >/dev/null || groupadd -r %{bladerf_group}
%{_mandir}/man1/bladeRF-cli.1%{?ext_man}
%files udev
%{_udevrulesdir}/88-nuand.rules
%{_udevrulesdir}/88-nuand-*.rules
%files -n %{libname}
%{_libdir}/libbladeRF.so.*
%files -n %{libname}-doc
%{_docdir}/libbladeRF
%files devel
%{_libdir}/libbladeRF.so
%{_includedir}/bladeRF1.h