public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hd-idle] epel10: style: Reformat Spec and minor fixes
@ 2026-06-06 22:57 Artem Polishchuk
0 siblings, 0 replies; only message in thread
From: Artem Polishchuk @ 2026-06-06 22:57 UTC (permalink / raw)
To: git-commits
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
^ 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: style: Reformat Spec and minor fixes Artem Polishchuk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox