qemu: Add a package name to create a tarball.

This commit is contained in:
Chris Johns 2016-03-07 11:59:51 +11:00
parent 3a972f6102
commit e645642255
2 changed files with 6 additions and 1 deletions

View File

@ -4,6 +4,11 @@
%define release 1
#
# Name of the package.
#
package: qemu-%{qemu_version}-%{_host}-%{release}
#
# A magic internal path that would break if changes in the defaults.mc
# macro file are made.

View File

@ -197,7 +197,7 @@ class buildset:
if (self.opts.get_arg('--bset-tar-file') or self.opts.canadian_cross()) \
and not _build.macros.get('%{_disable_packaging}'):
path.mkdir(tardir)
tar = path.join(tardir, _build.config.expand('%s.tar.bz2' % (self.bset_pkg)))
tar = path.join(tardir, _build.config.expand('%s.tar.bz2' % (_build.main_package().name())))
log.notice('tarball: %s' % (os.path.relpath(path.host(tar))))
if not self.opts.dry_run():
tmproot = _build.config.expand('%{_tmproot}')