Create Fedora RPM packages (#31)
Fix GH-34 Add a pipeline to enable builds using https://packit.dev/ To get it to work, someone with commit access will need to agree to make a Fedora account at: https://accounts.fedoraproject.org/ and agree to Fedora Code of Conduct, then follow the steps at: http://packit.dev/docs/guide#1-set-up-packit-integration Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
This commit is contained in:
parent
ecdc8a10ce
commit
fb62943d5c
28
.packit.yaml
Normal file
28
.packit.yaml
Normal file
@ -0,0 +1,28 @@
|
||||
# Copyright 2025 Enactic, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# https://packit.dev/docs/configuration/
|
||||
|
||||
specfile_path: packages/fedora/openarm-can.spec
|
||||
|
||||
notifications:
|
||||
pull_request:
|
||||
successful_build: true
|
||||
|
||||
jobs:
|
||||
- job: copr_build
|
||||
trigger: pull_request
|
||||
targets:
|
||||
- epel-all
|
||||
- fedora-all
|
||||
64
packages/fedora/openarm-can.spec
Normal file
64
packages/fedora/openarm-can.spec
Normal file
@ -0,0 +1,64 @@
|
||||
# Copyright 2025 Enactic, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
Name: openarm-can
|
||||
Version: 1.0.0
|
||||
Release: %{autorelease}
|
||||
Summary: OpenArm CAN control library
|
||||
|
||||
License: Apache-2.0
|
||||
URL: https://docs.openarm.dev/software/can
|
||||
Source: https://github.com/enactic/openarm_can/archive/%{version}/openarm_can-%{version}.tar.gz
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
|
||||
%description
|
||||
A C++ library for CAN communication with OpenArm robotic hardware,
|
||||
supporting Damiao motors over CAN/CAN-FD interfaces. This library
|
||||
is a part of OpenArm.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for OpenARM CAN control library
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Header files and development libraries for OpenARM CAN control library.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
|
||||
%build
|
||||
%cmake
|
||||
%cmake_build
|
||||
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
|
||||
|
||||
%files
|
||||
%license LICENSE.txt
|
||||
%doc README.md
|
||||
%{_libdir}/libopenarm_can.so.1*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/openarm/
|
||||
%{_libdir}/cmake/OpenArmCAN/
|
||||
%{_libdir}/libopenarm_can.so
|
||||
%{_libdir}/pkgconfig/openarm-can.pc
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
Loading…
Reference in New Issue
Block a user