public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Artem Polishchuk <ego.cordatus@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/hd-idle] epel10: style: Reformat Spec and minor fixes
Date: Sat, 06 Jun 2026 22:57:43 GMT	[thread overview]
Message-ID: <178078666340.1.4145678325233206524.rpms-hd-idle-137d555e48d3@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/hd-idle
Branch : epel10
Commit : 137d555e48d3fc0b853a537828a189f11a7a2a59
Author : Artem Polishchuk <ego.cordatus@gmail.com>
Date   : 2021-05-09T15:00:11+03:00
Stats  : +11/-13 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/hd-idle/c/137d555e48d3fc0b853a537828a189f11a7a2a59?branch=epel10

Log:
style: Reformat Spec and minor fixes

---
diff --git a/hd-idle.spec b/hd-idle.spec
index 73ba3a0..607338c 100644
--- a/hd-idle.spec
+++ b/hd-idle.spec
@@ -6,15 +6,14 @@ Summary:        Spin down idle [USB] hard disks
 License:        GPLv2
 URL:            http://hd-idle.sourceforge.net
 Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tgz
-Source1:        hd-idle.service
+Source1:        %{name}.service
 Source2:        %{name}.default
 
 Patch0:         %{name}-systemd-nodaemon.diff
 
 BuildRequires:  gcc
+BuildRequires:  make
 BuildRequires:  systemd
-BuildRequires: make
-%{?systemd_requires}
 
 %description
 hd-idle is a utility program for spinning-down external disks after a period
@@ -39,23 +38,23 @@ won't start again and you can as well pull the plug.
 
 
 %prep
-%setup -q -n %{name}
-%patch0 -p1
+%autosetup -n %{name} -p1
 sed -i 's/install -D -g root -o root/install -D/' Makefile
 
 
 %build
-export CFLAGS="%{optflags}"
+%set_build_flags
 %make_build
 
 
 %install
 %make_install
+
 # Remove executable bit from manual page
 find "%{buildroot}%{_mandir}" -executable -type f -exec chmod -x {} \;
 
-install -d -m 755 %{buildroot}%{_unitdir}
-install -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}
+install -dpm 0755 %{buildroot}%{_unitdir}
+install -Dpm 0644 %{SOURCE1} %{buildroot}%{_unitdir}
 install -Dpm 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
 
 
@@ -70,13 +69,12 @@ install -Dpm 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
 
 
 %files
-%{_sbindir}/*
-%{_mandir}/man1/%{name}.1*
-%{_unitdir}/*
-%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
 %license LICENSE
 %doc README
-
+%{_sbindir}/%{name}
+%{_mandir}/man1/%{name}.1*
+%{_unitdir}/*.service
+%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
 
 
 %changelog

                 reply	other threads:[~2026-06-06 22:57 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=178078666340.1.4145678325233206524.rpms-hd-idle-137d555e48d3@fedoraproject.org \
    --to=ego.cordatus@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