%if 0%{?fedora}
%global buildforkernels akmod
%global debug_package %{nil}
%endif

Name:           new-lg4ff
Version:        0.4.0
Release:        6%{?dist}
Summary:        Experimental Logitech force feedback module for Linux
License:        GPL-2.0-only

URL:            https://github.com/berarma/new-lg4ff
Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
Patch:          0001-Fix-build-on-Linux-6.12.patch

Obsoletes:      lg4ff <= 0.4.0

Provides:       %{name}-kmod-common = %{version}-%{release}
Requires:       %{name}-kmod >= %{version}

%description
Improved Linux module driver for Logitech driving wheels.

%prep
%autosetup

%build
# Nothing to build

%install
# Nothing to install

%files
%doc README.md
%license LICENSE

%changelog
* Thu Dec 26 2024 Jan200101 <sentrycraft123@gmail.com> - 0.4.0-6
- Fix builds for 6.12

* Sat Nov 30 2024 Jan200101 <sentrycraft123@gmail.com> - 0.4.0-5
- rework and cleanup spec file