File ubertooth-firmware.spec of Package ubertooth-firmware

#
# spec file for package ubertooth-firmware
#
# Copyright (c) 2020, Martin Hauke <mardnh@gmx.de>
#
# 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/
#

%define realver 2020-12-R1

Name:           ubertooth-firmware
Version:        2020.12.R1
Release:        0
Summary:        Firmware for Ubertooth
License:        NonFree
Group:          Productivity/Hamradio/Other
URL:            https://github.com/greatscottgadgets/ubertooth/wiki/Firmware
Source:         https://github.com/greatscottgadgets/ubertooth/releases/download/%{realver}/ubertooth-%{realver}.tar.xz
Recommends:     ubertooth
BuildArch:      noarch

%description
The Ubertooth hardware needs some firmware to run.
This package contain a number of firmware images that may be
programmed into the Ubertooth hardware using the
'ubertooth-dfu' command.

%prep
%setup -q -n ubertooth-%{realver}

%build

%install
install -d %{buildroot}/%{_datadir}/ubertooth/firmware/
install -pm644 ubertooth-one-firmware-bin/*.{bin,hex,dfu} %{buildroot}/%{_datadir}/ubertooth/firmware/

%files
%dir %{_datadir}/ubertooth
%dir %{_datadir}/ubertooth/firmware
%{_datadir}/ubertooth/firmware/

%changelog
openSUSE Build Service is sponsored by