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