blob: eda6ea355b26e1613e9a12d6fdfe291220737036 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
Name: bossa
Version: 1.9.2
Release: lp154.7.1
Summary: Flash utility for Atmel's SAM ARM microcontrollers (e.g. Arduino)
Source0: https://github.com/arduino/BOSSA/archive/refs/heads/nrf.tar.gz
License: BSD 3-clause
Group: System
BuildRequires: (wxwidgets-devel or wxqt3.1-devel or wxGTK3-devel or libwxgtku3.1-devel)
BuildRequires: (gcc-c++ or gcc-g++ or g++)
BuildRequires: (pkgconfig(readline) or readline-devel or libreadline-devel)
Provides: bossac = %{version}-%{release}
%description
BOSSA is a flash programming utility for Atmel's SAM family of flash-based ARM
microcontrollers (such as various Arduino boards).
The motivation behind BOSSA is to create a simple, easy-to-use, open source
utility to replace Atmel's SAM-BA software. BOSSA is an acronym for Basic Open
Source SAM-BA Application to reflect that goal.
%package ui
Summary: Graphical frontend for the BOSSA Atmel SAM (e.g. Arduino) flash tool
Group: System
Requires: %{name} = %{version}-%{release}
%description ui
Graphical frontend for the BOSSA Atmel SAM (e.g. Arduino) flash tool
%prep
%autosetup -p1 -n BOSSA-nrf
%build
if which wx-config-3.2 &>/dev/null; then
WX=3.2
elif which wx-config-3.1 &>/dev/null; then
WX=3.1
elif which wx-config-3.0 &>/dev/null; then
WX=3.0
elif which wx-config &>/dev/null; then
WX=$(wx-config --version |cut -d. -f1-2)
fi
%make_build WXVERSION=${WX}
%install
mkdir -p %{buildroot}%{_bindir}
install -c -m 755 bin/bossa* %{buildroot}%{_bindir}/
%files
%{_bindir}/bossa
%{_bindir}/bossash
%files ui
%{_bindir}/bossac
|