public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hd-idle] epel10: spec cleanup and modernization + opt-in to packit
@ 2026-06-06 22:57 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-06-06 22:57 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/hd-idle
Branch : epel10
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=epel10

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-06 22:57 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:57 [rpms/hd-idle] epel10: spec cleanup and modernization + opt-in to packit Filipe Rosset

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox