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"
68 mkdir -p %{buildroot}/%{TZ_SYS_RO_SHARE}/license
69 cp -af COPYING %{buildroot}/%{TZ_SYS_RO_SHARE}/license/%{name}
73 %__mkdir_p %{buildroot}%{_unitdir}
74 install -m 644 service/tbm-drm-auth.service %{buildroot}%{_unitdir}
75 install -m 644 service/tbm-drm-auth.path %{buildroot}%{_unitdir}
76 %__mkdir_p %{buildroot}%{_unitdir_user}
77 install -m 644 service/tbm-drm-auth-user.service %{buildroot}%{_unitdir_user}
78 install -m 644 service/tbm-drm-auth-user.path %{buildroot}%{_unitdir_user}
84 %__mkdir_p %{_unitdir}/graphical.target.wants
85 ln -sf ../tbm-drm-auth.path %{_unitdir}/graphical.target.wants/
87 %__mkdir_p %{_unitdir_user}/basic.target.wants
88 ln -sf ../tbm-drm-auth-user.path %{_unitdir_user}/basic.target.wants/
90 %post -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
92 rm -f %{_unitdir}/graphical.target.wants/tbm-drm-auth.path
94 rm -f %{_unitdir_user}/basic.target.wants/tbm-drm-auth-user.path
97 %manifest %{name}.manifest
98 %defattr(-,root,root,-)
99 %{TZ_SYS_RO_SHARE}/license/%{name}
100 %{_libdir}/libtbm.so.*
101 %{_unitdir}/tbm-drm-auth.path
102 %{_unitdir}/tbm-drm-auth.service
103 %{_unitdir_user}/tbm-drm-auth-user.path
104 %{_unitdir_user}/tbm-drm-auth-user.service
110 %manifest %{name}.manifest
111 %defattr(-,root,root,-)
113 %{_includedir}/tbm_bufmgr.h
114 %{_includedir}/tbm_surface.h
115 %{_includedir}/tbm_surface_internal.h
116 %{_includedir}/tbm_surface_queue.h
117 %{_includedir}/tbm_bufmgr_backend.h
118 %{_includedir}/tbm_type.h
119 %{_includedir}/tbm_drm_helper.h
120 %{_includedir}/tbm_sync.h
122 %{_libdir}/pkgconfig/libtbm.pc