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 BuildRequires: gtest-devel
26 Description: %{summary}
29 Summary: Tizen Buffer Manager Library - Development
30 Group: Development/Libraries
31 Requires: libtbm = %{version}
32 Requires: pkgconfig(capi-base-common)
35 The library for Tizen Buffer Manager.
39 %global TZ_SYS_RO_SHARE %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}
53 %reconfigure --prefix=%{_prefix} --with-tbm-platform=WAYLAND --with-utest=${UTEST} \
54 CFLAGS="${CFLAGS} -Wall -Werror" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
56 %reconfigure --prefix=%{_prefix} --with-tbm-platform=X11 --with-utest=${UTEST} \
57 CFLAGS="${CFLAGS} -Wall -Werror" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
70 %__mkdir_p %{buildroot}%{_unitdir_user}
71 install -m 644 service/tbm-drm-auth-user.service %{buildroot}%{_unitdir_user}
72 install -m 644 service/tbm-drm-auth-user.path %{buildroot}%{_unitdir_user}
78 %__mkdir_p %{_unitdir_user}/basic.target.wants
79 ln -sf ../tbm-drm-auth-user.path %{_unitdir_user}/basic.target.wants/
81 %post -p /sbin/ldconfig
82 %postun -p /sbin/ldconfig
83 rm -f %{_unitdir_user}/basic.target.wants/tbm-drm-auth-user.path
86 %manifest %{name}.manifest
87 %defattr(-,root,root,-)
89 %{_libdir}/libtbm.so.*
90 %{_unitdir_user}/tbm-drm-auth-user.path
91 %{_unitdir_user}/tbm-drm-auth-user.service
97 %manifest %{name}.manifest
98 %defattr(-,root,root,-)
100 %{_includedir}/tbm_bufmgr.h
101 %{_includedir}/tbm_surface.h
102 %{_includedir}/tbm_surface_internal.h
103 %{_includedir}/tbm_surface_queue.h
104 %{_includedir}/tbm_bufmgr_backend.h
105 %{_includedir}/tbm_type.h
106 %{_includedir}/tbm_drm_helper.h
107 %{_includedir}/tbm_sync.h
109 %{_libdir}/pkgconfig/libtbm.pc