%global debug_package %{nil} Name: honor-fmbp-hwmon Version: 44.0.1 Release: 3%{?dist} Summary: HONOR FMBP HWMON driver DKMS package License: GPL-2.0-only URL: https://github.com/EvernightFedora/honor-fmbp-hwmon Source0: https://github.com/EvernightFedora/honor-fmbp-hwmon/archive/refs/heads/main.tar.gz BuildArch: noarch BuildRequires: dkms BuildRequires: git-core Requires: dkms Requires: make Requires: gcc Requires: kernel-evernight-honor-devel Requires: openssl %description DKMS package for the HONOR FMBP HWMON kernel driver. Provides the honor-fmbp-hwmon.ko kernel module for hardware monitoring on HONOR FMBP devices. %prep %setup -q -n honor-fmbp-hwmon-main %build # Nothing to build here — DKMS compiles on the target machine %install # Install source tree to /usr/src/-/ for DKMS mkdir -p %{buildroot}/usr/src/%{name}-1.0 mkdir -p %{buildroot}/etc/modules-load.d cp -r /builddir/build/BUILD/%{name}-%{?version}-build/honor-fmbp-hwmon-main/* %{buildroot}/usr/src/%{name}-1.0/ cp %{buildroot}/usr/src/%{name}-1.0/honor-fmbp-hwmon.conf %{buildroot}/etc/modules-load.d/honor-fmbp-hwmon.conf %post # Register and build the module with DKMS /usr/sbin/dkms add -m %{name} -v 1.0 --force || : /usr/sbin/dkms build -m %{name} -v 1.0 --force || : /usr/sbin/dkms install -m %{name} -v 1.0 --force || : %preun # Remove module only on actual uninstall (not upgrade) if [ $1 -eq 0 ]; then /usr/sbin/dkms remove -m %{name} -v 1.0 --all || : fi %files /usr/src/%{name}-1.0/ %attr(0644, root, root) /etc/modules-load.d/honor-fmbp-hwmon.conf %changelog * Fri Jul 03 2026 KairikiFedora <13278297951@sina.cn> - 44.0.1-3 - Fix Requires.