From 2d7e5b89f41a871f3da7c012152930ddca98bb39 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Fri, 20 Mar 2015 22:53:15 +0300 Subject: modules/rpm: create spec in build_dir Signed-off-by: Igor Gnatenko --- modules/rpm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/rpm.py b/modules/rpm.py index 263ab4d..08d655a 100644 --- a/modules/rpm.py +++ b/modules/rpm.py @@ -18,6 +18,7 @@ functionality such as generating RPM spec file.''' import build import datetime import mlog +import os class RPMModule: @@ -45,7 +46,8 @@ class RPMModule: 'because packaging static libs not recommended') if len(files_devel) > 0: devel_subpkg = True - fn = open('%s.spec' % proj, 'w+') + fn = open('%s.spec' % os.path.join(state.environment.get_build_dir(), proj), + 'w+') fn.write('Name: %s\n' % proj) fn.write('\n') for dep in state.environment.coredata.deps: -- cgit v1.1