8 Summary: The library for Tizen Buffer Manager
9 Group: System/Libraries
10 Source0: %{name}-%{version}.tar.gz
11 Source1001: %name.manifest
13 BuildRequires: pkgconfig(libdrm)
14 BuildRequires: pkgconfig(wayland-server)
15 BuildRequires: pkgconfig(wayland-client)
16 BuildRequires: pkgconfig(pthread-stubs)
17 BuildRequires: pkgconfig(capi-base-common)
20 Description: %{summary}
23 Summary: Tizen Buffer Manager Library - Development
24 Group: Development/Libraries
25 Requires: libtbm = %{version}
26 Requires: pkgconfig(capi-base-common)
29 The library for Tizen Buffer Manager.
40 %reconfigure --prefix=%{_prefix} --with-tbm-platform=WAYLAND \
41 CFLAGS="${CFLAGS} -Wall -Werror" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
43 %reconfigure --prefix=%{_prefix} --with-tbm-platform=X11 \
44 CFLAGS="${CFLAGS} -Wall -Werror" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
51 mkdir -p %{buildroot}/usr/share/license
52 cp -af COPYING %{buildroot}/usr/share/license/%{name}
56 %__mkdir_p %{buildroot}%{_unitdir}
57 install -m 644 service/tbm-drm-auth.service %{buildroot}%{_unitdir}
58 install -m 644 service/tbm-drm-auth.path %{buildroot}%{_unitdir}
59 %__mkdir_p %{buildroot}%{_unitdir_user}
60 install -m 644 service/tbm-drm-auth-user.service %{buildroot}%{_unitdir_user}
61 install -m 644 service/tbm-drm-auth-user.path %{buildroot}%{_unitdir_user}
67 %__mkdir_p %{_unitdir}/graphical.target.wants
68 ln -sf ../tbm-drm-auth.path %{_unitdir}/graphical.target.wants/
70 %__mkdir_p %{_unitdir_user}/default.target.wants
71 ln -sf ../tbm-drm-auth-user.path %{_unitdir_user}/default.target.wants/
73 %post -p /sbin/ldconfig
74 %postun -p /sbin/ldconfig
75 rm -f %{_unitdir}/graphical.target.wants/tbm-drm-auth.path
76 rm -f %{_unitdir_user}/default.target.wants/tbm-drm-auth-user.path
79 %manifest %{name}.manifest
80 %defattr(-,root,root,-)
81 /usr/share/license/%{name}
82 %{_libdir}/libtbm.so.*
83 %{_unitdir}/tbm-drm-auth.path
84 %{_unitdir}/tbm-drm-auth.service
85 %{_unitdir_user}/tbm-drm-auth-user.path
86 %{_unitdir_user}/tbm-drm-auth-user.service
89 %manifest %{name}.manifest
90 %defattr(-,root,root,-)
92 %{_includedir}/tbm_bufmgr.h
93 %{_includedir}/tbm_surface.h
94 %{_includedir}/tbm_surface_internal.h
95 %{_includedir}/tbm_surface_queue.h
96 %{_includedir}/tbm_bufmgr_backend.h
97 %{_includedir}/tbm_type.h
98 %{_includedir}/tbm_drm_helper.h
100 %{_libdir}/pkgconfig/libtbm.pc