Group :: System/Configuration/Hardware
RPM: thinkfan
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict
Name: thinkfan
Version: 1.3.1
Release: alt1
Summary: simple and lightweight fan control program
Group: System/Configuration/Hardware
License: GPL-3.0+
Url: http://sourceforge.net/projects/thinkfan/
# https://github.com/vmatare/thinkfan.git
Source: %name-%version.tar
Source100: %name.watch
Patch1: thinkfan-install.patch
Patch2: thinkfan-alt-paths.patch
BuildRequires: cmake gcc-c++ libatasmart-devel
BuildRequires: libyaml-cpp-devel
BuildRequires: libsystemd-devel
%description
Thinkfan is a simple, lightweight fan control program. Originally designed
specifically for IBM/Lenovo Thinkpads, it now supports any kind of system via
the sysfs hwmon interface (/sys/class/hwmon). It is designed to eat as little
CPU power as possible.
%prep
%setup
%patch1 -p1
%patch2 -p1
%build
%add_optflags -D_FILE_OFFSET_BITS=64
%cmake \
-DUSE_ATASMART:BOOL=ON \
%nil
%cmake_build
%install
%cmakeinstall_std
%files
%doc COPYING
%doc README.md examples/*
%dir %_sysconfdir/systemd/system/thinkfan.service.d
%config(noreplace) %_sysconfdir/systemd/system/thinkfan.service.d/override.conf
%_unitdir/*.service
%_sbindir/%name
%_man1dir/%name.1*
%_man5dir/*.5*
%changelog
…
Full changelog you can see here
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict
Name: thinkfan
Version: 1.3.1
Release: alt1
Summary: simple and lightweight fan control program
Group: System/Configuration/Hardware
License: GPL-3.0+
Url: http://sourceforge.net/projects/thinkfan/
# https://github.com/vmatare/thinkfan.git
Source: %name-%version.tar
Source100: %name.watch
Patch1: thinkfan-install.patch
Patch2: thinkfan-alt-paths.patch
BuildRequires: cmake gcc-c++ libatasmart-devel
BuildRequires: libyaml-cpp-devel
BuildRequires: libsystemd-devel
%description
Thinkfan is a simple, lightweight fan control program. Originally designed
specifically for IBM/Lenovo Thinkpads, it now supports any kind of system via
the sysfs hwmon interface (/sys/class/hwmon). It is designed to eat as little
CPU power as possible.
%prep
%setup
%patch1 -p1
%patch2 -p1
%build
%add_optflags -D_FILE_OFFSET_BITS=64
%cmake \
-DUSE_ATASMART:BOOL=ON \
%nil
%cmake_build
%install
%cmakeinstall_std
%files
%doc COPYING
%doc README.md examples/*
%dir %_sysconfdir/systemd/system/thinkfan.service.d
%config(noreplace) %_sysconfdir/systemd/system/thinkfan.service.d/override.conf
%_unitdir/*.service
%_sbindir/%name
%_man1dir/%name.1*
%_man5dir/*.5*
%changelog
…
Full changelog you can see here