%define HALTESTS_GCOV 0
Name: libtdm
-Version: 2.11.2
+Version: 3.1.4
Release: 0
Summary: User Library of Tizen Display Manager
Group: Development/Libraries
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(iniparser)
BuildRequires: pkgconfig(pixman-1)
+BuildRequires: pkgconfig(hal-api-tdm)
BuildRequires: gtest-devel
%description
LDFLAGS+=" -lgcov"
%endif
-%reconfigure --disable-static --with-haltests=${HALTESTS} \
+%reconfigure --disable-static --with-haltests=${HALTESTS} --bindir=%{_bindir}/hal \
+ --with-default-dlog=yes \
--with-tdm-data-path=%{TZ_SYS_RO_SHARE}/tdm \
CFLAGS="${CFLAGS} -Wall -Werror" \
CXXFLAGS="${CXXFLAGS} -Wall -Werror" \
%__mkdir_p %{_unitdir_user}/basic.target.wants
ln -sf ../tdm-socket-user.path %{_unitdir_user}/basic.target.wants/
-%post -p /sbin/ldconfig
+%post
+%if "%{HALTESTS_PACKAGE}" == "1"
+if [ -f %{_bindir}/tdm-haltests ]; then
+ rm -f %{_bindir}/tdm-haltests
+fi
+ln -s %{_bindir}/hal/tdm-haltests %{_bindir}/tdm-haltests
+%endif
+if [ -f %{_bindir}/tdm-monitor ]; then
+ rm -f %{_bindir}/tdm-monitor
+fi
+ln -s %{_bindir}/hal/tdm-monitor %{_bindir}/tdm-monitor
+
+if [ -f %{_bindir}/tdm-test-client ]; then
+ rm -f %{_bindir}/tdm-test-client
+fi
+ln -s %{_bindir}/hal/tdm-test-client %{_bindir}/tdm-test-client
+
+if [ -f %{_bindir}/tdm-test-server ]; then
+ rm -f %{_bindir}/tdm-test-server
+fi
+ln -s %{_bindir}/hal/tdm-test-server %{_bindir}/tdm-test-server
+
%postun -p /sbin/ldconfig
rm -f %{_unitdir_user}/basic.target.wants/tdm-socket-user.path
%{_libdir}/libtdm.so.*
%{_libdir}/tdm/libtdm-dummy.so
%{_libdir}/tdm/libtdm-virtual.so
-%attr(750,root,root) %{_bindir}/tdm-monitor
+%attr(750,root,root) %{_bindir}/hal/tdm-monitor
%{_unitdir_user}/tdm-socket-user.path
%{_unitdir_user}/tdm-socket-user.service
%files tools
%manifest %{name}.manifest
-%attr(750,root,root) %{_bindir}/tdm-test-server
-%{_bindir}/tdm-test-client
+%attr(750,root,root) %{_bindir}/hal/tdm-test-server
+%{_bindir}/hal/tdm-test-client
%if "%{HALTESTS_PACKAGE}" == "1"
%files haltests
%defattr(-,root,root,-)
-%{_bindir}/tdm-haltests
+%{_bindir}/hal/tdm-haltests
%endif
%changelog