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>
pull/52/head
Igor Gnatenko 10 years ago
parent 2d7e5b89f4
commit 0718d36931
  1. 6
      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:

Loading…
Cancel
Save