%global debug_package %{nil} %global gitdate 20230104 %global gitabbrev d364cc9 %global rel %{gitdate}git%{gitabbrev} Name: nbfc-linux Version: 0.1.7 Release: 2%{?rel:.%{rel}}%{?dist} Summary: A C port of NoteBook FanControl. License: GPLv3 URL: https://github.com/nbfc-linux/nbfc-linux Source0: %{name}-%{version}%{?gitdate:-%{rel}}.tar.gz BuildRequires: gcc, systemd-rpm-macros Requires: python3, systemd Requires: kmod(acpi_ec.ko) Provides: config(nbfc-linux) = %{version}-%{release} %description This is a C port of [Stefan Hirschmann's](https://github.com/hirschmann) [NoteBook FanControl](https://github.com/hirschmann/nbfc). It provides the same utilities with the same interfaces as the original NBFC, although the implementation differs. %prep %setup -n %{name} %build make PREFIX=%{_prefix} confdir=%{_sysconfdir} EMBEDDED_CONTROLLER=acpi_ec %install make install PREFIX=%{_prefix} confdir=%{_sysconfdir} DESTDIR=$RPM_BUILD_ROOT EMBEDDED_CONTROLLER=acpi_ec %files %license LICENSE %doc ORIGINAL.md README.md TODO %{_bindir}/nbfc_service %{_bindir}/ec_probe %{_bindir}/nbfc %{_datadir}/nbfc %{_mandir}/man*/* %{_datadir}/zsh/site-functions/* %{_datadir}/bash-completion/completions/* %{_datadir}/fish/completions/* %{_unitdir}/*.service %changelog * Thu Jun 29 2023 Andrea Santilli - 0.1.7-2.20230104gitd364cc9 - General clean-up. * Fri Jan 06 2023 Andrea Santilli - 0.1.7-1.20230104gitd364cc9 - Initial RPM release.