1 %define UTEST_PACKAGE 1
7 Summary: User Library of Tizen Display Manager
8 Group: Development/Libraries
10 Source0: %{name}-%{version}.tar.gz
11 Source1001: %{name}.manifest
12 BuildRequires: pkgconfig(libtbm)
13 BuildRequires: pkgconfig(libpng)
14 BuildRequires: pkgconfig(ttrace)
15 BuildRequires: pkgconfig(wayland-server)
16 BuildRequires: pkgconfig(iniparser)
17 BuildRequires: pkgconfig(pixman-1)
18 BuildRequires: gtest-devel
21 Common user library of Tizen Display Manager : libtdm front-end library
24 Summary: Devel of Tizen Display Manager Library
25 Group: Development/Libraries
26 Requires: libtdm = %{version}
27 Requires: pkgconfig(libtbm)
30 This supports frontend & backend library header and so
33 Summary: Client library for Tizen Display Manager
34 Group: Development/Libraries
35 Requires: libtdm = %{version}
38 Tizen Display Manager Client Library
41 Summary: Client library for Tizen Display Manager
42 Group: Development/Libraries
43 Requires: libtdm-client = %{version}
44 Requires: libtdm-devel
46 %description client-devel
47 Tizen Display Manager Client Library headers
49 %if "%{UTEST_PACKAGE}" == "1"
51 Summary: Tizen Display Manager unit tests package
52 Group: Development/Libraries
55 Test module for testing libtdm APIs
58 %global TZ_SYS_RO_SHARE %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}
61 Summary: Tools for libtdm
62 Group: Development/Utilities
63 Requires: libtdm = %{version}
66 This contains libtdm tools for fundamental testing
75 %if "%{UTEST_PACKAGE}" == "1"
79 %if "%{UTEST_GCOV}" == "1"
80 CFLAGS+=" -fprofile-arcs -ftest-coverage -DTIZEN_TEST_GCOV"
81 CXXFLAGS+=" -fprofile-arcs -ftest-coverage -DTIZEN_TEST_GCOV"
85 %reconfigure --disable-static --with-utests=${UTEST} \
86 --with-tdm-data-path=%{TZ_SYS_RO_SHARE}/tdm \
87 CFLAGS="${CFLAGS} -Wall -Werror" \
88 CXXFLAGS="${CXXFLAGS} -Wall -Werror" \
89 LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
96 %__mkdir_p %{buildroot}%{_unitdir_user}
97 install -m 644 service/tdm-socket-user.service %{buildroot}%{_unitdir_user}
98 install -m 644 service/tdm-socket-user.path %{buildroot}%{_unitdir_user}
104 %__mkdir_p %{_unitdir_user}/basic.target.wants
105 ln -sf ../tdm-socket-user.path %{_unitdir_user}/basic.target.wants/
107 %post -p /sbin/ldconfig
108 %postun -p /sbin/ldconfig
109 rm -f %{_unitdir_user}/basic.target.wants/tdm-socket-user.path
112 %manifest %{name}.manifest
113 %defattr(-,root,root,-)
115 %{_libdir}/libtdm.so.*
116 %{_libdir}/tdm/libtdm-dummy.so
117 %attr(750,root,root) %{_bindir}/tdm-monitor
118 %{_unitdir_user}/tdm-socket-user.path
119 %{_unitdir_user}/tdm-socket-user.service
122 %manifest %{name}.manifest
123 %defattr(-,root,root,-)
125 %{_includedir}/tdm_common.h
126 %{_includedir}/tdm_backend.h
127 %{_includedir}/tdm_helper.h
128 %{_includedir}/tdm_list.h
129 %{_includedir}/tdm_log.h
130 %{_includedir}/tdm_types.h
131 %{_includedir}/tdm_config.h
132 %{_includedir}/tdm_deprecated.h
133 %{_libdir}/pkgconfig/libtdm.pc
137 %manifest %{name}.manifest
138 %defattr(-,root,root,-)
140 %{_libdir}/libtdm-client.so.*
143 %manifest %{name}.manifest
144 %defattr(-,root,root,-)
145 %{_includedir}/tdm_client.h
146 %{_includedir}/tdm_client_types.h
147 %{_libdir}/pkgconfig/libtdm-client.pc
148 %{_libdir}/libtdm-client.so
151 %manifest %{name}.manifest
152 %attr(750,root,root) %{_bindir}/tdm-test-server
153 %{_bindir}/tdm-test-client
155 %if "%{UTEST_PACKAGE}" == "1"
157 %defattr(-,root,root,-)
158 %{_bindir}/tdm-utests