Bug 20503

Summary: spec file fix
Product: [Retired] Red Hat Linux Reporter: Richard C. Greenwood <rcgreenw-redhat>
Component: libjpegAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: rcgreenw-redhat
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-11-08 00:50:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch for libjpeg.spec none

Description Richard C. Greenwood 2000-11-08 00:48:17 UTC
With the current spec file (Release 10), the install process does not use
the BUILD_ROOT.  This prevented a non-root user from creating the RPM.  The
following patch will allow the install step to use the BUILD_ROOT.  Thanks.
--Rich

--- libjpeg.spec.orig   Fri Feb  4 18:52:34 2000
+++ libjpeg.spec        Tue Nov  7 16:44:40 2000
@@ -51,7 +51,7 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 mkdir -p $RPM_BUILD_ROOT/usr/{lib,include,bin,man/man1}
-make prefix=$RPM_BUILD_ROOT/usr install
+make -e prefix=$RPM_BUILD_ROOT/usr exec_prefix=$RPM_BUILD_ROOT/usr install
 strip -R .comments $RPM_BUILD_ROOT/usr/bin/* || :
 
 %post -p /sbin/ldconfig
@@ -77,6 +77,9 @@
 /usr/include/*.h
 
 %changelog
+* Tue Nov  7 2000 Richard C. Greenwood <rcgreenw>
+- fixed spec file to allow install step to use BUILD_ROOT
+
 * Sat Feb  5 2000 Bernhard Rosenkrdnzer <bero>
 - rebuild to get compressed man pages
 - fix description

Comment 1 Richard C. Greenwood 2000-11-08 00:49:55 UTC
Created attachment 5142 [details]
Patch for libjpeg.spec

Comment 2 Bernhard Rosenkraenzer 2000-11-08 08:19:12 UTC
This was fixed in Red Hat Linux 7.