fam
[Top] [All Lists]

Re: [fam] Updated fam.spec file?

To: fam@xxxxxxxxxxx
Subject: Re: [fam] Updated fam.spec file?
From: Nathan Thompson-Amato <nathan.thompson-amato@xxxxxxxxxxxxxx>
Date: Tue, 06 Nov 2001 09:21:12 -0500
Organization: D.N. American
References: <Pine.LNX.4.33.0111052111110.2839-100000@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-fam@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012
Alex Larsson wrote:


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


I want to make sure I can build a working RPM so that when I start butchering the FAM code I'll know it's not working because my code is broken, not because my RPM is broken.


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.


Wow. That's enormously easier than what I was doing. Thanks for the enlightenment. :-)

Nathan


--
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>