File bladeRF-fpga-firmware.spec of Package bladeRF-fpga-firmware
#
# spec file for package bladeRF-fpga-firmware
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2014-2016 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: bladeRF-fpga-firmware
Version: 0.15.0
Release: 0
Summary: FPGA firmware for SDR radio receiver
License: SUSE-NonFree
Group: Productivity/Hamradio/Other
Url: http://nuand.com/
Source0: http://nuand.com/fpga/v%{version}/hostedx40.rbf
Source1: http://nuand.com/fpga/v%{version}/hostedx115.rbf
Source2: http://nuand.com/fpga/v%{version}/hostedxA4.rbf
Source3: http://nuand.com/fpga/v%{version}/hostedxA9.rbf
Source4: http://nuand.com/fpga/v%{version}/wlanxA9.rbf
BuildArch: noarch
%description
The FPGA firmware for bladeRF USB 3.0 Superspeed Software Defined Radio.
This package is needed if the firmware is to be loaded at board initialization.
%prep
%build
%install
# bladeRF classic
install -Dpm644 %{SOURCE0} \
%{buildroot}/%{_datadir}/Nuand/bladeRF/fpga/hostedx40.rbf
install -Dpm644 %{SOURCE1} \
%{buildroot}/%{_datadir}/Nuand/bladeRF/fpga/hostedx115.rbf
# bladeRF 2.0
install -Dpm644 %{SOURCE2} \
%{buildroot}/%{_datadir}/Nuand/bladeRF/fpga/hostedxA4.rbf
install -Dpm644 %{SOURCE3} \
%{buildroot}/%{_datadir}/Nuand/bladeRF/fpga/hostedxA9.rbf
# bladeRF-wiphy
install -Dpm644 %{SOURCE4} \
%{buildroot}/%{_datadir}/Nuand/bladeRF/fpga/wlanxA9.rbf.rbf
%files
%defattr(-,root,root)
%dir %{_datadir}/Nuand
%dir %{_datadir}/Nuand/bladeRF
%dir %{_datadir}/Nuand/bladeRF/fpga
%{_datadir}/Nuand/bladeRF/fpga/hostedx40.rbf
%{_datadir}/Nuand/bladeRF/fpga/hostedx115.rbf
%{_datadir}/Nuand/bladeRF/fpga/hostedxA4.rbf
%{_datadir}/Nuand/bladeRF/fpga/hostedxA9.rbf
%{_datadir}/Nuand/bladeRF/fpga/wlanxA9.rbf.rbf
%changelog