c6306e
Summary: A utility for displaying and/or setting hard disk parameters
c6306e
Name: hdparm
c6306e
Version: 9.62
c6306e
Release: 2%{?dist}
c6306e
License: BSD
c6306e
URL:    https://sourceforge.net/projects/%{name}/
c6306e
Source: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
c6306e
Patch0: %{name}-9.60-ditch_dead_code.patch
c6306e
Patch1: %{name}-9.43-close_fd.patch
c6306e
Patch2: %{name}-9.43-get_geom.patch
c6306e
Patch3: %{name}-9.54-resourceleak-fixes.patch
c6306e
Patch4: %{name}-9.54-resourceleak-fixes-2.patch
c6306e
Patch5: %{name}-9.60-sysfs-fclose.patch
c6306e
c6306e
BuildRequires: gcc
c6306e
BuildRequires: make
c6306e
c6306e
Provides: /sbin/hdparm
c6306e
c6306e
%description
c6306e
Hdparm is a useful system utility for setting (E)IDE hard drive
c6306e
parameters.  For example, hdparm can be used to tweak hard drive
c6306e
performance and to spin down hard drives for power conservation.
c6306e
c6306e
%prep
c6306e
%autosetup -p1
c6306e
c6306e
%build
c6306e
CFLAGS="$RPM_OPT_FLAGS" %make_build STRIP=/bin/true LDFLAGS="$RPM_LD_FLAGS"
c6306e
c6306e
%install
c6306e
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
c6306e
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
c6306e
install -c -m 755 hdparm $RPM_BUILD_ROOT%{_sbindir}/hdparm
c6306e
install -c -m 644 hdparm.8 $RPM_BUILD_ROOT%{_mandir}/man8
c6306e
c6306e
c6306e
%files
c6306e
%doc hdparm.lsm Changelog README.acoustic TODO
c6306e
%license LICENSE.TXT
c6306e
%{_sbindir}/hdparm
c6306e
%{_mandir}/man8/hdparm.8*
c6306e
c6306e
%changelog
c6306e
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 9.62-2
c6306e
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
c6306e
  Related: rhbz#1991688
c6306e
c6306e
* Thu May 20 2021 Tomas Bzatek <tbzatek@redhat.com> - 9.62-1
c6306e
- New upstream version 9.62 (#1961841)
c6306e
c6306e
* Fri Apr 16 2021 Tomas Bzatek <tbzatek@redhat.com> - 9.60-4
c6306e
- Fix fclose() on sysfs file write
c6306e
c6306e
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 9.60-3
c6306e
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
c6306e
c6306e
* Thu Apr 15 2021 Tomas Bzatek <tbzatek@redhat.com> - 9.60-2
c6306e
- Move hdparm binary to /usr/sbin
c6306e
c6306e
* Fri Apr 09 2021 Tomas Bzatek <tbzatek@redhat.com> - 9.60-1
c6306e
- New upstream version 9.60 (#1947860)
c6306e
c6306e
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 9.58-5
c6306e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
c6306e
c6306e
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.58-4
c6306e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c6306e
c6306e
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.58-3
c6306e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c6306e
c6306e
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 9.58-2
c6306e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c6306e
c6306e
* Mon May 20 2019 Michal Minář <miminar@redhat.com> - 9.58-1
c6306e
- New upstream version 9.58
c6306e
c6306e
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 9.56-2
c6306e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c6306e
c6306e
* Mon Jul 23 2018 Michal Minář <miminar@redhat.com> - 9.56-1
c6306e
- New upstream version.
c6306e
c6306e
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 9.54-2
c6306e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c6306e
c6306e
* Thu Mar 15 2018 Michal Minář <miminar@redhat.com> - 9.54-1
c6306e
- New upstream version 9.54
c6306e
c6306e
* Fri Feb 23 2018 Florian Weimer <fweimer@redhat.com> - 9.52-3
c6306e
- Use LDFLAGS from redhat-rpm-config
c6306e
c6306e
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 9.52-2
c6306e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c6306e
c6306e
* Mon Sep 11 2017 Michal Minar <miminar@redhat.com> - 9.52-1
c6306e
- New upstream version.
c6306e
c6306e
* Sun Sep 10 2017 Vasiliy N. Glazov <vascom2@gmail.com> - 9.51-4
c6306e
- Cleanup spec
c6306e
c6306e
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 9.51-3
c6306e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
c6306e
c6306e
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 9.51-2
c6306e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c6306e
c6306e
* Sun Apr 23 2017 Michal Minar <miminar@redhat.com> 9.51-1
c6306e
- New upstream version.
c6306e
c6306e
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 9.48-3
c6306e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c6306e
c6306e
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 9.48-2
c6306e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c6306e
c6306e
* Wed Jun 24 2015 Michal Minar <miminar@redhat.com> 9.48-1
c6306e
- New upstream version.
c6306e
c6306e
* Tue Jun 16 2015 Michal Minar <miminar@redhat.com> 9.47-1
c6306e
- New upstream version.
c6306e
c6306e
* Thu May 21 2015 Jaromir Capik <jcapik@redhat.com> - 9.45-2
c6306e
- Removing ExcludeArch for s390 & s390x (it works)
c6306e
c6306e
* Tue Oct 28 2014 Michal Minar <miminar@redhat.com> 9.45-7
c6306e
- New upstream version 9.45.
c6306e
c6306e
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.43-7
c6306e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c6306e
c6306e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.43-6
c6306e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c6306e
c6306e
* Wed Aug 07 2013 Michal Minar <miminar@redhat.com> 9.43-5
c6306e
- Fixed division by zero.
c6306e
- Resolves: #986072
c6306e
c6306e
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.43-4
c6306e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c6306e
c6306e
* Sun Jul 21 2013 Michal Minar <miminar@redhat.com> 9.43-3
c6306e
- Added patches fixing covscan defects.
c6306e
c6306e
* Fri Apr 19 2013 Michal Minar <miminar@redhat.com> 9.43-2
c6306e
- Fixed inconsistency between man page and program's help.
c6306e
c6306e
* Wed Mar 13 2013 Michal Minar <miminar@redhat.com> - 9.43-1
c6306e
- hdparm-9.43
c6306e
c6306e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.42-2
c6306e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c6306e
c6306e
* Mon Oct 01 2012 Michal Minar <miminar@redhat.com> - 9.42-1
c6306e
- hdparm-9.42
c6306e
c6306e
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.39-2
c6306e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c6306e
c6306e
* Fri Feb 03 2012 Karsten Hopp <karsten@redhat.com> 9.39-1
c6306e
- hdparm-9.39
c6306e
c6306e
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.36-3
c6306e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c6306e
c6306e
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.36-2
c6306e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c6306e
c6306e
* Mon Jan 24 2011 Karsten Hopp <karsten@redhat.com> 9.36-1
c6306e
- update to hdparm-9.36 (#645048)
c6306e
c6306e
* Thu Oct 07 2010 Karsten Hopp <karsten@redhat.com> 9.33-1
c6306e
- update to hdparm-9.33 (#592896)
c6306e
c6306e
* Fri Dec 11 2009 Karsten Hopp <karsten@redhat.com> 9.27-1
c6306e
- update to 9.27
c6306e
- enhance security-erase timeout to 12h (#536731)
c6306e
c6306e
* Thu Aug 20 2009 Ville Skyttä <ville.skytta@iki.fi> - 9.16-3
c6306e
- Let rpmbuild strip the executable (#513025).
c6306e
c6306e
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.16-2
c6306e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c6306e
c6306e
* Fri Jul 17 2009 Karsten Hopp <karsten@redhat.com> 9.16-1
c6306e
- update to 9.16, fixes disk spindowns
c6306e
c6306e
* Wed Mar 04 2009 Karsten Hopp <karsten@redhat.com> 9.12-1
c6306e
- update to 9.12 to fix #488560
c6306e
c6306e
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.8-2
c6306e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c6306e
c6306e
* Wed Jan 14 2009 Karsten Hopp <karsten@redhat.com> 9.8-1
c6306e
- update
c6306e
c6306e
* Wed Mar 05 2008 Karsten Hopp <karsten@redhat.com> 8.6-1
c6306e
- update to 8.6
c6306e
- fix source URL
c6306e
c6306e
* Mon Feb 25 2008 Karsten Hopp <karsten@redhat.com> 8.5-1
c6306e
- version 8.5, fixes u8->u16 bug in security commands
c6306e
c6306e
* Mon Feb 25 2008 Karsten Hopp <karsten@redhat.com> 8.4-2
c6306e
- fix debuginfo package (#434644)
c6306e
c6306e
* Wed Feb 20 2008 Karsten Hopp <karsten@redhat.com> 8.4-1
c6306e
- version 8.4
c6306e
c6306e
* Tue Feb 19 2008 Karsten Hopp <karsten@redhat.com> 8.1-3
c6306e
- upload 8.1 sources and rebuild
c6306e
c6306e
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 8.1-2
c6306e
- Autorebuild for GCC 4.3
c6306e
c6306e
* Mon Feb 18 2008 Karsten Hopp <karsten@redhat.com> 8.1-1
c6306e
- update to 8.1
c6306e
c6306e
* Fri Aug 24 2007 Karsten Hopp <karsten@redhat.com> 7.7-1
c6306e
- update to 7.7
c6306e
c6306e
* Tue Jul 10 2007 Karsten Hopp <karsten@redhat.com> 7.6-1
c6306e
- update to version 7.6
c6306e
c6306e
* Fri Feb 09 2007 Karsten Hopp <karsten@redhat.com> 6.9-3
c6306e
- more review cleanups (#225882)
c6306e
c6306e
* Mon Feb 05 2007 Karsten Hopp <karsten@redhat.com> 6.9-2
c6306e
- clean up spec file for merge review (#225882)
c6306e
c6306e
* Thu Jan 18 2007 Karsten Hopp <karsten@redhat.com> 6.9-1
c6306e
- update to 6.9
c6306e
c6306e
* Mon Jul 17 2006 Karsten Hopp <karsten@redhat.de> 6.6-2
c6306e
- test builds on ia64, ppc, ppc64
c6306e
c6306e
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 6.6-1.1
c6306e
- rebuild
c6306e
c6306e
* Mon May 22 2006 Karsten Hopp <karsten@redhat.de> 6.3-3
c6306e
- remove obsolute include patch
c6306e
- disable idestruct patch, rebuild
c6306e
c6306e
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 6.3-2.2
c6306e
- bump again for double-long bug on ppc(64)
c6306e
c6306e
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 6.3-2.1
c6306e
- rebuilt for new gcc4.1 snapshot and glibc changes
c6306e
c6306e
* Tue Dec 20 2005 Karsten Hopp <karsten@redhat.de> 6.3-2
c6306e
- use ExcludeArch, this allows building on archs we don't
c6306e
  ship such as Alpha (#175919)
c6306e
c6306e
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
c6306e
- rebuilt
c6306e
c6306e
* Wed Nov 30 2005 Karsten Hopp <karsten@redhat.de> 6.3-1
c6306e
- fix package URL
c6306e
c6306e
* Tue Oct 25 2005 Karsten Hopp <karsten@redhat.de> 6.3-1
c6306e
- update to hdparm-6.3
c6306e
c6306e
* Wed Jun 08 2005 Karsten Hopp <karsten@redhat.de> 6.1-1
c6306e
- update to 6.1 (BLKGETSIZE fixes)
c6306e
- work around hdparm's usage of kernel headers, assume
c6306e
  that we run it on little-endian machines only
c6306e
c6306e
* Wed May 18 2005 Karsten Hopp <karsten@redhat.de> 5.9-3
c6306e
- remove /etc/sysconfig/harddisks (#157673)
c6306e
c6306e
* Tue May 10 2005 Karsten Hopp <karsten@redhat.de> 5.9-2
c6306e
- enable debuginfo
c6306e
c6306e
* Wed Mar 02 2005 Karsten Hopp <karsten@redhat.de> 5.9-1
c6306e
- update to 5.9
c6306e
- build with gcc-4
c6306e
c6306e
* Mon Jan 03 2005 Karsten Hopp <karsten@redhat.de> 5.8-2 
c6306e
- add --help option (#143916)
c6306e
c6306e
* Fri Nov 26 2004 Karsten Hopp <karsten@redhat.de> 5.8-1 
c6306e
- update
c6306e
c6306e
* Tue Sep 21 2004 Than Ngo <than@redhat.com> 5.7-2
c6306e
- rebuilt
c6306e
c6306e
* Mon Sep 06 2004 Karsten Hopp <karsten@redhat.de> 5.7-1 
c6306e
- update to latest stable version
c6306e
c6306e
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
c6306e
- rebuilt
c6306e
c6306e
* Thu Feb 19 2004 Karsten Hopp <karsten@redhat.de> 5.5-1 
c6306e
- update to latest stable version
c6306e
- rename variable to avoid name clash with readahead function
c6306e
c6306e
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
c6306e
- rebuilt
c6306e
c6306e
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
c6306e
- rebuilt
c6306e
c6306e
* Wed Jun 04 2003 Karsten Hopp <karsten@redhat.de> 5.4-2
c6306e
- rebuild
c6306e
c6306e
* Wed Jun 04 2003 Karsten Hopp <karsten@redhat.de> 5.4-1
c6306e
- update
c6306e
- #92057
c6306e
c6306e
* Wed Apr 23 2003 Karsten Hopp <karsten@redhat.de> 5.3-2
c6306e
- rebuild
c6306e
c6306e
* Wed Apr 23 2003 Karsten Hopp <karsten@redhat.de> 5.3-1
c6306e
- update to 5.3
c6306e
- add comment to /etc/sysconfig/harddisks
c6306e
c6306e
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
c6306e
- rebuilt
c6306e
c6306e
* Thu Dec 12 2002 Tim Powers <timp@redhat.com> 5.2-3
c6306e
- rebuild on all arches
c6306e
c6306e
* Tue Nov 19 2002 Tim Powers <timp@redhat.com>
c6306e
- rebuild on all arches
c6306e
c6306e
* Wed Jun 26 2002 Karsten Hopp <karsten@redhat.de>
c6306e
- update to 5.2 with the following fixes:
c6306e
 - v5.2 compile fixes for 2.5.xx
c6306e
 - v5.1 fixed segfault in "-i" on older drives
c6306e
 - v5.0 lots of updates and new features
c6306e
 - v4.9 fixed compile error with 2.5.xx kernels
c6306e
 - v4.8 changed -Q to allow specifying queue depth
c6306e
 - v4.7 added -z, -Q, -M flags; expanded parm range for -p
c6306e
c6306e
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
c6306e
- automated rebuild
c6306e
c6306e
* Thu May 23 2002 Tim Powers <timp@redhat.com>
c6306e
- automated rebuild
c6306e
c6306e
* Fri Feb 22 2002 Karsten Hopp <karsten@redhat.de>
c6306e
- bump version for 8.0
c6306e
c6306e
* Fri Feb 22 2002 Karsten Hopp <karsten@redhat.de>
c6306e
- rebuild in new environment
c6306e
c6306e
* Wed Jan 23 2002 Karsten Hopp <karsten@redhat.de> (4.6-1)
c6306e
- Update to 4.6
c6306e
c6306e
* Mon Oct 01 2001 Karsten Hopp <karsten@redhat.de>
c6306e
- fix name of doc file  (#54137)
c6306e
c6306e
* Fri Jul 20 2001 Florian La Roche <Florian.LaRoche@redhat.de>
c6306e
- exclude s390,s390x
c6306e
c6306e
* Mon Jun 25 2001 Karsten Hopp <karsten@redhat.de>
c6306e
- update to version 4.1
c6306e
- update URL
c6306e
c6306e
* Wed Jul 19 2000 Bernhard Rosenkränzer <bero@redhat.com>
c6306e
- disable readahead (#14268)
c6306e
- add comment in /etc/sysconfig/harddisks about possible extra parameters
c6306e
c6306e
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
c6306e
- automatic rebuild
c6306e
c6306e
* Wed Jul 12 2000 Trond Eivind Glomsrød <teg@redhat.com>
c6306e
- disable 32 bit interfacing (#13730)
c6306e
c6306e
* Tue Jun 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
c6306e
- use %%{_tmppath}
c6306e
- add /etc/sysconfig/harddisks, a new file for hardisk 
c6306e
  optimization parameters
c6306e
c6306e
* Mon Jun 19 2000 Bernhard Rosenkränzer <bero@redhat.com>
c6306e
- FHSify
c6306e
c6306e
* Sun Apr  9 2000 Bernhard Rosenkränzer <bero@redhat.com>
c6306e
- Fix compilation with kernel 2.3.*
c6306e
c6306e
* Thu Feb 17 2000 Bernhard Rosenkränzer <bero@redhat.com>
c6306e
- 3.9
c6306e
- handle RPM_OPT_FLAGS
c6306e
c6306e
* Thu Feb 17 2000 Bernhard Rosenkränzer <bero@redhat.com>
c6306e
- Use O_NONBLOCK when opening devices so we can manipulate CD-ROM drives
c6306e
  with no media inserted, even when running a current kernel (Bug #6457)
c6306e
c6306e
* Sat Feb  5 2000 Bill Nottingham <notting@redhat.com>
c6306e
- build as non-root user (#6458)
c6306e
c6306e
* Fri Feb  4 2000 Bernhard Rosenkränzer <bero@redhat.com>
c6306e
- deal with RPM compressing man pages
c6306e
c6306e
* Fri Nov 19 1999 Bernhard Rosenkraenzer <bero@redhat.com>
c6306e
- 3.6
c6306e
c6306e
* Thu Aug 12 1999 Cristian Gafton <gafton@redhat.com>
c6306e
- version 3.5
c6306e
c6306e
* Wed Mar 24 1999 Cristian Gafton <gafton@redhat.com>
c6306e
- added patches from UP
c6306e
c6306e
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
c6306e
- auto rebuild in the new build environment (release 4)
c6306e
c6306e
* Tue Dec 29 1998 Cristian Gafton <gafton@redhat.com>
c6306e
- build for 6.0
c6306e
c6306e
* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
c6306e
- translations modified for de, fr, tr
c6306e
c6306e
* Wed Apr 08 1998 Erik Troan <ewt@redhat.com>
c6306e
- updated to 3.3
c6306e
- build rooted
c6306e
c6306e
* Fri Oct 31 1997 Donnie Barnes <djb@redhat.com>
c6306e
- fixed spelling error in summary
c6306e
c6306e
* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
c6306e
- built against glibc
c6306e