fam
[Top] [All Lists]

Re: [fam] Updated fam.spec file?

To: Nathan Thompson-Amato <nathan.thompson-amato@xxxxxxxxxxxxxx>
Subject: Re: [fam] Updated fam.spec file?
From: Alex Larsson <alexl@xxxxxxxxxx>
Date: Mon, 5 Nov 2001 21:18:08 -0500 (EST)
Cc: <fam@xxxxxxxxxxx>
In-reply-to: <3BE7083D.7030107@xxxxxxxxxxxxxx>
Sender: owner-fam@xxxxxxxxxxx
On Mon, 5 Nov 2001, Nathan Thompson-Amato wrote:

> Alex Larsson wrote:
> 
> > On Mon, 5 Nov 2001, Nathan Thompson-Amato wrote:
> > 
> > Just get the specfile and sources from the source rpm and do "rpm -ba 
> > fam.spec". That should give you a working rpm.
>
> Okay.  I did this:
> 
>    o Installed the source RPM (version 2.6.4-14)
>    o Untarred the fam-oss-2.6.4.tar.gz
>    o Copied fam-oss-2.6.4 into fam-oss-2.6.4-alex
>    o Applied, in order,
>        - fam_build.patch,
>        - fam-oss-changed_race.patch,
>        - fam-2.6.4-creds.patch
>        - fam-2.6.4-dnotify.patch
>    o cd fam-oss-2.6.4-alex ;
>    o Replace all the NULLs in include/BTree.h with zeros
>    o Add #include <stdlib.h> to test/test.c++
>    o ./configure --prefix=/usr --sysconfdir=/etc ; make
>    o make dist
>    o cp fam-oss-2.6.4.tar.gz ../
>    o cd ../ ; rpm -ba fam-oss-2.6.4/build/rpm/fam.spec

This is all wrong? What are you trying to achive?

If you just want to rebuild the source RPM, all you have to do is 
rpm --rebuild fam-2.6.4-14.src.rpm

If you want to Make some changes, you just
1) install the source rpm
rpm -i fam-2.6.4-14.src.rpm
-> this will install source and patches in /usr/src/redhat/SOURCES, and 
   the specfile in /usr/src/redhat/SPECS
2) modify the specfile
emacs /usr/src/redhat/SPECS/fam.spec
-> Do whatever you want with the specfile, such as adding a patch.
   Note that if you reference a patch, you must then place it in
   /usr/src/redhat/SOURCES before building
3) build the package
rpm -ba /usr/src/redhat/SPECS/fam.spec
-> this will untar the tarball in /usr/src/redhat/BUILD/fam-oss-2.6.4,
   apply all the patches (from /usr/src/redhat/SOURCES), configure, make, 
   make install with prefix=/var/tmp/fam-root, collect all the files 
   listed in the specfile, create binary rpms from them in 
   /usr/src/redhat/RPMS/$arch, and collect the sources and spec into a 
   .src.rpm in /usr/src/redhat/SRPMS/ 

That's all there is to it.

/ Alex





--
Source code, list archive, and docs: http://oss.sgi.com/projects/fam/
To unsubscribe: echo unsubscribe fam | mail majordomo@xxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>