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/hd-idle] rawhide: spec cleanup and modernization + opt-in to packit
Date: Sat, 06 Jun 2026 22:49:17 GMT	[thread overview]
Message-ID: <178078615742.1.4851538811483328745.rpms-hd-idle-9992d613f324@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/hd-idle
Branch : rawhide
Commit : 9992d613f3247cdd3b7f880a53cf85abfd4516b8
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date   : 2026-06-06T19:49:06-03:00
Stats  : +39/-8 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/hd-idle/c/9992d613f3247cdd3b7f880a53cf85abfd4516b8?branch=rawhide

Log:
spec cleanup and modernization + opt-in to packit

---
diff --git a/.packit.yaml b/.packit.yaml
new file mode 100644
index 0000000..d520584
--- /dev/null
+++ b/.packit.yaml
@@ -0,0 +1,33 @@
+# https://packit.dev/docs/configuration/
+specfile_path: hd-idle.spec
+
+files_to_sync:
+  - hd-idle.spec
+  - hd-idle.service
+  - hd-idle.default
+  - hd-idle-systemd-nodaemon.diff
+  - hd-idle-fix-sbin.diff
+
+upstream_package_name: hd-idle
+downstream_package_name: hd-idle
+
+jobs:
+  - job: copr_build
+    trigger: pull_request
+    targets:
+      - fedora-rawhide
+
+  - job: propose_downstream
+    trigger: release
+    dist_git_branches:
+      - fedora-rawhide
+
+  - job: koji_build
+    trigger: commit
+    dist_git_branches:
+      - fedora-rawhide
+
+  - job: bodhi_update
+    trigger: commit
+    dist_git_branches:
+      - fedora-rawhide

diff --git a/hd-idle.service b/hd-idle.service
index af11952..9dbe560 100644
--- a/hd-idle.service
+++ b/hd-idle.service
@@ -4,7 +4,7 @@ Documentation=man:hd-idle(1)
 
 [Service]
 EnvironmentFile=-/etc/sysconfig/hd-idle
-ExecStart=/usr/sbin/hd-idle -n $HD_IDLE_OPTS
+ExecStart=/usr/bin/hd-idle -n $HD_IDLE_OPTS
 
 [Install]
 WantedBy=multi-user.target

diff --git a/hd-idle.spec b/hd-idle.spec
index ab5af4a..09165c8 100644
--- a/hd-idle.spec
+++ b/hd-idle.spec
@@ -2,7 +2,6 @@ Name:           hd-idle
 Version:        1.05
 Release:        %autorelease
 Summary:        Spin down idle [USB] hard disks
-# Automatically converted from old format: GPLv2 - review is highly recommended.
 License:        GPL-2.0-only
 URL:            http://hd-idle.sourceforge.net
 Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tgz
@@ -12,7 +11,7 @@ Patch0:         %{name}-systemd-nodaemon.diff
 Patch1:         %{name}-fix-sbin.diff
 BuildRequires:  gcc
 BuildRequires:  make
-BuildRequires:  systemd
+BuildRequires:  systemd-rpm-macros
 
 %description
 hd-idle is a utility program for spinning-down external disks after a period
@@ -47,9 +46,8 @@ sed -i 's/install -D -g root -o root/install -D/' Makefile
 %install
 %make_install
 # Remove executable bit from manual page
-find "%{buildroot}%{_mandir}" -executable -type f -exec chmod -x {} \;
-install -dpm 0755 %{buildroot}%{_unitdir}
-install -Dpm 0644 %{SOURCE1} %{buildroot}%{_unitdir}
+chmod 0644 %{buildroot}%{_mandir}/man1/%{name}.1*
+install -Dpm 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
 install -Dpm 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
 
 %post
@@ -64,9 +62,9 @@ install -Dpm 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
 %files
 %license LICENSE
 %doc README
-%{_sbindir}/%{name}
+%{_bindir}/%{name}
 %{_mandir}/man1/%{name}.1*
-%{_unitdir}/*.service
+%{_unitdir}/%{name}.service
 %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
 
 %changelog

                 reply	other threads:[~2026-06-06 22:49 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=178078615742.1.4851538811483328745.rpms-hd-idle-9992d613f324@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