#SET(VOICE_CONTROL_ELM_VERSION_MAJOR 0)
#SET(VOICE_CONTROL_ELM_VERSION_MINOR 2)
#SET(VOICE_CONTROL_ELM_VERSION_PATCH 0)
-SET(VERSION 0.2.0)
+SET(VERSION ${VERSION})
# pkg config tool
INCLUDE(FindPkgConfig)
BuildRequires: pkgconfig(vconf)
BuildRequires: gettext-tools
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
%description
voice-control-elm library that provides advanced Voice Driven Control over UI
rm -rf objdir
mkdir objdir
+MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
+
%{?SRPOL_DEBUG:
(cd objdir && cmake .. -DVERSION=%{version} \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DTZ_SYS_RO_SHARE=%TZ_SYS_RO_SHARE \
-DTZ_SYS_BIN=%TZ_SYS_BIN \
-DCMAKE_BUILD_TYPE=Debug \
+ -DMAJORVER=${MAJORVER} \
-DSRPOL_DEBUG="1")
}
%{!?SRPOL_DEBUG:
-DTZ_SYS_RO_SHARE=%TZ_SYS_RO_SHARE \
-DTZ_SYS_BIN=%TZ_SYS_BIN \
-DCMAKE_BUILD_TYPE=Debug \
+ -DMAJORVER=${MAJORVER} \
-DSRPOL_DEBUG="0")
}
rm -rf %{buildroot}
%post
+/sbin/ldconfig
+
+%postun
+/sbin/ldconfig
mkdir -p %{TZ_SYS_RO_SHARE}/voice
%manifest %{name}.manifest
%attr(644,root,root)
%defattr(-,root,root,-)
-%{_libdir}/*.so
%{_libdir}/*.so.*
%{_datadir}/*
%{TZ_SYS_RO_SHARE}/locale/*
ADD_LIBRARY(${LIBRARY_NAME} SHARED ${VC_ELM_SOURCES})
SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES
COMPILE_FLAGS -fPIC
- SOVERSION "0.2.0"
- VERSION "0.2.0")
+ SOVERSION ${MAJORVER}
+ VERSION ${VERSION})
TARGET_LINK_LIBRARIES(${LIBRARY_NAME}
${VC_ELM_DEPS_LIBRARIES})