| |
@@ -188,11 +188,12 @@
|
| |
raise pyrpkg.rpkgError('Could not find the release/dist from branch name '
|
| |
'%s\nPlease specify with --release' %
|
| |
self.branch_merge)
|
| |
- self._rpmdefines = ["--define '_sourcedir %s'" % self.path,
|
| |
- "--define '_specdir %s'" % self.path,
|
| |
- "--define '_builddir %s'" % self.path,
|
| |
- "--define '_srcrpmdir %s'" % self.path,
|
| |
- "--define '_rpmdir %s'" % self.path,
|
| |
+ self._rpmdefines = ["--define '_sourcedir %s'" % self.layout.sourcedir,
|
| |
+ "--define '_specdir %s'" % self.layout.specdir,
|
| |
+ "--define '_builddir %s'" % self.layout.builddir,
|
| |
+ "--define '_srcrpmdir %s'" % self.layout.srcrpmdir,
|
| |
+ "--define '_rpmdir %s'" % self.layout.rpmdir,
|
| |
+ "--define '_rpmfilename %s'" % self.layout.rpmfilename,
|
| |
"--define 'dist %%{?distprefix}.%s'" % self._disttag,
|
| |
"--define '%s %s'" % (self._distvar,
|
| |
self._distval),
|
| |
Use rpkg layouts for rpmdefines
Earlier,
rpkg
's layout mechanism was bypassed and rpmdefines were set in a fixed way byfedpkg
. This breaks the new results dir feature from https://pagure.io/rpkg/pull-request/540Rpmdefines are changed to be read from selected layout here, including the new
rpmfilename
layout property.Rpkg added support for new configuration option
resultsdir
in this rpkg commit. Default configuration is set:git_exclude
to exclude the newresults
directory, andresultsdir
option set ofroot
, in order to preserve the current behavior by default and make the newsubdir
option opt-in.NOTE: This change only works with a version of rpkg that includes the linked commit. The first working version will presumably be 1.63.