Change name of output file

Panu Matilainen pmatilai at laiskiainen.org
Wed Jun 9 08:19:25 UTC 2010


On Wed, 9 Jun 2010, John Wieland wrote:

> Hi again,
> 
> I need to specify the name of the output file being generated by
> rpmbuild. How would I go about doing that?

As already pointed out, you can change it by overriding the 
%_build_name_fmt macro defaults. But you should think twice before 
changing it - the file name has no relevance to rpm, a package is 
registered in the rpmdb by its contents, not by filename. Users generally 
expect the de-facto <name>-<version>-<release>.<arch>.rpm format and will 
only be annoyed if they install a file named "mypackage.rpm" and then 
discover the package is known as "FooBiz" in the rpmdb.

 	- Panu -


More information about the Rpm-list mailing list