Re: creating your own rpm


Subject: Re: creating your own rpm
From: Eric Fortner (emf33@gci.net)
Date: Mon Jun 03 2002 - 18:44:14 AKDT


On Mon, 3 Jun 2002 14:55:49 -0800
Mike Barsalou <mbarsalou@aidea.org> wrote:

>
> Anyone have much experience in building their own rpms?

Mike if you mean building a spec file and using the tar_balls it is easy
if the spec is already built......
You can install srpms in the same manner as the binary counter-part
rpm -ivh XXX.src.rpm... yada yada
then go into the dir /usr/src/redhat/SPECS dir and make changes to the
spec file and when complete with the changes do this
rpm -bs mikes_spec_file and it will produce a src.pm in the dir ../SRPMS

If your talking rebuilding source_rpms to make them binaries then that is
even more easy than the prior choice......

Here is an example of:
Make sure you have rpmbuild.rpm, patch, make etc.... the build
packages installed I assume you are using redhat......

rpm --rebuild --target i686 redhat2002.src.rpm
This in turn will compile the tar.tar.gz in side and place
in /usr/src/redhat/RPMS/i386 or i486 or i686....

then in normal fashion rpm -Uvh /usr/src/redhat/RPMS/i686/redhat2002.i686.rpm

But be warned if you plan on compiling srpms, be ready to install one heck of
alot of developement libraries needed for compiling these.....well depends
on how big the projects are........

sylpheed = gpgme and gnupg
which in turn need gpgme-devel see some are small some get you going to all
the dumping houses getting libraries needed........

But however here is a cool site for this kind of stuff Mike you'll find a good
read here.........
http://freshrpms.net/docs/fight.html
there are other reads on this site too.....just go to the main home and look

Last thing Mike if you are building from scratch just install a few src.rpms and look
to see how things are set up in the previous spec files.....and don't forget
you can change some ENV=OPTIONS in the dir /usr/lib/rpm under the ARCH/ macros.....
emf

-

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Mon Jun 03 2002 - 17:46:42 AKDT