-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \\\
-DBIN_INSTALL_DIR:PATH=%{_bindir} \\\
-DLIB_INSTALL_DIR:PATH=%{_libdir} \\\
+ %ifarch armv7l \
+ -DLIB_AGENT_PATH="/usr/lib/libdownloadagent2.so" \\\
+ %else \
+ -DLIB_AGENT_PATH="/usr/lib64/libdownloadagent2.so" \\\
+ %endif \
-DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \\\
-DPKG_NAME=%{name} \\\
-DPKG_VERSION=%{version} \\\
%post
#make notify dir in post section for smack
+mkdir /opt/data/download-provider
mkdir -p %{_notifydir}
-chsmack -a 'System:Shared' %{_notifydir}
+#chsmack -a 'System:Shared' %{_notifydir}
mkdir -p --mode=0700 %{_databasedir}
#chsmack -a 'download-provider' %{_databasedir}
mkdir -p --mode=0700 %{_database_client_dir}
int dp_init_agent()
{
- g_da_handle = dlopen("/usr/lib/libdownloadagent2.so", RTLD_LAZY | RTLD_GLOBAL);
+ g_da_handle = dlopen(LIB_AGENT_PATH, RTLD_LAZY | RTLD_GLOBAL);
if (!g_da_handle) {
TRACE_ERROR("[dlopen] %s", dlerror());
g_da_handle = NULL;