From d653abe2a596af4b261d63a2f5f5333b408b7f01 Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Sep 21 2014 00:30:33 +0000 Subject: 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. --- diff --git a/src/centpkg/__init__.py b/src/centpkg/__init__.py index 1446812..b3b52fc 100644 --- a/src/centpkg/__init__.py +++ b/src/centpkg/__init__.py @@ -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)]