Summary: command line utility to set and view hardware parameters Name: hdparm Version: 9.51 Release: 2%{?dist} License: BSD URL: http://sourceforge.net/projects/%{name}/ Source0: http://downloads.sourceforge.net/hdparm/%{name}-%{version}.tar.gz %define sha1 hdparm=cc9dc4cbaa00f7534988c37111be8e2c6e81cf73 Group: Applications/System Vendor: VMware, Inc. Distribution: Photon %description The Hdparm package contains a utility that is useful for controlling ATA/IDE controllers and hard drives both to increase performance and sometimes to increase stability. %prep %setup -q %build sed -i 's/STRIP ?= strip/STRIP=$(STRIP)/' Makefile sed -i 's/LDFLAGS = -s/LDFLAGS=$(LDFLAGS)/' Makefile make %{?_smp_mflags} CFLAGS="%{optflags}" LDFLAGS="" STRIP="/bin/true" %install make DESTDIR=%{buildroot} binprefix=%{_prefix} install %check make %{?_smp_mflags} check %files %defattr(-,root,root) %{_sbindir}/hdparm %{_mandir}/man8/hdparm.8* %changelog * Tue Apr 25 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 9.51-2 - Ensure non empty debuginfo * Wed Jan 25 2017 Dheeraj Shetty <dheerajs@vmware.com> 9.51-1 - Initial build. First version