LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File CANopenSocket.spec of Package CANopenSocket (Project home:illuusio)

#
# spec file for package CANopenSocket
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#


Name:           CANopenSocket
Version:        0.20170913
Release:        0
Summary:        CANopenSocket is a collection of CANopen tools
License:        GPL-2.0
Group:          Productivity/Networking/Other
Url:            https://github.com/CANopenNode/CANopenSocket
Source0:        CANopenSocket-%{version}.tar.gz
Source1:        CANopenNode-%{version}.tar.gz
BuildRequires:  gcc
BuildRequires:  make
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
CANopenSocket is a collection of CANopen tools running on
Linux with socketCAN interface.

It is based on CANopenNode, which is free and open source
CANopen Stack and is included as a git submodule.

CANopen is the internationally standardized (EN 50325-4) (CiA301)
CAN-based higher-layer protocol for embedded control system.
For more information on CANopen see http://www.can-cia.org/

%prep
%setup -q -b0 -n CANopenSocket-master


%build
tar xvf %{SOURCE1}
rm -rf CANopenNode
mv CANopenNode-master CANopenNode

cd canopend
make %{?_smp_mflags}

cd ..
cd canopencomm
make %{?_smp_mflags}

cd ..
cd canopencgi
make %{?_smp_mflags}


%install
mkdir -p %{buildroot}%{_bindir}

cp -a canopend/app/canopend canopend/app/od_storage canopend/app/od_storage_auto %{buildroot}%{_bindir}
cp -a canopencomm/canopencomm %{buildroot}%{_bindir}
cp -a canopencgi/canopen.cgi %{buildroot}%{_bindir}

%files
%defattr(-,root,root,-)
%{_bindir}/*

%changelog