5 Summary: Tizen Buffer Manager - sprd backend
6 Group: System/Libraries
7 ExcludeArch: %{ix86} x86_64 aarch64
8 Source0: %{name}-%{version}.tar.gz
9 Source1001: %{name}.manifest
11 BuildRequires: pkgconfig(libdrm)
12 BuildRequires: pkgconfig(libtbm)
13 BuildRequires: pkgconfig(dlog)
14 BuildRequires: pkgconfig(libudev)
15 BuildRequires: kernel-headers-3.10-sc7730
16 BuildConflicts: linux-glibc-devel
19 descriptionion:Tizen Buffer manager backend module for spreadtrum
21 %global TZ_SYS_RO_SHARE %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}
29 %reconfigure --prefix=%{_prefix} --libdir=%{_libdir}/bufmgr \
30 CFLAGS="${CFLAGS} -Wall -Werror `pkg-config --cflags dlog`" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
36 mkdir -p %{buildroot}%{_libdir}/udev/rules.d/
37 cp -af rules/99-libtbm_sprd.rules %{buildroot}%{_libdir}/udev/rules.d/
42 if [ -f %{_libdir}/bufmgr/libtbm_default.so ]; then
43 rm -rf %{_libdir}/bufmgr/libtbm_default.so
45 ln -s libtbm_sprd.so %{_libdir}/bufmgr/libtbm_default.so
47 %postun -p /sbin/ldconfig
50 %manifest %{name}.manifest
52 %{_libdir}/bufmgr/libtbm_*.so*
53 %{_libdir}/udev/rules.d/99-libtbm_sprd.rules