File ixxat-socketcan.spec of Package ixxat-socketcan
#
# spec file for package ixxat-socketcan
#
# Copyright (c) 2024 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/
#
#
# needssslcertforbuild
Name: ixxat-socketcan
Group: System/Kernel
Version: 2.0.520
Release: 0
Summary: Kernel Module Package (KMP) for HMS IXXAT USB-CAN adapter
License: GPL-2.0
URL: https://www.hms-networks.com/support/general-downloads
Source0: ix_usb_can_%{version}-REL.tgz
BuildRequires: %{kernel_module_package_buildreqs}
BuildRequires: pesign-obs-integration
%kernel_module_package -p %{_sourcedir}/preamble
%description
Kernel Module Package (KMP) for HMS IXXAT CAN-bus adapters
%prep
%setup -c -q
%build
export CONFIG_CAN_IXXAT_USB=m
for flavor in %{flavors_to_build}; do
rm -rf obj/$flavor
mkdir -p obj/$flavor
cp -r kernel/drivers/net/can/usb/ixxat_usb/* obj/$flavor
make %{?_smp_mflags} -C "%{kernel_source $flavor}" modules M=$PWD/obj/$flavor
done
%install
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
export INSTALL_MOD_DIR=updates
export BRP_PESIGN_FILES='*.ko'
for flavor in %flavors_to_build; do
make -C "%{kernel_source $flavor}" modules_install M=$PWD/obj/$flavor
done
%changelog