nct6687d: fix module not loading by default (#12011) (#12022)

* fix module load file

* obsoletes akmods-modules

(cherry picked from commit 450140603c)

Co-authored-by: Luan Vitor Simião Oliveira <luanv.oliveira@outlook.com>
This commit is contained in:
Raboneko
2026-05-06 22:07:11 -05:00
committed by GitHub
parent 6952cf9d27
commit 615f99b812
+6 -12
View File
@@ -4,15 +4,17 @@
Name: nct6687d
Version: 1.0^%{commitdate}git.%{shortcommit}
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Linux kernel driver for the NCT6687D hardware monitoring chip
License: GPL-2.0-or-later
URL: https://github.com/Fred78290/%{name}
Source0: %{url}/archive/%{commit}.tar.gz#/%{name}-%{shortcommit}.tar.gz
Source1: com.github.nct6687d.metainfo.xml
BuildRequires: systemd-rpm-macros
BuildRequires: anda-srpm-macros
Requires: %{name}-kmod = %{?epoch:%{epoch}:}%{version}
Provides: %{name}-kmod-common = %{?epoch:%{epoch}:}%{version}
Obsoletes: %{name}-akmods-modules < %{evr}
BuildArch: noarch
%description
@@ -20,18 +22,10 @@ Linux kernel driver for the NCT6687D hardware monitoring chip.
This kernel module permit to recognize the chipset Nuvoton NCT6687-R in lm-sensors package. This sensor is present on some B550 motherboard such as MSI or ASUS.
The implementation is minimalist and was done by reverse coding of Windows 10 source code from LibreHardwareMonitor
%package akmod-modules
Summary: Modules for Akmods
Requires: %{name}-kmod = %{?epoch:%{epoch}:}%{version}
BuildArch: noarch
%description akmod-modules
Akmods modules for the akmod-%{name} package.
%prep
%autosetup -p1 -n %{name}-%{commit}
echo %{name} > %{name}.conf
echo nct6687 > %{name}.conf
echo "blacklist nct6683" > nct6683_blacklist.conf
%install
@@ -46,10 +40,10 @@ install -Dm 0644 nct6683_blacklist.conf -t %{buildroot}%{_modprobedir}
%doc README.md images/* TESTING_RESULTS.md
%{_modprobedir}/nct6683_blacklist.conf
%{_datadir}/metainfo/com.github.nct6687d.metainfo.xml
%files akmod-modules
%{_modulesloaddir}/%{name}.conf
%changelog
* Wed May 06 2026 Luan Oliveira <luanv.oliveira@outlook.com> - 1.0^20260411git.cedda8b-2
- fix module load file
* Sat Apr 11 2026 Luan Oliveira <luanv.oliveira@outlook.com> - 1.0^20260411git.cedda8b-1
- Initial package