rpm installation directory flexibility

From: Rose (spamaccout69_at_yahoo.com)
Date: 10/30/03


Date: 30 Oct 2003 13:43:37 -0800

Forgive me as I am a new user to the rpm world ... but I am trying to
create an rpm that will pick up and package files from one directory
and install them to another. I have done quite a bit of reading on
the subject and am rapidly running out of time on this project.

In my spec file in the %files section I have defined where to pick up
and which files to pick up....for example:
/export/home/myhomedir/workingarea
then when I install it trys to put the binaries back in the same
location. I want them to install to /var/lib/applicationname. When I
tried specifying where I wanted them to go instead of where to pick
them up it created all sorts of confusion during the build. And it
wouldn't produce a .rpm file.

I am an installshield developer and am used to being able to define in
one place where the install should pick up the files to be packaged
and in another place where to install those files that it picked up
and packaged. I am at a loss on how to define it with RPM. I feel
like I am missing something in all this documentation and that I am
reading in circles. Can anyone shed some light???

Here is my spec file format... (this seems to want to pick up from
/var/pbiace/rel_2003_10 and not
%_topdir/BUILD/var/lib/pbiace/rel_2003_10)
Version:rel_2003_10
%define sBaseDir /var/pbiace/rel_2003_10
BuildRoot:/var/pbiace/rel_2003_10
Copyright:
Name:
Packager:BuildManager
Prefix:
Release:1
AutoReq:no
Summary:
Vendor:
Group:
Source:

%description

%build

%install

%files

/%{sBaseDir}/*



Relevant Pages

  • Re: Redhat to Freebsd
    ... >>researching security updates or in performing kernel or package updates. ... >>I assume it is only the Redhat distro that has the ease of RPM installation? ... So you can build from sources with ports, or install binaries ...
    (comp.unix.bsd.freebsd.misc)
  • Re: ./configure command
    ... The package is not available. ... machines which don't even have an OS at all, let alone RPM, ... There is not a "the tool to package and install on Fedora". ... If he wants to avoid trouble, ...
    (Fedora)
  • Re: Backing up whole system
    ... Amanda is packaged by Fedora and if Gene feels that the packages are ... fedora's rpm is/was incapable of handling the nuances of using only enough ... When an rpm package can build a complete user from scratch, ... Do you really believe that rpm can install every package under the sun, ...
    (Fedora)
  • ELM ME+ 2.5 PLalpha5 experimental RPM spec file
    ... Experimental RPM spec file for Elm ME+ 2.5 PLalpha5 ... Package elm-mod binary RPM build on Mandrake Linux 9.0 ...
    (comp.mail.elm)
  • ELM ME+ 2.5 PLalpha7 experimental RPM spec file [repost]
    ... Experimental RPM spec file for Elm ME+ 2.5 PLalpha7 ... Package elm-mod binary RPM build on Mandrake Linux 9.0 ...
    (comp.mail.elm)