summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorEunji, Lee <eunjieji.lee@samsung.com>2016-04-15 18:07:38 +0900
committerEunji, Lee <eunjieji.lee@samsung.com>2016-04-15 18:07:38 +0900
commitc4008bc7cde52ba326d3efaf7d4b7d49515af1fa (patch)
treeadf424e64393a680dad05812b134a900d85287af /packaging
parentdfb608375a5feba9f5d1c0d35bd0e705a923787c (diff)
parent754738f63dc8f638ca67964c669fd517a943acec (diff)
downloadttrace-c4008bc7cde52ba326d3efaf7d4b7d49515af1fa.tar.gz
ttrace-c4008bc7cde52ba326d3efaf7d4b7d49515af1fa.tar.bz2
ttrace-c4008bc7cde52ba326d3efaf7d4b7d49515af1fa.zip
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/ttrace.spec7
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