File new-lg4ff.spec of Package new-lg4ff
#
# spec file for package new-lg4ff
#
# 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: new-lg4ff-master
Version: 0.4.1.20250125
Release: 0
Summary: Experimental Logitech Force Feedback module for driving wheels
License: GPL-2.0
URL: https://github.com/berarma/new-lg4ff.git
Source0: %{name}-%{version}.tar.xz
BuildArch: x86_64
BuildRequires: %{kernel_module_package_buildreqs}
#Requires:
%kernel_module_package -p %_sourcedir/preamble
Requires: kernel-%1
%description
This module is not compatible with the Logitech G920 Driving Force that already has full effects support implemented by firmware and uses the HID++ driver.
This module is installed as `hid-logitech-new`, so make sure to blacklist `hid-logitech` and load `hid-logitech-new`!
%prep
%autosetup
set -- *
mkdir source
mv "$@" source/
mkdir obj
%build
for flavor in %{flavors_to_build}; do
rm -rf obj/$flavor
cp -r source obj/$flavor
make -C %{kernel_source $flavor} modules M=$PWD/obj/$flavor
done
%install
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
export INSTALL_MOD_DIR=updates
for flavor in %{flavors_to_build}; do
make -C %{kernel_source $flavor} modules_install M=$PWD/obj/$flavor
done
%changelog