Re: [Evolution] Pilot Conduits in Evolution 0.10



On Mon, Apr 30, 2001 at 08:40:31PM +0100, mark wrote:
rpm -Uvh evolution.src.rpm
cd /usr/src/redhat/SPECS
rpm -ba evolution.spec --target=i686

this will then put the finished rpm into /usr/src/redhat/RPMS/i686

then install as normal: rpm -Uvh evolution.i686.rpm

Doing it this way leaves the src.rpm installed when you're done, which
you tend to forget about, meaning it'll hang out taking up disk.  It's
easier to just do:
                 rpm --rebuild evolution.src.rpm --target=i686

...which will install the source rpm, build it, and then uninstall it when
you're done, leaving the RPMs where you expect...

HOWEVER... (pet peeve time!) It's not necessary to be root to build an RPM,
and frequently you may end up running out of space on your root partition
if your machine isn't set up with a large enough partition.  Also if you're
working on an "unstable" rpm you're not protected from bad scripts,
etc. since you're working as root.  It's better to build as a user into
whatever directory you choose.  For example putting this in ~/.rpmmacros
makes rpm build in ~/rpms:
                        %_topdir        %(echo ~)/rpms

After you do that, create the subdirectories rpm needs in that directory:
                        mkdir ~/rpms/BUILD
                        mkdir ~/rpms/SOURCES
                        mkdir ~/rpms/SPECS
                        mkdir ~/rpms/RPMS
                        mkdir ~/rpms/SRPMS

Now you can install and build the rpm as your user account.  Much cleaner
and safer all around.  =)

Bret "Anal RPM Builder" Mogilefsky
-- 
Bret Mogilefsky * Mgr. SCEA Developer Support * mogul gelatinous com




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