From 0718d369312d26d255650421075b3bd1e9ccab3d Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Fri, 20 Mar 2015 23:44:58 +0300 Subject: [PATCH] modules/rpm: use rpmbuilddir instead of build dir because some of projects using `build` directory for internal use Signed-off-by: Igor Gnatenko --- modules/rpm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/rpm.py b/modules/rpm.py index 08d655a51..bbd048b11 100644 --- a/modules/rpm.py +++ b/modules/rpm.py @@ -71,16 +71,16 @@ class RPMModule: fn.write('\n') fn.write('%prep\n') fn.write('%autosetup\n') - fn.write('rm -rf build && mkdir build\n') + fn.write('rm -rf rpmbuilddir && mkdir rpmbuilddir\n') fn.write('\n') fn.write('%build\n') - fn.write('pushd build\n') + fn.write('pushd rpmbuilddir\n') fn.write(' meson ..\n') fn.write(' ninja-build -v\n') fn.write('popd\n') fn.write('\n') fn.write('%install\n') - fn.write('pushd build\n') + fn.write('pushd rpmbuilddir\n') fn.write(' DESTDIR=%{buildroot} ninja-build -v install\n') fn.write('popd\n') if len(to_delete) > 0: