diff options
Diffstat (limited to 'packaging/ttrace.spec')
-rwxr-xr-x | packaging/ttrace.spec | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packaging/ttrace.spec b/packaging/ttrace.spec index 1dc0259..b401717 100755 --- a/packaging/ttrace.spec +++ b/packaging/ttrace.spec @@ -29,6 +29,11 @@ BuildRequires: cmake %endif %endif +%define TTRACE_TIZEN_VERSION_MAJOR 2 +%if "%{?tizen_version_major}" == "3" +%define TTRACE_TIZEN_VERSION_MAJOR 3 +%endif + %description T-trace library @@ -47,7 +52,7 @@ T-trace library devel export CFLAGS="$CFLAGS -g -Wall -std=gnu99" export CXXFLAGS="$CXXFLAGS -std=c++0x -fPIE -pie" %cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIBDIR=%{_libdir} -DINCLUDEDIR=%{_includedir} \ - -DTTRACE_PROFILE=%{TTRACE_PROFILE} + -DTTRACE_PROFILE=%{TTRACE_PROFILE} -DTTRACE_TIZEN_VERSION_MAJOR=%{TTRACE_TIZEN_VERSION_MAJOR} make %{?jobs:-j%jobs} %install |