Cleanup the build script 11/42511/1
authorMu-Woong <muwoong.lee@samsung.com>
Mon, 29 Jun 2015 12:07:03 +0000 (21:07 +0900)
committerMu-Woong <muwoong.lee@samsung.com>
Mon, 29 Jun 2015 12:07:03 +0000 (21:07 +0900)
Change-Id: I33269379c50adc6bf9e57b4a9c36e414fd7ee0e5
Signed-off-by: Mu-Woong <muwoong.lee@samsung.com>
CMakeLists.txt
packaging/context-service.spec

index 5acec267d88b550e4d57850c6a479866d846b16e..6028a35916dad39aa3f39325474fcac2d77ab337 100644 (file)
@@ -27,22 +27,6 @@ SET(DEPS
        place-context-provider
 )
 
-# Dependencies regarding profiles
-IF("${PROFILE}" STREQUAL "mobile")
-       ADD_DEFINITIONS("-D_MOBILE")
-ENDIF("${PROFILE}" STREQUAL "mobile")
-
-IF("${PROFILE}" STREQUAL "wearable")
-       ADD_DEFINITIONS("-D_WEARABLE")
-ENDIF("${PROFILE}" STREQUAL "wearable")
-
-# Target vs Emulator
-IF("${ARCH}" STREQUAL "arm")
-       ADD_DEFINITIONS("-D_TARGET")
-ELSE("${ARCH}" STREQUAL "arm")
-       ADD_DEFINITIONS("-D_EMULATOR")
-ENDIF("${ARCH}" STREQUAL "arm")
-
 IF("${MAINLOOP}" STREQUAL "ecore")
        ADD_DEFINITIONS("-D_USE_ECORE_MAIN_LOOP_")
        SET(DEPS
index fbafe4210fbfd8d5397c5deb87f74156b0063ca5..596873cc60d35ab2f19cd9ff2d1d9749ccd54702 100644 (file)
@@ -1,6 +1,6 @@
 Name:       context-service
 Summary:    Context-Service
-Version:    0.4.4
+Version:    0.5.0
 Release:    1
 Group:      System/Service
 License:    Apache-2.0
@@ -42,12 +42,6 @@ Requires(post): /usr/bin/systemctl
 Requires(post): /usr/bin/sqlite3
 Requires(postun): /usr/bin/systemctl
 
-%ifarch %{arm}
-%define ARCH arm
-%else
-%define ARCH i586
-%endif
-
 %description
 Context-Service
 
@@ -71,7 +65,7 @@ export   CFLAGS+=" -DTIZEN_ENGINEER_MODE"
 export CXXFLAGS+=" -DTIZEN_ENGINEER_MODE"
 export   FFLAGS+=" -DTIZEN_ENGINEER_MODE"
 
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DARCH=%{ARCH} -DMAJORVER=${MAJORVER} -DFULLVER=%{version} -DPROFILE=%{?tizen_profile_name} -DMAINLOOP=%{MAINLOOP}
+cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DMAJORVER=${MAJORVER} -DFULLVER=%{version} -DMAINLOOP=%{MAINLOOP}
 make %{?jobs:-j%jobs}
 
 %install