BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(capi-appfw-app-control)
BuildRequires: pkgconfig(capi-appfw-app-common)
+BuildRequires: pkgconfig(vconf)
+BuildRequires: pkgconfig(uuid)
+BuildRequires: pkgconfig(capi-network-softap)
+BuildRequires: pkgconfig(capi-network-wifi-manager)
+BuildRequires: pkgconfig(minizip)
%description
Tizen Things daemon
%setup -q
%build
+%define _ttd_conf_dir %{TZ_SYS_ETC}/ttd
%ifarch %{arm}
export CFLAGS="$CFLAGS -DTIZEN_BUILD_TARGET"
cmake . -DINSTALL_BIN_DIR=%{_bindir} \
-DINSTALL_LIB_DIR=%{_libdir} \
-DINSTALL_INC_DIR=%{_includedir} \
+ -DINSTALL_CONF_DIR=%{_ttd_conf_dir} \
-DFULL_VER=%{version} \
-DMAJOR_VER=${MAJOR_VER}
%post
/sbin/ldconfig
+mkdir -p %{_ttd_conf_dir}
+
%postun -p /sbin/ldconfig
%files
%{_unitdir}/multi-user.target.wants/%{name}.service
%{_libdir}/*.so.*
%{_bindir}/*
+%{_ttd_conf_dir}/*.conf
%files devel
%{_includedir}/*.h