## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 6; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global pypi_name hddfancontrol Name: %{pypi_name} Version: 1.6.2 Release: %autorelease Summary: Control system fan speed by monitoring hard drive temperature # Automatically converted from old format: LGPLv3 - review is highly recommended. License: LGPL-3.0-only URL: https://github.com/desbma/hddfancontrol # The PyPI archives don't have unit tests in them anymore. Source0: https://github.com/desbma/hddfancontrol/archive/%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: hdparm BuildRequires: hddtemp BuildRequires: python3-devel BuildRequires: python3-docutils BuildRequires: python3-pypandoc BuildRequires: python3-pytest BuildRequires: systemd Requires: hdparm Requires: hddtemp Requires: python3-docutils %{?python_provide:%python_provide python3-%{pypi_name}} %description HDD Fan control is a command line tool to dynamically control fan speed according to hard drive temperature on Linux. %prep %autosetup -n %{pypi_name}-%{version} -p1 # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l hddfancontrol cp %{buildroot}/%{_bindir}/hddfancontrol %{buildroot}/%{_bindir}/hddfancontrol-3 ln -sf %{_bindir}/hddfancontrol-3 %{buildroot}/%{_bindir}/hddfancontrol-%{python3_version} # Remove the "tests" directory that gets installed systemwide. rm -rf %{buildroot}%{python3_sitelib}/tests # Install the systemd script and config file. mkdir -p %{buildroot}%{_unitdir}/ mkdir -p %{buildroot}%{_sysconfdir}/ sed 's,conf.d/hddfancontrol,hddfancontrol.conf,' -i systemd/hddfancontrol.service cp -a systemd/hddfancontrol.service %{buildroot}%{_unitdir}/ cp -a systemd/hddfancontrol.conf %{buildroot}%{_sysconfdir}/ %check %tox %files -n hddfancontrol -f %{pyproject_files} %license LICENSE %doc README.md %{_bindir}/hddfancontrol %{_bindir}/hddfancontrol-3 %{_bindir}/hddfancontrol-%{python3_version} %{_unitdir}/hddfancontrol.service %config(noreplace) %{_sysconfdir}/hddfancontrol.conf %changelog ## START: Generated by rpmautospec * Fri Nov 01 2024 Miro Hrončok - 1.6.2-6 - Drop duplicate manual (Build)Requires * Sun Oct 20 2024 Filipe Rosset - 1.6.2-3 - Spec cleanup and modernization for F42+ * Fri Jul 26 2024 Miroslav Suchý - 1.6.2-2 - convert license to SPDX * Thu Jul 18 2024 Filipe Rosset - 1.6.2-1 - Update to 1.6.2 fixes rhbz#2255191 * Sun Jun 09 2024 Python Maint - 1.5.1-6 - Rebuilt for Python 3.13 * Wed Jan 24 2024 Fedora Release Engineering - 1.5.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 2024 Fedora Release Engineering - 1.5.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 1.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 29 2023 Python Maint - 1.5.1-2 - Rebuilt for Python 3.12 * Thu Jun 29 2023 Filipe Rosset - 1.5.1-1 - Update to 1.5.1 fixes rhbz#2217647 * Thu Jun 15 2023 Python Maint - 1.5.0-6 - Rebuilt for Python 3.12 * Thu Jan 19 2023 Fedora Release Engineering - 1.5.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 1.5.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 15 2022 Python Maint - 1.5.0-3 - Rebuilt for Python 3.11 * Thu Jan 20 2022 Fedora Release Engineering - 1.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Nov 15 2021 Filipe Rosset - 1.5.0-1 - Update to 1.5.0 fixes rhbz#1934528 * Thu Jul 22 2021 Fedora Release Engineering - 1.3.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.3.1-5 - Rebuilt for Python 3.10 * Tue Jan 26 2021 Fedora Release Engineering - 1.3.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.3.1-2 - Rebuilt for Python 3.9 * Wed Mar 04 2020 Ben Rosser - 1.3.1-1 - Update to latest upstream release. * Wed Jan 29 2020 Fedora Release Engineering - 1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Sep 24 2019 Ben Rosser - 1.3.0-1 - Update to latest upstream release (#1754224). * Mon Aug 19 2019 Miro Hrončok - 1.2.10-3 - Rebuilt for Python 3.8 * Thu Jul 25 2019 Fedora Release Engineering - 1.2.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jul 18 2019 Ben Rosser - 1.2.10-1 - Update to latest upstream release, 1.2.10 (rhbz#1669729). * Fri Feb 01 2019 Fedora Release Engineering - 1.2.8-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.2.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.2.8-3 - Rebuilt for Python 3.7 * Wed Feb 07 2018 Fedora Release Engineering - 1.2.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Feb 05 2018 Filipe Rosset - 1.2.8-1 - Rebuilt for new upstream version 1.2.8, fixes rhbz #1541821 * Wed Jul 26 2017 Fedora Release Engineering - 1.2.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Feb 26 2017 Ben Rosser - 1.2.7-1 - Updated to 1.2.7, fixing a bug in hdparm error handling. * Fri Feb 10 2017 Fedora Release Engineering - 1.2.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 02 2017 Ben Rosser - 1.2.6-1 - Updated to latest upstream release. - Added systemd service file and configuration file. * Fri Jan 13 2017 Ben Rosser - 1.2.5-1 - Updated to latest upstream release. * Mon Dec 19 2016 Miro Hrončok - 1.2.4-2 - Rebuild for Python 3.6 * Wed Aug 24 2016 Ben Rosser - 1.2.4-1 - Initial package. ## END: Generated by rpmautospec