Name:     CANopenNode
Version:  v4.0
Release:  3.ics
Summary:  CANopenNode is free and open source CANopen protocol stack.
URL:      https://github.com/CANopenNode/CANopenNode/
# If build against gnutls the license is BSD + LGPL 2.1
License:  Apache-2.0
 
Source0:  %{name}-%{version}.tar.gz

BuildRequires: gcc
BuildRequires: make
 
%description
CANopen is the internationally standardized (EN 50325-4) (CiA301) higher-layer protocol for embedded control system built on top of CAN. For more information on CANopen see http://www.can-cia.org/

CANopenNode is written in ANSI C in object-oriented way. It runs on different microcontrollers, as standalone application or with RTOS.

Variables (communication, device, custom) are collected in CANopen Object Dictionary and are accessible from both: C code and from CANopen network.

CANopenNode homepage is https://github.com/CANopenNode/CANopenNode

This is version 4 of CANopenNode with new Object Dictionary implementation. For older versions git checkout branches v1.3-master or v2.0-master.
 
%prep
%autosetup -n %{name}-%{version}
 
%build
make
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
install -c canopend $RPM_BUILD_ROOT/%{_bindir}/canopend

%files
%{_bindir}/canopend

%changelog
* Tue Jun 21 2022 zhangyuanhang <zhangyuanhang@kylinos.cn> - v4.0-3.ics
- update Release

* Tue May 31 2022 zhangyuanhang <zhangyuanhang@kylinos.cn> - v4.0-2
- update version to v4.0

* Fri May 20 2022 zhangyuanhang <zhangyuanhang@kylinos.cn> - v2.0-1
- Package init