9 Summary: The library for Tizen Buffer Manager
10 Group: System/Libraries
11 Source0: %{name}-%{version}.tar.gz
12 Source1001: %name.manifest
14 BuildRequires: pkgconfig(libdrm)
15 BuildRequires: pkgconfig(wayland-server)
16 BuildRequires: pkgconfig(wayland-client)
17 BuildRequires: pkgconfig(capi-base-common)
18 BuildRequires: pkgconfig(libpng)
19 BuildRequires: pkgconfig(dlog)
22 Description: %{summary}
25 Summary: Tizen Buffer Manager Library - Development
26 Group: Development/Libraries
27 Requires: libtbm = %{version}
28 Requires: pkgconfig(capi-base-common)
31 The library for Tizen Buffer Manager.
37 Summary: Tizen Buffer Manager unit tests package
38 Group: System/Libraries
41 Test module for testing libtbm APIs
44 %global TZ_SYS_RO_SHARE %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}
54 cd ut/gtest/googletest
63 %reconfigure --prefix=%{_prefix} --with-tbm-platform=WAYLAND --with-utest=${UTEST} \
64 CFLAGS="${CFLAGS} -Wall -Werror" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
66 %reconfigure --prefix=%{_prefix} --with-tbm-platform=X11 --with-utest=${UTEST} \
67 CFLAGS="${CFLAGS} -Wall -Werror" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
74 mkdir -p %{buildroot}/%{TZ_SYS_RO_SHARE}/license
75 cp -af COPYING %{buildroot}/%{TZ_SYS_RO_SHARE}/license/%{name}
77 cp -af %{_builddir}/%{buildsubdir}/ut/gtest/googletest/LICENSE %{buildroot}/%{TZ_SYS_RO_SHARE}/license/googletest
82 %__mkdir_p %{buildroot}%{_unitdir}
83 install -m 644 service/tbm-drm-auth.service %{buildroot}%{_unitdir}
84 install -m 644 service/tbm-drm-auth.path %{buildroot}%{_unitdir}
85 %__mkdir_p %{buildroot}%{_unitdir_user}
86 install -m 644 service/tbm-drm-auth-user.service %{buildroot}%{_unitdir_user}
87 install -m 644 service/tbm-drm-auth-user.path %{buildroot}%{_unitdir_user}
93 %__mkdir_p %{_unitdir}/graphical.target.wants
94 ln -sf ../tbm-drm-auth.path %{_unitdir}/graphical.target.wants/
96 %if "%{?profile}" == "mobile" || "%{?profile}" == "wearable"
97 %__mkdir_p %{_unitdir_user}/basic.target.wants
98 ln -sf ../tbm-drm-auth-user.path %{_unitdir_user}/basic.target.wants/
100 %__mkdir_p %{_unitdir_user}/default.target.wants
101 ln -sf ../tbm-drm-auth-user.path %{_unitdir_user}/default.target.wants/
104 %post -p /sbin/ldconfig
105 %postun -p /sbin/ldconfig
106 rm -f %{_unitdir}/graphical.target.wants/tbm-drm-auth.path
108 %if "%{?profile}" == "mobile" || "%{?profile}" == "wearable"
109 rm -f %{_unitdir_user}/basic.target.wants/tbm-drm-auth-user.path
111 rm -f %{_unitdir_user}/default.target.wants/tbm-drm-auth-user.path
115 %manifest %{name}.manifest
116 %defattr(-,root,root,-)
117 %{TZ_SYS_RO_SHARE}/license/%{name}
118 %{_libdir}/libtbm.so.*
119 %{_unitdir}/tbm-drm-auth.path
120 %{_unitdir}/tbm-drm-auth.service
121 %{_unitdir_user}/tbm-drm-auth-user.path
122 %{_unitdir_user}/tbm-drm-auth-user.service
125 %manifest %{name}.manifest
126 %defattr(-,root,root,-)
128 %{_includedir}/tbm_bufmgr.h
129 %{_includedir}/tbm_surface.h
130 %{_includedir}/tbm_surface_internal.h
131 %{_includedir}/tbm_surface_queue.h
132 %{_includedir}/tbm_bufmgr_backend.h
133 %{_includedir}/tbm_type.h
134 %{_includedir}/tbm_drm_helper.h
135 %{_includedir}/tbm_sync.h
137 %{_libdir}/pkgconfig/libtbm.pc
141 %defattr(-,root,root,-)
142 %{_bindir}/tbm_utests
143 %{TZ_SYS_RO_SHARE}/license/%{name}
144 %{TZ_SYS_RO_SHARE}/license/googletest