[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Why is it so hard to create a relocatable RPM???



I'm trying to create an RPM (with RPM version 3.0.4) that is relocatable.
I'm not using RPM to actually create a source RPM, just to create a binary
RPM that's easy to install.  Here's the .spec file:

Summary: Summary Line
Name: fc
Version: 0.1
Release: 1
Copyright: Phoenix Technologies, Ltd.
Group: None
Source: None
Prefix: /root/fc/sample
    
%description
Description Line.
    
%prep
# nothing to do
    
%build
# nothing to do
    
%install
rm -rf /fc/*
cp -r * /
    
%clean
# nothing to do
    
%files
/root/fc/sample/test

Here's the installation line:

rpm -ivv --prefix /usr/local fc-0.1-1.i386.rpm 

Isn't the file "test" supposed to be installed under /usr/local??  Where
have I gone wrong??

David Christensen





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []