Package thinkfan: Specfile

%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+

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

%add_optflags -D_FILE_OFFSET_BITS=64

%cmake \



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

* Thu Feb 10 2022 Aleksei Nikiforov <> 1.3.1-alt1
- Updated to upstream version 1.3.1.

* Thu Dec 16 2021 Aleksei Nikiforov <> 1.3.0-alt1
- Updated to upstream version 1.3.0.

* 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