Replacing the spec file in a srpm

Tony Nelson tonynelson at georgeanelson.com
Fri Sep 16 00:37:10 UTC 2005


At 11:36 PM +0100 9/15/05, Paul Smith wrote:
>Dear All
>
>How can I replace the spec file in a srpm?

Explode the RPM, edit the spec file, rebuild.  Assuming a sane build setup:

    $ rpmbuild --recompile -bp --target i686 package-version.src.rpm

replace "i686" with your desired target architecture, and
package-version.src.rpm with the name of the rpm to alter.

    $ cd path/to/rpmbuild/SPECS

Edit the specfile.

    $ rpmbuild -ba specfilename
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson at georgeanelson.com>
      '                              <http://www.georgeanelson.com/>




More information about the fedora-list mailing list