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