From 3acb14acab6171bc1fdb1d63f57dd10cdfdbc635 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 23:39:19 +0100 Subject: [PATCH] remove obsolete initscript and related files; add debug package [release 9.65-2mamba;Sun Oct 09 2022] --- README.md | 3 +-- hdparm.spec | 38 +++++++++++++++++--------------------- 2 files changed, 18 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 95c9d44..294a797 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # hdparm Hdparm is a useful system utility for setting (E)IDE hard drive parameters. -For example, hdparm can be used to tweak hard drive performance and to spin -down hard drives for power conservation. +For example, hdparm can be used to tweak hard drive performance and to spin down hard drives for power conservation. diff --git a/hdparm.spec b/hdparm.spec index 3e7dc81..f2fa623 100644 --- a/hdparm.spec +++ b/hdparm.spec @@ -1,6 +1,6 @@ Name: hdparm Version: 9.65 -Release: 1mamba +Release: 2mamba Summary: A utility for displaying and/or setting IDE hard disk parameters Group: System/Kernel and Hardware Vendor: openmamba @@ -17,43 +17,39 @@ BuildRequires: glibc-devel %description Hdparm is a useful system utility for setting (E)IDE hard drive parameters. -For example, hdparm can be used to tweak hard drive performance and to spin -down hard drives for power conservation. +For example, hdparm can be used to tweak hard drive performance and to spin down hard drives for power conservation. + +%debug_package %prep %setup -q %build -%make +%make STRIP=/bin/true %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -install -d %{buildroot}/sbin -install -d %{buildroot}%{_initrddir} -install -d %{buildroot}%{_sysconfdir}/rc.d/rcsysinit.d -install -d %{buildroot}%{_sysconfdir}/sysconfig -install -d %{buildroot}%{_mandir}/man8 +%makeinstall sbindir=%{_sbindir} STRIP=/bin/true -%makeinstall - -cp %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/harddisks -install -m 744 %{SOURCE2} %{buildroot}%{_initrddir}/hdparm -ln -s ../init.d/hdparm %{buildroot}%{_sysconfdir}/rc.d/rcsysinit.d/S35hdparm +install -m755 contrib/idectl %{buildroot}%{_sbindir} +install -m755 contrib/ultrabayd %{buildroot}%{_sbindir} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) -/sbin/hdparm -%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/harddisks -%{_initrddir}/hdparm -%{_sysconfdir}/rc.d/rcsysinit.d/* +%{_sbindir}/hdparm +%{_sbindir}/idectl +%{_sbindir}/ultrabayd %{_mandir}/man8/* -%doc Changelog LICENSE.TXT README.acoustic +%doc LICENSE.TXT %changelog +* Sun Oct 09 2022 Silvan Calarco 9.65-2mamba +- remove obsolete initscript and related files; add debug package + * Thu Sep 08 2022 Automatic Build System 9.65-1mamba - automatic version update by autodist @@ -167,11 +163,11 @@ ln -s ../init.d/hdparm %{buildroot}%{_sysconfdir}/rc.d/rcsysinit.d/S35hdparm * Thu Mar 04 2004 Davide Madrisan 5.5-1qilnx - new version rebuit -* Fri Nov 22 2003 Silvan Calarco 5.4-4qilnx +* Sat Nov 22 2003 Silvan Calarco 5.4-4qilnx - removed chkconfig execution (it now starts in rc.sysinit phase) - added rcsysinit.d service symlink -* Wed Nov 18 2003 Silvan Calarco 5.4-3qilnx +* Tue Nov 18 2003 Silvan Calarco 5.4-3qilnx - changed service precedence from 10 to 09 * Wed Nov 12 2003 Silvan Calarco 5.4-2qilnx