diff --git a/hdparm-8.1-nostrip.patch b/hdparm-8.1-nostrip.patch deleted file mode 100644 index 6e1eb6b..0000000 --- a/hdparm-8.1-nostrip.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up hdparm-8.1/Makefile.nostrip hdparm-8.1/Makefile ---- hdparm-8.1/Makefile.nostrip 2008-02-18 17:30:51.000000000 +0100 -+++ hdparm-8.1/Makefile 2008-02-18 17:31:00.000000000 +0100 -@@ -26,7 +26,7 @@ OBJS = hdparm.o identify.o sgio.o - - hdparm: hdparm.h sgio.h $(OBJS) - $(CC) $(LDFLAGS) -o hdparm $(OBJS) -- strip hdparm -+# strip hdparm - - sgio.o: sgio.h - diff --git a/hdparm-8.4-nostrip.patch b/hdparm-8.4-nostrip.patch new file mode 100644 index 0000000..4413821 --- /dev/null +++ b/hdparm-8.4-nostrip.patch @@ -0,0 +1,21 @@ +diff -up hdparm-8.4/Makefile.nostrip hdparm-8.4/Makefile +--- hdparm-8.4/Makefile.nostrip 2008-02-16 02:03:24.000000000 +0100 ++++ hdparm-8.4/Makefile 2008-02-25 11:45:15.000000000 +0100 +@@ -16,7 +16,7 @@ endif + + CFLAGS := -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs $(CFLAGS) + +-LDFLAGS = -s ++LDFLAGS = + INSTALL = install + INSTALL_DATA = $(INSTALL) -m 644 + INSTALL_DIR = $(INSTALL) -m 755 -d +@@ -26,7 +26,7 @@ OBJS = hdparm.o identify.o sgio.o + + hdparm: hdparm.h sgio.h $(OBJS) + $(CC) $(LDFLAGS) -o hdparm $(OBJS) +- strip hdparm ++# strip hdparm + + sgio.o: sgio.h + diff --git a/hdparm.spec b/hdparm.spec index 3c430f5..76eddda 100644 --- a/hdparm.spec +++ b/hdparm.spec @@ -1,12 +1,12 @@ Summary: A utility for displaying and/or setting hard disk parameters Name: hdparm Version: 8.4 -Release: 1%{?dist} +Release: 2%{?dist} License: BSD Group: Applications/System URL: http://sourceforge.net/projects/hdparm/ Source: http://hdparm.sourceforge.net/sourceforge/hdparm/hdparm-%{version}.tar.gz -Patch0: hdparm-8.1-nostrip.patch +Patch0: hdparm-8.4-nostrip.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) ExcludeArch: s390 s390x @@ -17,7 +17,7 @@ performance and to spin down hard drives for power conservation. %prep %setup -q -%patch0 -p1 +%patch0 -p1 %build perl -pi -e "s/-O2/$RPM_OPT_FLAGS/g" Makefile @@ -41,6 +41,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man8/hdparm.8* %changelog +* Mon Feb 25 2008 Karsten Hopp 8.4-2 +- fix debuginfo package (#434644) + * Wed Feb 20 2008 Karsten Hopp 8.4-1 - version 8.4