mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-23 16:22:55 +00:00
Added rpmdefines putting the srpm and rpm in topdir
In rpkg the `build --srpm` command is hard coded to expect the generated srpm in the toplevel directory.
This commit is contained in:
parent
4e21f32dd4
commit
d653abe2a5
1 changed files with 2 additions and 0 deletions
|
@ -52,6 +52,8 @@ class Commands(pyrpkg.Commands):
|
|||
self._distval = self._distval.replace('.', '_')
|
||||
self._disttag = 'el%s' % self._distval
|
||||
self._rpmdefines = ["--define '_topdir {0}'".format(self.path),
|
||||
"--define '_srcrpmdir {0}'".format(self.path),
|
||||
"--define '_rpmdir {0}'".format(self.path),
|
||||
"--define 'dist .{0}'".format(self._disttag),
|
||||
# int and float this to remove the decimal
|
||||
"--define '{0} 1'".format(self._disttag)]
|
||||
|
|
Loading…
Add table
Reference in a new issue