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

[Fwd: Building an RPM from a compiled application]



Hello All,

OK, I was able to get this to work.  I set up the %prep and %build
sections to do nothing, and then in the %install section, I untarred the
tar file and listed all of the files it in the %files section.  Works
great!

Two questions:
1) I want to create a post-installation script, but the package may be
relocated.  Relocation's OK, but I need to run a couple of perl scripts
that are installed and I can't figure out how to do it from the correct
directory.
2) I'm having trouble uninstalling (rpm -vv --erase <rpmname>).  It
looks like things are being done, but the files are not removed.  

Thanks for any help,
- Bill

-- 
<>< ><> <>< ><> <>< ><> <>< ><> <>< ><> <>< ><> <>< ><> <><
Bill Woodward (Bill_CCHKK@yahoo.com or wpwood@dazel.com)
http://members.xoom.com/Bill_CCHKK
--- Begin Message ---
"Mike A. Harris" wrote:
> 
> On Tue, 12 Sep 2000, Bill Woodward wrote:

[snip]

> 
> >2) Build normally, and just use rpm for the packaging.  This seems to
> >make more sense from our build environment, but I can't figure out how
> >to do it.
> 
> This is essentially what I just described above.  What is the
> normal procedure from source tarball for building your app and
> installing it?
> 
> ./configure
> make all
> make install
> 
> Or something different?  Post how you do it, and we'll see if we
> can come up with some suggestions.
> 

Basically, we have a config file (rc.buildtools) and a build script
(buildall).  Nothing terribly sophisticated, buildall reads the config
file, resolves dependencies on other source trees (basically by just
pulling over the binaries, libraries, and header files), checks the
source out of CVS, runs imake to create the makefiles, and runs make. 
The end result of the build is a tar file with relative paths,
containing all of the files we need to install.

My current thinking is just to untar that tar file into RPM_BUILD_ROOT
and list the files in the %files section and hope that it works.  We'll
see :-)

Thanks,
- Bill

-- 
<>< ><> <>< ><> <>< ><> <>< ><> <>< ><> <>< ><> <>< ><> <><
Bill Woodward (Bill_CCHKK@yahoo.com or wpwood@dazel.com)
http://members.xoom.com/Bill_CCHKK



_______________________________________________
Rpm-list mailing list
Rpm-list@redhat.com
https://listman.redhat.com/mailman/listinfo/rpm-list


--- End Message ---

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