public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Ben Rosser <rosser.bjr@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/hddfancontrol] epel10.2: Initial import (#1373666).
Date: Sat, 06 Jun 2026 23:10:46 GMT [thread overview]
Message-ID: <178078744676.1.11807239336106501243.rpms-hddfancontrol-e89542a2a58f@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/hddfancontrol
Branch : epel10.2
Commit : e89542a2a58f25e55b06818d2bea0646651e3150
Author : Ben Rosser <rosser.bjr@gmail.com>
Date : 2016-09-22T20:01:36-04:00
Stats : +88/-0 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/hddfancontrol/c/e89542a2a58f25e55b06818d2bea0646651e3150?branch=epel10.2
Log:
Initial import (#1373666).
---
diff --git a/.gitignore b/.gitignore
index e69de29..adef765 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/hddfancontrol-1.2.4.tar.gz
diff --git a/hddfancontrol-modern-python-daemon.patch b/hddfancontrol-modern-python-daemon.patch
new file mode 100644
index 0000000..2883877
--- /dev/null
+++ b/hddfancontrol-modern-python-daemon.patch
@@ -0,0 +1,18 @@
+diff -rupN hddfancontrol-1.2.4/hddfancontrol/__init__.py hddfancontrol-patched/hddfancontrol/__init__.py
+--- hddfancontrol-1.2.4/hddfancontrol/__init__.py 2016-07-24 16:21:43.000000000 -0400
++++ hddfancontrol-patched/hddfancontrol/__init__.py 2016-09-03 20:03:15.906733136 -0400
+@@ -25,7 +25,7 @@ import threading
+ import time
+
+ import daemon
+-import daemon.pidlockfile
++import daemon.pidfile
+
+ from hddfancontrol import bin_dep
+ from hddfancontrol import colored_logging
+diff -rupN hddfancontrol-1.2.4/requirements.txt hddfancontrol-patched/requirements.txt
+--- hddfancontrol-1.2.4/requirements.txt 2016-07-24 16:21:43.000000000 -0400
++++ hddfancontrol-patched/requirements.txt 2016-09-03 19:54:48.979281731 -0400
+@@ -1 +1 @@
+-python-daemon-3K>=1.5.8
++python-daemon>=1.5.8
diff --git a/hddfancontrol.spec b/hddfancontrol.spec
new file mode 100644
index 0000000..c2a5b88
--- /dev/null
+++ b/hddfancontrol.spec
@@ -0,0 +1,68 @@
+# Created by pyp2rpm-3.1.3
+%global pypi_name hddfancontrol
+
+Name: %{pypi_name}
+Version: 1.2.4
+Release: 1%{?dist}
+Summary: Control system fan speed by monitoring hard drive temperature
+
+License: LGPLv3
+URL: https://github.com/desbma/hddfancontrol
+
+Source0: https://files.pythonhosted.org/packages/source/h/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+
+# Patch to change requirements.txt to use python-daemon, not python-daemon-3k.
+Patch0: https://tc01.fedorapeople.org/python/hddfancontrol/hddfancontrol-modern-python-daemon.patch
+
+BuildArch: noarch
+
+BuildRequires: python3-setuptools
+BuildRequires: python3-devel
+BuildRequires: python3-pypandoc, python3-daemon, python3-docutils
+BuildRequires: hddtemp, hdparm
+
+Requires: python3-daemon
+Requires: python3-docutils
+Requires: python3-setuptools
+
+Requires: hddtemp, hdparm
+
+%{?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
+
+%build
+%py3_build
+
+%install
+%py3_install
+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
+
+# Run the tests.
+%check
+%{__python3} setup.py test
+
+%files
+%license LICENSE
+%doc README.md
+%{_bindir}/hddfancontrol
+%{_bindir}/hddfancontrol-3
+%{_bindir}/hddfancontrol-%{python3_version}
+%{python3_sitelib}/%{pypi_name}
+%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+
+%changelog
+* Wed Aug 24 2016 Ben Rosser <rosser.bjr@gmail.com> - 1.2.4-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..64552c1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+01e8953f5955778a41eef15b4db65e44 hddfancontrol-1.2.4.tar.gz
reply other threads:[~2026-06-06 23:10 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=178078744676.1.11807239336106501243.rpms-hddfancontrol-e89542a2a58f@fedoraproject.org \
--to=rosser.bjr@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