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] rawhide: update to 2.1.1 (rust) + packit fixes rhbz#2321360
Date: Sat, 06 Jun 2026 22:23:28 GMT	[thread overview]
Message-ID: <178078460868.1.8037874991281442338.rpms-hddfancontrol-30690859be15@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/hddfancontrol
Branch : rawhide
Commit : 30690859be15f1c3b73c4ca4b416f1fbf13a87ec
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date   : 2026-06-06T19:18:53-03:00
Stats  : +85/-61 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/hddfancontrol/c/30690859be15f1c3b73c4ca4b416f1fbf13a87ec?branch=rawhide

Log:
update to 2.1.1 (rust) + packit fixes rhbz#2321360

---
diff --git a/.gitignore b/.gitignore
index f735fab..57d3f7a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,11 +1 @@
-/hddfancontrol-1.2.4.tar.gz
-/hddfancontrol-1.2.5.tar.gz
-/hddfancontrol-1.2.6.tar.gz
-/hddfancontrol-1.2.7.tar.gz
-/hddfancontrol-1.2.8.tar.gz
-/hddfancontrol-1.2.10.tar.gz
-/hddfancontrol-1.3.0.tar.gz
-/hddfancontrol-1.3.1.tar.gz
-/hddfancontrol-1.5.0.tar.gz
-/hddfancontrol-1.5.1.tar.gz
-/hddfancontrol-1.6.2.tar.gz
+/hddfancontrol-*.tar.gz

diff --git a/.packit.yaml b/.packit.yaml
new file mode 100644
index 0000000..a3c17ba
--- /dev/null
+++ b/.packit.yaml
@@ -0,0 +1,22 @@
+# See the documentation for more information:
+# https://packit.dev/docs/configuration/
+
+upstream_project_url: https://github.com/desbma/hddfancontrol
+upstream_package_name: hddfancontrol
+downstream_package_name: hddfancontrol
+specfile_path: hddfancontrol.spec
+
+copy_upstream_release_description: false
+
+jobs:
+  - job: pull_from_upstream
+    trigger: release
+    dist_git_branches:
+      - fedora-rawhide
+
+  - job: koji_build
+    trigger: commit
+    allowed_committers: ['packit','all_admins']
+    dist_git_branches:
+      - fedora-rawhide
+

diff --git a/hddfancontrol.spec b/hddfancontrol.spec
index 0575ae2..5b1eb93 100644
--- a/hddfancontrol.spec
+++ b/hddfancontrol.spec
@@ -1,78 +1,90 @@
-%global pypi_name hddfancontrol
+%global crate hddfancontrol
 
-# silent rpmlint W: no-manual-page-for-binary
-%global __provides_exclude_from %{_bindir}/hddfancontrol-.*
-
-Name:           %{pypi_name}
-Version:        1.6.2
+Name:           %{crate}
+Version:        2.1.1
 Release:        %autorelease
-Summary:        Control system fan speed by monitoring hard drive temperature
+Summary:        Daemon to regulate fan speed according to hard drive temperature on Linux
 
-# Automatically converted from old format: LGPLv3 - review is highly recommended.
-License:        LGPL-3.0-only
+License:        GPL-3.0-only AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND MIT AND (MIT OR Zlib OR Apache-2.0) AND MPL-2.0 AND (Unlicense OR MIT)
 URL:            https://github.com/desbma/hddfancontrol
+Source0:        https://github.com/desbma/hddfancontrol/archive/v%{version}/%{crate}-%{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
-BuildRequires:  hdparm
-BuildRequires:  hddtemp
-BuildRequires:  python3-devel
-BuildRequires:  python3-docutils
-BuildRequires:  python3-pypandoc
-BuildRequires:  python3-pytest
-BuildRequires:  systemd
-Requires:       hdparm
-Requires:       hddtemp
+# ExclusiveArch for Rust packages in Fedora
+ExclusiveArch:  %{rust_arches}
 
-%py_provides    python3-%{pypi_name}
+BuildRequires:  cargo-rpm-macros >= 24
+BuildRequires:  systemd-rpm-macros
+
+Requires:       hdparm
+Requires:       smartmontools
+Recommends:     sdparm
+Recommends:     hddtemp
 
 %description
-HDD Fan control is a command line tool to dynamically control fan speed
-according to hard drive temperature on Linux.
+HDD Fan control is a daemon to dynamically control fan speed according to
+hard drive temperature on Linux.
 
 %prep
-%autosetup -n %{pypi_name}-%{version} -p1
+%autosetup -n %{crate}-%{version} -p1
+%cargo_prep
+# Configure Cargo to use the vendored sources
+sed -i 's/replace-with = "local-registry"/replace-with = "vendored-sources"/' .cargo/config.toml
+cat >> .cargo/config.toml << EOF
 
-%generate_buildrequires
-%pyproject_buildrequires
+[source.vendored-sources]
+directory = "vendor"
+EOF
 
 %build
-%pyproject_wheel
+%cargo_build -f generate-extras
+%{cargo_license_summary} -f generate-extras
+%{cargo_license} -f generate-extras > LICENSE.dependencies
+
+# Generate man pages and shell completions
+mkdir -p target/man target/shell-completions
+./target/rpm/hddfancontrol gen-man-pages target/man
+./target/rpm/hddfancontrol gen-shell-completions target/shell-completions
 
 %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}
+%cargo_install -f generate-extras
 
-# silent rpmlint E: non-executable-script
-chmod 755 %{buildroot}%{python3_sitelib}/hddfancontrol/__init__.py
-chmod 755 %{buildroot}%{python3_sitelib}/hddfancontrol/__main__.py
+# Install systemd service and configuration file
+install -Dpm 0644 systemd/hddfancontrol.service -t %{buildroot}%{_unitdir}/
+install -Dpm 0644 systemd/hddfancontrol.conf -t %{buildroot}%{_sysconfdir}/
 
-# Remove the "tests" directory that gets installed systemwide.
-rm -rf %{buildroot}%{python3_sitelib}/tests
+# Install man pages
+install -Dpm 0644 target/man/hddfancontrol.1 -t %{buildroot}%{_mandir}/man1/
 
-# 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}/
+# Install shell completions
+install -Dpm 0644 target/shell-completions/hddfancontrol.bash %{buildroot}%{bash_completions_dir}/hddfancontrol
+install -Dpm 0644 target/shell-completions/hddfancontrol.fish -t %{buildroot}%{fish_completions_dir}/
+install -Dpm 0644 target/shell-completions/_hddfancontrol -t %{buildroot}%{zsh_completions_dir}/
 
 %check
-%pyproject_check_import
-%py3_test_envvars %{python3} -m unittest -v
+%cargo_test -f generate-extras
+
+%post
+%systemd_post hddfancontrol.service
+
+%preun
+%systemd_preun hddfancontrol.service
+
+%postun
+%systemd_postun_with_restart hddfancontrol.service
 
-%files -n hddfancontrol -f %{pyproject_files}
+%files
 %license LICENSE
+%license LICENSE.dependencies
 %doc README.md
+%doc CHANGELOG.md
+%doc AGENTS.md
 %{_bindir}/hddfancontrol
-%{_bindir}/hddfancontrol-3
-%{_bindir}/hddfancontrol-%{python3_version}
 %{_unitdir}/hddfancontrol.service
 %config(noreplace) %{_sysconfdir}/hddfancontrol.conf
+%{_mandir}/man1/hddfancontrol.1*
+%{bash_completions_dir}/hddfancontrol
+%{fish_completions_dir}/hddfancontrol.fish
+%{zsh_completions_dir}/_hddfancontrol
 
 %changelog
 %autochangelog

diff --git a/sources b/sources
index 787117d..6ca445f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (hddfancontrol-1.6.2.tar.gz) = 1b974682e1a617049b1fbb6a3a9983e8f0e2c607284862468cb61e065cc2d3c52ca3a92c1d3fc2a02b5b9501e0a345b40f6a2a60c675889a40e4115890080e59
+SHA512 (hddfancontrol-2.1.1.tar.gz) = b1a5d86d5323f1070c54c499391956deeecadd712d21b662fecf436075ba7e76d591b3c1979d95f616802e9057ff2d67eb21d0676d962ed09bdb6121e9cb9583

                 reply	other threads:[~2026-06-06 22:23 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=178078460868.1.8037874991281442338.rpms-hddfancontrol-30690859be15@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