public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <rosset.filipe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/hddfancontrol] epel10.2: - Spec cleanup and modernization for F42+
Date: Sat, 06 Jun 2026 23:11:04 GMT [thread overview]
Message-ID: <178078746421.1.3699792012815582437.rpms-hddfancontrol-dd428f45ecf4@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/hddfancontrol
Branch : epel10.2
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.2
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
reply other threads:[~2026-06-06 23:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178078746421.1.3699792012815582437.rpms-hddfancontrol-dd428f45ecf4@fedoraproject.org \
--to=rosset.filipe@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox