aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorIgor Gnatenko <i.gnatenko.brain@gmail.com>2015-03-20 23:47:21 +0300
committerIgor Gnatenko <i.gnatenko.brain@gmail.com>2015-03-21 00:50:21 +0300
commit11d95bd5aba15bb6fa7136f2637aa4d5e133376b (patch)
tree5ac3f02f378d72ddbccd0920936dfbf84cfb5f65 /modules
parent0718d369312d26d255650421075b3bd1e9ccab3d (diff)
downloadmeson-11d95bd5aba15bb6fa7136f2637aa4d5e133376b.zip
meson-11d95bd5aba15bb6fa7136f2637aa4d5e133376b.tar.gz
meson-11d95bd5aba15bb6fa7136f2637aa4d5e133376b.tar.bz2
modules/rpm: pass RPM CFLAGS and others
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Diffstat (limited to 'modules')
-rw-r--r--modules/rpm.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/rpm.py b/modules/rpm.py
index bbd048b..97d3d86 100644
--- a/modules/rpm.py
+++ b/modules/rpm.py
@@ -72,10 +72,12 @@ class RPMModule:
fn.write('%prep\n')
fn.write('%autosetup\n')
fn.write('rm -rf rpmbuilddir && mkdir rpmbuilddir\n')
+ fn.write('echo "#!/bin/bash" > rpmbuilddir/configure && chmod +x rpmbuilddir/configure\n')
fn.write('\n')
fn.write('%build\n')
fn.write('pushd rpmbuilddir\n')
- fn.write(' meson ..\n')
+ fn.write(' %configure\n')
+ fn.write(' meson .. --buildtype=plain\n')
fn.write(' ninja-build -v\n')
fn.write('popd\n')
fn.write('\n')