Package thinkfan: Specfile

%define _unpackaged_files_terminate_build 1

Name: thinkfan
Version: 1.2.2
Release: alt1
Summary: simple and lightweight fan control program
Group: System/Configuration/Hardware
License: GPL-3.0+

Source: %name-%version.tar


Patch1: thinkfan-install.patch
Patch2: thinkfan-alt-paths.patch

BuildRequires: cmake gcc-c++ libatasmart-devel
BuildRequires: libyaml-cpp-devel
BuildRequires: libsystemd-devel

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.

%patch1 -p1
%patch2 -p1

%cmake \



%doc examples/*
%dir %_sysconfdir/systemd/system/thinkfan.service.d
%config(noreplace) %_sysconfdir/systemd/system/thinkfan.service.d/override.conf

* Mon Jun 21 2021 Aleksei Nikiforov <> 1.2.2-alt1
- Updated to upstream version 1.2.2.
- Added watch file.

* Tue Apr 13 2021 Aleksei Nikiforov <> 1.2.1-alt1
- Updated to upstream version 1.2.1.

* Sun Sep 14 2014 Terechkov Evgenii <> 0.9.1-alt1
- Initial build for ALT Linux Sisyphus