8 Summary: The library for Tizen Buffer Manager
9 Group: System/Libraries
10 Source0: %{name}-%{version}.tar.gz
12 BuildRequires: pkgconfig(libdrm)
13 BuildRequires: pkgconfig(pthread-stubs)
15 BuildRequires: pkgconfig
16 BuildRequires: pkgconfig(wayland-client)
18 BuildRequires: pkgconfig(x11)
19 BuildRequires: pkgconfig(libdri2)
21 BuildRequires: pkgconfig(capi-base-common)
24 Description: %{summary}
27 Summary: Tizen Buffer Manager Library - Development
28 Group: Development/Libraries
29 Requires: libtbm = %{version}
30 Requires: pkgconfig(capi-base-common)
33 The library for Tizen Buffer Manager.
43 %reconfigure --prefix=%{_prefix} --with-tbm-platform=WAYLAND \
44 CFLAGS="${CFLAGS} -Wall -Werror" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
46 %reconfigure --prefix=%{_prefix} --with-tbm-platform=X11 \
47 CFLAGS="${CFLAGS} -Wall -Werror" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
54 mkdir -p %{buildroot}/usr/share/license
55 cp -af COPYING %{buildroot}/usr/share/license/%{name}
62 %post -p /sbin/ldconfig
63 %postun -p /sbin/ldconfig
67 %manifest libtbm.manifest
68 %defattr(-,root,root,-)
69 /usr/share/license/%{name}
70 %{_libdir}/libtbm.so.*
73 %{_libdir}/libdrm_slp.so.*
77 %defattr(-,root,root,-)
79 %{_includedir}/tbm_bufmgr.h
80 %{_includedir}/tbm_surface.h
81 %{_includedir}/tbm_surface_internal.h
82 %{_includedir}/tbm_bufmgr_backend.h
83 %{_includedir}/tbm_type.h
87 %{_libdir}/libdrm_slp.so
89 %{_libdir}/pkgconfig/libtbm.pc