aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorIgor Gnatenko <i.gnatenko.brain@gmail.com>2015-03-20 23:44:58 +0300
committerIgor Gnatenko <i.gnatenko.brain@gmail.com>2015-03-21 00:50:21 +0300
commit0718d369312d26d255650421075b3bd1e9ccab3d (patch)
treef8508f48b51568ea3e6d4a401d26590df7a00117 /modules
parent2d7e5b89f41a871f3da7c012152930ddca98bb39 (diff)
downloadmeson-0718d369312d26d255650421075b3bd1e9ccab3d.zip
meson-0718d369312d26d255650421075b3bd1e9ccab3d.tar.gz
meson-0718d369312d26d255650421075b3bd1e9ccab3d.tar.bz2
modules/rpm: use rpmbuilddir instead of build dir
because some of projects using `build` directory for internal use Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Diffstat (limited to 'modules')
-rw-r--r--modules/rpm.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/rpm.py b/modules/rpm.py
index 08d655a..bbd048b 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: