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
Version: 0.3.1
Release: 0
Summary: Experimental Logitech force feedback module
License: GPL-2.0-or-later
URL: https://github.com/berarma/new-lg4ff
Source: https://github.com/berarma/new-lg4ff/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: preamble
BuildRequires: %{kernel_module_package_buildreqs}
Requires: exfat-utils-nofuse
%kernel_module_package -p %{_sourcedir}/preamble
%description
Experimental Logitech Force Feedback module for driving wheels
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.
It has all the features in the in-kernel hid-logitech module and adds
the following ones:
* Support for most effects defined in the Linux FF API (except inertia).
* Asynchronous operations with realtime handling of effects.
* Rate limited FF updates with best possible latency.
* Tunable sprint, damper and friction effect types gain.
* Combine accelerator and clutch.
* Use the wheel leds as a FFBmeter to monitor clipping.
* Added a system gain setting that modulates the gain setting used by
applications.
* SYSFS entries for gain, autocenter, spring/damper/friction effect gain
and FFBmeter.
%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 V=1 %{?_smp_mflags} -C %{kernel_source $flavor} %{?linux_make_arch} modules M=$PWD/obj/$flavor
done
%install
export INSTALL_MOD_PATH=%{buildroot}
export INSTALL_MOD_DIR='%{kernel_module_package_moddir}'
for flavor in %{flavors_to_build}; do
make V=1 -C %{kernel_source $flavor} modules_install M=$PWD/obj/$flavor
done
%changelog