public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hddfancontrol] epel10: Initial import (#1373666).
@ 2026-06-06 22:42 Ben Rosser
0 siblings, 0 replies; only message in thread
From: Ben Rosser @ 2026-06-06 22:42 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/hddfancontrol
Branch : epel10
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
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
^ 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: Initial import (#1373666) Ben Rosser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox