diff options
Diffstat (limited to 'packaging/nnfw.spec')
-rw-r--r-- | packaging/nnfw.spec | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packaging/nnfw.spec b/packaging/nnfw.spec index c5b004477..475fb2e81 100644 --- a/packaging/nnfw.spec +++ b/packaging/nnfw.spec @@ -54,12 +54,18 @@ NNFW test rpm. It does not depends on nnfw rpm since it contains nnfw runtime. %define target_arch aarch64 %endif +# Execute gbs with --define "test_build 1" in case that you need to test with environment variable +%{!?test_build: %define test_build 0} %{!?coverage_build: %define coverage_build 0} %if %{coverage_build} == 1 -%define build_options COVERAGE_BUILD=1 OBS_BUILD=1 BUILD_TYPE=Debug TARGET_ARCH=%{target_arch} TARGET_OS=tizen TFLITE_MAJOR_VER=1 TFLITE_MINOR_VER=13 +%define build_options COVERAGE_BUILD=1 OBS_BUILD=1 BUILD_TYPE=Debug TARGET_ARCH=%{target_arch} TARGET_OS=tizen TFLITE_MAJOR_VER=1 TFLITE_MINOR_VER=13 OPTIONS=-DENVVAR_NEURUN_CONFIG=ON +%else +%if %{test_build} == 1 +%define build_options OBS_BUILD=1 BUILD_TYPE=%{build_type} INSTALL_PATH=%{buildroot}%{_prefix} TARGET_ARCH=%{target_arch} TARGET_OS=tizen TFLITE_MAJOR_VER=1 TFLITE_MINOR_VER=13 OPTIONS=-DENVVAR_NEURUN_CONFIG=ON %else %define build_options OBS_BUILD=1 BUILD_TYPE=%{build_type} INSTALL_PATH=%{buildroot}%{_prefix} TARGET_ARCH=%{target_arch} TARGET_OS=tizen TFLITE_MAJOR_VER=1 TFLITE_MINOR_VER=13 %endif +%endif %prep %setup -q |