projects
/
platform
/
core
/
uifw
/
libtdm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Package version up to 2.5.0
[platform/core/uifw/libtdm.git]
/
packaging
/
libtdm.spec
diff --git
a/packaging/libtdm.spec
b/packaging/libtdm.spec
index
5a8431e
..
9477c6f
100644
(file)
--- a/
packaging/libtdm.spec
+++ b/
packaging/libtdm.spec
@@
-1,7
+1,8
@@
-%bcond_with utest
+%define HALTESTS_PACKAGE 1
+%define HALTESTS_GCOV 0
Name: libtdm
Name: libtdm
-Version:
1.4.6
+Version:
2.5.0
Release: 0
Summary: User Library of Tizen Display Manager
Group: Development/Libraries
Release: 0
Summary: User Library of Tizen Display Manager
Group: Development/Libraries
@@
-12,11
+13,10
@@
BuildRequires: pkgconfig(libtbm)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(ttrace)
BuildRequires: pkgconfig(wayland-server)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(ttrace)
BuildRequires: pkgconfig(wayland-server)
+BuildRequires: pkgconfig(wayland-client)
+BuildRequires: pkgconfig(iniparser)
BuildRequires: pkgconfig(pixman-1)
BuildRequires: pkgconfig(pixman-1)
-
-%if %{with utest}
-BuildRequires: gtest-devel
-%endif
+BuildRequires: gtest-devel
%description
Common user library of Tizen Display Manager : libtdm front-end library
%description
Common user library of Tizen Display Manager : libtdm front-end library
@@
-47,6
+47,15
@@
Requires: libtdm-devel
%description client-devel
Tizen Display Manager Client Library headers
%description client-devel
Tizen Display Manager Client Library headers
+%if "%{HALTESTS_PACKAGE}" == "1"
+%package haltests
+Summary: Tizen Display Manager unit tests package
+Group: Development/Libraries
+
+%description haltests
+Test module for testing libtdm APIs
+%endif
+
%global TZ_SYS_RO_SHARE %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}
%package tools
%global TZ_SYS_RO_SHARE %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}
%package tools
@@
-62,30
+71,29
@@
This contains libtdm tools for fundamental testing
cp %{SOURCE1001} .
%build
cp %{SOURCE1001} .
%build
-UTEST="no"
+HALTESTS="no"
+
+%if "%{HALTESTS_PACKAGE}" == "1"
+HALTESTS="yes"
+%endif
-%if %{with utest}
-UTEST="yes"
+%if "%{HALTESTS_GCOV}" == "1"
+CFLAGS+=" -fprofile-arcs -ftest-coverage -DTIZEN_TEST_GCOV"
+CXXFLAGS+=" -fprofile-arcs -ftest-coverage -DTIZEN_TEST_GCOV"
+LDFLAGS+=" -lgcov"
%endif
%endif
-%reconfigure --disable-static --with-utest=${UTEST} \
+%reconfigure --disable-static --with-haltests=${HALTESTS} \
+ --with-tdm-data-path=%{TZ_SYS_RO_SHARE}/tdm \
CFLAGS="${CFLAGS} -Wall -Werror" \
CFLAGS="${CFLAGS} -Wall -Werror" \
+ CXXFLAGS="${CXXFLAGS} -Wall -Werror" \
LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
make %{?_smp_mflags}
LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
make %{?_smp_mflags}
-%if %{with utest}
-make -C ut check
-%endif
-
%install
rm -rf %{buildroot}
%install
rm -rf %{buildroot}
-mkdir -p %{buildroot}/%{TZ_SYS_RO_SHARE}/license
-cp -af COPYING %{buildroot}/%{TZ_SYS_RO_SHARE}/license/%{name}
%make_install
%make_install
-%__mkdir_p %{buildroot}%{_unitdir}
-install -m 644 service/tdm-socket.service %{buildroot}%{_unitdir}
-install -m 644 service/tdm-socket.path %{buildroot}%{_unitdir}
%__mkdir_p %{buildroot}%{_unitdir_user}
install -m 644 service/tdm-socket-user.service %{buildroot}%{_unitdir_user}
install -m 644 service/tdm-socket-user.path %{buildroot}%{_unitdir_user}
%__mkdir_p %{buildroot}%{_unitdir_user}
install -m 644 service/tdm-socket-user.service %{buildroot}%{_unitdir_user}
install -m 644 service/tdm-socket-user.path %{buildroot}%{_unitdir_user}
@@
-94,31
+102,23
@@
install -m 644 service/tdm-socket-user.path %{buildroot}%{_unitdir_user}
%pre
%pre
-%__mkdir_p %{_unitdir}/graphical.target.wants
-ln -sf ../tdm-socket.path %{_unitdir}/graphical.target.wants/
-
%__mkdir_p %{_unitdir_user}/basic.target.wants
ln -sf ../tdm-socket-user.path %{_unitdir_user}/basic.target.wants/
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%__mkdir_p %{_unitdir_user}/basic.target.wants
ln -sf ../tdm-socket-user.path %{_unitdir_user}/basic.target.wants/
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-rm -f %{_unitdir}/graphical.target.wants/tdm-socket.path
-
rm -f %{_unitdir_user}/basic.target.wants/tdm-socket-user.path
%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
rm -f %{_unitdir_user}/basic.target.wants/tdm-socket-user.path
%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
-%
{TZ_SYS_RO_SHARE}/license/%{name}
+%
license COPYING
%{_libdir}/libtdm.so.*
%{_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}/tdm-monitor
-%{_unitdir}/tdm-socket.path
-%{_unitdir}/tdm-socket.service
%{_unitdir_user}/tdm-socket-user.path
%{_unitdir_user}/tdm-socket-user.service
%{_unitdir_user}/tdm-socket-user.path
%{_unitdir_user}/tdm-socket-user.service
-%if %{with utest}
-%{_bindir}/ut
-%endif
%files devel
%manifest %{name}.manifest
%files devel
%manifest %{name}.manifest
@@
-130,13
+130,14
@@
rm -f %{_unitdir_user}/basic.target.wants/tdm-socket-user.path
%{_includedir}/tdm_list.h
%{_includedir}/tdm_log.h
%{_includedir}/tdm_types.h
%{_includedir}/tdm_list.h
%{_includedir}/tdm_log.h
%{_includedir}/tdm_types.h
+%{_includedir}/tdm_deprecated.h
%{_libdir}/pkgconfig/libtdm.pc
%{_libdir}/libtdm.so
%files client
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_libdir}/pkgconfig/libtdm.pc
%{_libdir}/libtdm.so
%files client
%manifest %{name}.manifest
%defattr(-,root,root,-)
-%
{TZ_SYS_RO_SHARE}/license/%{name}
+%
license COPYING
%{_libdir}/libtdm-client.so.*
%files client-devel
%{_libdir}/libtdm-client.so.*
%files client-devel
@@
-152,4
+153,10
@@
rm -f %{_unitdir_user}/basic.target.wants/tdm-socket-user.path
%attr(750,root,root) %{_bindir}/tdm-test-server
%{_bindir}/tdm-test-client
%attr(750,root,root) %{_bindir}/tdm-test-server
%{_bindir}/tdm-test-client
+%if "%{HALTESTS_PACKAGE}" == "1"
+%files haltests
+%defattr(-,root,root,-)
+%{_bindir}/tdm-haltests
+%endif
+
%changelog
%changelog