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