An update is needed Fedora!

Paul Howarth paul at city-fan.org
Fri Feb 25 16:45:39 UTC 2005


Rene Bon Ciric (Renich) wrote:
> I don't get tired of thanking you all! Specially the ones that were here from the begining (you can check the thread to see who they are). Im totally grateful.
> 
> Ok Paul, as always, your wise guideance is always welcome.
> 
> One thought...
> 
> Ok, I will rebuild the php5 SRPM... how would I manage to edit the spec file for it if everything is automatic with rpmbuild --rebuild?

Instead of using "rpmbuild --rebuild php-xxx.src.rpm", use "rpm 
--install php-xxx.src.rpm". This will put the spec file in directory 
/usr/src/redhat/SPECS, where you can edit it.

Useful information about how spec files are structured can be found at:
http://freshrpms.net/docs/fight/
http://rikers.org/rpmbook/rpmbook.html
http://fedoraproject.org/wiki/PackagingHints

The spec file is basically a specification of how to build and install 
the package. Once you've got it the way you want it, e.g. to create and 
package the mysqli extension (don't forget to increase the number in the 
Release: tag at the top of the spec file too), you can build your new 
RPM using:

rpmbuild -ba php.spec

This will create new source and binary RPMs if you haven't made an error.

Paul.




More information about the fedora-list mailing list