CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(ail C)
-OPTION(SMACK "Enable smack support" ON)
-IF(SMACK)
- ADD_DEFINITIONS("-DWRT_SMACK_ENABLED") # enable smack
-ENDIF(SMACK)
SET(LIBNAME "lib${PROJECT_NAME}")
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
SET(BINDIR "${PREFIX}/bin")
INCLUDE(FindPkgConfig)
-pkg_check_modules(LDPC REQUIRED libtzplatform-config libsmack)
+pkg_check_modules(LDPC REQUIRED libtzplatform-config)
FOREACH(flag ${LDPC_LIBRARIES})
SET(PC_LIB "${PC_LIB} -l${flag}")
ENDFOREACH(flag)
-pkg_check_modules(LPKGS REQUIRED glib-2.0 sqlite3 dlog db-util xdgmime vconf libtzplatform-config)
+pkg_check_modules(LPKGS REQUIRED glib-2.0 sqlite3 dlog db-util xdgmime vconf libtzplatform-config libsmack)
STRING(REPLACE ";" " " EXTRA_CFLAGS "${LPKGS_CFLAGS}")
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden")
BuildRequires: pkgconfig(xdgmime)
BuildRequires: pkgconfig(libtzplatform-config)
Provides: libail = %{version}-%{release}
-Requires: libcap-tools
%description
Application Information Library package
Summary: Application Information Library Development files
Requires: libail = %{version}-%{release}
Requires: pkgconfig(libtzplatform-config)
-Requires: pkgconfig(libsmack)
+Requires: pkgconfig(libsmack)
%description devel
Application Information Library Development files package
cp %{SOURCE1001} .
%build
-CFLAGS+=" -fpic"
+CFLAGS="$CFLAGS -fpic"
%if 0%{?tizen_build_binary_release_type_eng}
export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
%endif
%cmake . -DTZ_SYS_RW_DESKTOP_APP=%TZ_SYS_RW_DESKTOP_APP \
- -DBUILD_PKGTYPE=rpm \
- -DSMACK=Off
+ -DBUILD_PKGTYPE=rpm
%__make %{?_smp_mflags}
# Create tizenglobalapp user needed for global installation
useradd -d %TZ_SYS_RW_APP -m %TZ_SYS_GLOBALAPP_USER -r -c "system user for common applications" -g root
-#mkdir -p %TZ_SYS_RW_APP/.config/xwalk-service/applications
-#cd %TZ_SYS_RW_APP/
+#mkdir -p %%TZ_SYS_RW_APP/.config/xwalk-service/applications
+#cd %%TZ_SYS_RW_APP/
#ln -s .config/xwalk-service/applications/
vconftool set -t string db/ail/ail_info "0" -f -s system::vconf_inhouse