public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hddfancontrol] epel10: - Spec cleanup and modernization for F42+
@ 2026-06-06 22:42 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-06-06 22:42 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/hddfancontrol
Branch : epel10
Commit : dd428f45ecf4074f272d951bcb82926b20bede10
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date : 2024-10-20T20:07:01-03:00
Stats : +24/-18 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/hddfancontrol/c/dd428f45ecf4074f272d951bcb82926b20bede10?branch=epel10
Log:
- Spec cleanup and modernization for F42+
---
diff --git a/hddfancontrol.spec b/hddfancontrol.spec
index 33a07e2..b082da7 100644
--- a/hddfancontrol.spec
+++ b/hddfancontrol.spec
@@ -2,7 +2,7 @@
Name: %{pypi_name}
Version: 1.6.2
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Control system fan speed by monitoring hard drive temperature
# Automatically converted from old format: LGPLv3 - review is highly recommended.
@@ -13,18 +13,22 @@ URL: https://github.com/desbma/hddfancontrol
Source0: https://github.com/desbma/hddfancontrol/archive/%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
-
-BuildRequires: python3-setuptools
+BuildRequires: hdparm
+BuildRequires: hddtemp
BuildRequires: python3-devel
-BuildRequires: python3-pypandoc, python3-daemon, python3-docutils
-BuildRequires: hddtemp, hdparm
+BuildRequires: python3-daemon
+BuildRequires: python3-docutils
+BuildRequires: python3-pip
+BuildRequires: python3-pypandoc
+BuildRequires: python3-pytest
+BuildRequires: python3-setuptools
+BuildRequires: python3-tox-current-env
+BuildRequires: python3-wheel
BuildRequires: systemd
-
+Requires: hdparm
+Requires: hddtemp
Requires: python3-daemon
Requires: python3-docutils
-Requires: python3-setuptools
-
-Requires: hddtemp, hdparm
%{?python_provide:%python_provide python3-%{pypi_name}}
@@ -34,15 +38,18 @@ 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
-%py3_build
+%pyproject_wheel
%install
-%py3_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}
@@ -52,16 +59,14 @@ 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}/
-# Run the tests.
%check
-%{__python3} setup.py test
+%tox
-%files
+%files -n hddfancontrol -f %{pyproject_files}
%license LICENSE
%doc README.md
%{_bindir}/hddfancontrol
@@ -69,10 +74,11 @@ cp -a systemd/hddfancontrol.conf %{buildroot}%{_sysconfdir}/
%{_bindir}/hddfancontrol-%{python3_version}
%{_unitdir}/hddfancontrol.service
%config(noreplace) %{_sysconfdir}/hddfancontrol.conf
-%{python3_sitelib}/%{pypi_name}
-%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%changelog
+* Sun Oct 20 2024 Filipe Rosset <rosset.filipe@gmail.com> - 1.6.2-3
+- Spec cleanup and modernization for F42+
+
* Fri Jul 26 2024 Miroslav Suchý <msuchy@redhat.com> - 1.6.2-2
- convert license to SPDX
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-06 22:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-06 22:42 [rpms/hddfancontrol] epel10: - Spec cleanup and modernization for F42+ Filipe Rosset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox