public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hddfancontrol] epel10: Update to latest upstream release, with systemd service file.
@ 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 : eda2f701754140e1d917eb21d261f6a96344a561
Author : Ben Rosser <rosser.bjr@gmail.com>
Date : 2017-02-03T00:02:29-05:00
Stats : +18/-3 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/hddfancontrol/c/eda2f701754140e1d917eb21d261f6a96344a561?branch=epel10
Log:
Update to latest upstream release, with systemd service file.
---
diff --git a/hddfancontrol.spec b/hddfancontrol.spec
index 3a59b3a..c1ae8e4 100644
--- a/hddfancontrol.spec
+++ b/hddfancontrol.spec
@@ -1,15 +1,15 @@
-# Created by pyp2rpm-3.1.3
%global pypi_name hddfancontrol
Name: %{pypi_name}
-Version: 1.2.5
+Version: 1.2.6
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
+# 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
@@ -17,6 +17,7 @@ BuildRequires: python3-setuptools
BuildRequires: python3-devel
BuildRequires: python3-pypandoc, python3-daemon, python3-docutils
BuildRequires: hddtemp, hdparm
+BuildRequires: systemd
Requires: python3-daemon
Requires: python3-docutils
@@ -47,6 +48,14 @@ ln -sf %{_bindir}/hddfancontrol-3 %{buildroot}/%{_bindir}/hddfancontrol-%{python
# 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}/
+
# Run the tests.
%check
%{__python3} setup.py test
@@ -57,10 +66,16 @@ rm -rf %{buildroot}%{python3_sitelib}/tests
%{_bindir}/hddfancontrol
%{_bindir}/hddfancontrol-3
%{_bindir}/hddfancontrol-%{python3_version}
+%{_unitdir}/hddfancontrol.service
+%config(noreplace) %{_sysconfdir}/hddfancontrol.conf
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
%changelog
+* Thu Feb 02 2017 Ben Rosser <rosser.bjr@gmail.com> - 1.2.6-1
+- Updated to latest upstream release.
+- Added systemd service file and configuration file.
+
* Fri Jan 13 2017 Ben Rosser <rosser.bjr@gmail.com> - 1.2.5-1
- Updated to latest upstream release.
^ 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: Update to latest upstream release, with systemd service file Ben Rosser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox