2017-03-08 16:48:02 +01:00
|
|
|
#
|
|
|
|
# spec file for package bladeRF
|
|
|
|
#
|
2017-03-09 10:10:43 +01:00
|
|
|
# Copyright (c) 2017 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
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2017-03-08 16:48:02 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-03-23 17:59:37 +01:00
|
|
|
%define sover 1
|
|
|
|
%define libname lib%{name}%{sover}
|
2017-03-09 10:10:43 +01:00
|
|
|
%define release_name 2016.06
|
2017-03-08 16:48:02 +01:00
|
|
|
Name: bladeRF
|
2017-03-09 10:10:43 +01:00
|
|
|
Version: 1.4.0
|
|
|
|
Release: 0
|
2017-03-08 16:48:02 +01:00
|
|
|
Summary: SDR radio receiver
|
|
|
|
License: GPL-2.0
|
|
|
|
Group: Productivity/Hamradio/Other
|
2017-03-09 10:10:43 +01:00
|
|
|
Url: http://nuand.com/
|
2017-03-08 16:48:02 +01:00
|
|
|
Source: https://github.com/Nuand/bladeRF/archive/%{release_name}.tar.gz
|
|
|
|
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
|
|
|
|
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}
|
|
|
|
Version: 1.4.3
|
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.
|
|
|
|
|
2017-03-09 10:10:43 +01:00
|
|
|
%package udev
|
|
|
|
Summary: Udev rules for bladeRF
|
|
|
|
Group: Hardware/Other
|
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
|
2017-03-09 10:10:43 +01:00
|
|
|
Requires: %{libname} = %{version}
|
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}
|
|
|
|
|
|
|
|
%build
|
2017-03-09 10:10:43 +01:00
|
|
|
%cmake \
|
|
|
|
-DBUILD_DOCUMENTATION=ON
|
2017-03-08 16:48:02 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2017-03-09 10:10:43 +01:00
|
|
|
%cmake_install
|
2017-03-08 16:48:02 +01:00
|
|
|
|
2017-03-09 10:10:43 +01:00
|
|
|
# Move libraries to correct location on 64-bit machines
|
|
|
|
%if %__isa_bits == 64
|
|
|
|
mkdir %{buildroot}%{_libdir}
|
|
|
|
mv %{buildroot}%{_prefix}/lib/* %{buildroot}%{_libdir}
|
|
|
|
rm -rf %{buildroot}%{_prefix}/lib
|
2017-03-08 16:48:02 +01:00
|
|
|
%endif
|
|
|
|
|
2017-03-09 10:10:43 +01:00
|
|
|
# Move udev rules to correct location
|
|
|
|
mkdir -p %{buildroot}%{_udevrulesdir}
|
|
|
|
mv %{buildroot}%{_sysconfdir}/udev/rules.d/88-nuand.rules %{buildroot}%{_udevrulesdir}
|
2017-03-08 16:48:02 +01:00
|
|
|
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
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
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README.md COPYING CONTRIBUTORS
|
2017-03-09 10:10:43 +01:00
|
|
|
%{_bindir}/bladeRF-cli
|
|
|
|
%{_mandir}/man1/bladeRF-cli.1%{ext_man}
|
|
|
|
|
|
|
|
%files udev
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_prefix}/lib/udev/rules.d/88-nuand.rules
|
2017-03-08 16:48:02 +01:00
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libbladeRF.so.*
|
|
|
|
|
2017-03-09 10:10:43 +01:00
|
|
|
%files devel
|
2017-03-08 16:48:02 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libbladeRF.so
|
|
|
|
%{_includedir}/libbladeRF.h
|
|
|
|
%{_libdir}/pkgconfig/libbladeRF.pc
|
|
|
|
|
|
|
|
%changelog
|