File srec.spec of Package srec

#
# spec file for package srec
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           srec
Version:        0~git20150810.4bf276f
Release:        0
Summary:        Library to read Motorola SREC (S-Record) hex files in C
License:        MIT
URL:            https://github.com/arkku/srec
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  llvm-clang

%description
A small library for reading the Motorola S-Record (or SREC) format.
The library is mainly intended for embedded systems and microcontrollers,
such as Arduino, AVR, PIC, ARM, STM32, etc - hence the emphasis is on
small size rather than features, generality, or error handling.

%prep
%autosetup

%build
%make_build

%install
install -Dm0755 srec2bin bin2srec -t %{buildroot}%{_bindir}

%files
%license LICENSE
%doc README.md
%{_bindir}/bin2srec
%{_bindir}/srec2bin

%changelog
openSUSE Build Service is sponsored by