Package thinkfan: Specfile

Name: thinkfan
Version: 0.9.1
Release: alt1
Group: System/Configuration/Hardware
License: GPL3+

Packager: Evgenii Terechkov <>
Source: %name-%version.tar

BuildRequires: cmake gcc-c++ libatasmart-devel

Summary: simple and lightweight fan control program

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.

%setup -n %name-%version
%patch0 -p1

pushd src
CFLAGS="%optflags" \
%cmake_insource \
                -D USE_ATASMART:BOOL=ON \
                -D CMAKE_BUILD_TYPE:STRING=Debug \


install -p -D -m 755 src/%name %buildroot%_sbindir/%name
install -p -D -m 644 src/%name.1 %buildroot%_man1dir/%name.1
install -p -D -m 644 rcscripts/%name.service %buildroot/%_unitdir/%name.service

%doc NEWS README examples/*

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