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
|