diff options
author | Igor Gnatenko <i.gnatenko.brain@gmail.com> | 2015-03-21 14:46:55 +0300 |
---|---|---|
committer | Igor Gnatenko <i.gnatenko.brain@gmail.com> | 2015-03-21 14:46:55 +0300 |
commit | d7bb431e5da2bff51281ae3db0f03557a52507b9 (patch) | |
tree | de049ab6db9749921f13ad2299ab361882cfeca9 /modules | |
parent | 8c5ead3bdf47f77fcb7976193384331da6593944 (diff) | |
download | meson-d7bb431e5da2bff51281ae3db0f03557a52507b9.zip meson-d7bb431e5da2bff51281ae3db0f03557a52507b9.tar.gz meson-d7bb431e5da2bff51281ae3db0f03557a52507b9.tar.bz2 |
modules/rpm: use meson RPM macros
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/rpm.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/rpm.py b/modules/rpm.py index 422d132..8513339 100644 --- a/modules/rpm.py +++ b/modules/rpm.py @@ -112,12 +112,7 @@ class RPMModule: fn.write('\n') fn.write('%build\n') fn.write('pushd rpmbuilddir\n') - fn.write(' CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS\n') - fn.write(' CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS\n') - fn.write(' FFLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FFLAGS\n') - fn.write(' FCFLAGS="${FCFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FCFLAGS\n') - fn.write(' %{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export LDFLAGS ;}\n') - fn.write(' meson .. --buildtype=plain --prefix=%{_prefix}\n') + fn.write(' %meson ..\n') fn.write(' ninja-build -v\n') fn.write('popd\n') fn.write('\n') |