Define SYSCONFDIR and remove unused ini path 63/212663/1
authorHyunil <hyunil46.park@samsung.com>
Mon, 26 Aug 2019 03:16:27 +0000 (12:16 +0900)
committerHyunil <hyunil46.park@samsung.com>
Mon, 26 Aug 2019 03:16:27 +0000 (12:16 +0900)
Change-Id: I395fa674ecedd6f5a4b294eab2b642430cf96923
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
include/media_streamer_util.h
packaging/capi-media-streamer.spec

index 1003fd0..369dea9 100644 (file)
@@ -94,9 +94,8 @@ extern "C" {
 #define MS_TIME_NONE ((int)-1)
 
 /* Ini Utils */
-#ifndef MEDIA_STREAMER_INI_PATH
-       #define MEDIA_STREAMER_INI_PATH "/etc/media_streamer.ini"
-#endif
+/* SYSCONFDIR is defined at spec file */
+#define MEDIA_STREAMER_INI_PATH SYSCONFDIR"/multimedia/mmfw_media_streamer.ini"
 
 #define INI_MAX_STRLEN (100)
 #define RTP_STREAM_DISABLED (0)
index 0ba92b7..09c989c 100644 (file)
@@ -58,10 +58,8 @@ Collection of files related to Line Coverage. It is teseted as gcov for a MediaS
 %setup -q
 cp %{SOURCE1001} .
 
-%define ini_path %{_sysconfdir}/multimedia/mmfw_media_streamer.ini
-
 %build
-flags="-DMEDIA_STREAMER_INI_PATH=\\\"%{ini_path}\\\" -D_FILE_OFFSET_BITS=64 -DEFL_BETA_API_SUPPORT"
+flags="-DSYSCONFDIR=\\\"%{_sysconfdir}\\\" -D_FILE_OFFSET_BITS=64 -DEFL_BETA_API_SUPPORT"
 
 %if 0%{?sec_build_binary_debug_enable}
 flags="$flags -DTIZEN_DEBUG_ENABLE"