From ac4b5c498ce31bf0dd89ae0d1779ee01bd2d7cdb Mon Sep 17 00:00:00 2001
From: Tom Callaway <spot@fedoraproject.org>
Date: Fri, 29 Aug 2008 20:19:33 +0000
Subject: [PATCH] fix package

---
 psmisc.spec | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/psmisc.spec b/psmisc.spec
index 1a89f05..4320ebb 100644
--- a/psmisc.spec
+++ b/psmisc.spec
@@ -1,7 +1,7 @@
 Summary: Utilities for managing processes on your system
 Name: psmisc
 Version: 22.6
-Release: 7%{?dist}
+Release: 8%{?dist}
 License: GPLv2+
 Group: Applications/System
 Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
@@ -26,13 +26,13 @@ of processes that are using specified files or filesystems.
 
 %prep
 %setup -q
-%patch -p1 -b .types
+%patch0 -p1 -b .types
 %patch1 -p1 -b .overflow
 
 %build
 export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
 autoreconf
-%configure --prefix=/usr --enable-selinux
+%configure --prefix=%{_prefix} --enable-selinux
 make %{?_smp_mflags}
 
 %install
@@ -68,6 +68,9 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %changelog
+* Fri Aug 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> 22.6-8
+- fix package so it builds again
+
 * Fri Aug 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> 22.6-7
 - fix license tag