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
10 Source1002: libhal-backend-tbm-sprd.manifest
12 BuildRequires: pkgconfig(libdrm)
13 BuildRequires: pkgconfig(libtbm)
14 BuildRequires: pkgconfig(hal-api-common)
15 BuildRequires: pkgconfig(hal-api-tbm)
16 BuildRequires: pkgconfig(dlog)
17 BuildRequires: pkgconfig(libudev)
18 BuildRequires: kernel-headers-3.10-sc7730
19 BuildConflicts: linux-glibc-devel
22 descriptionion:Tizen Buffer manager backend module for spreadtrum
24 %package -n hal-backend-tbm-sprd
25 Summary: hal-backend-tbm module for spreadtrum
26 Group: System/Libraries
28 Requires: hal-api-common
30 %description -n hal-backend-tbm-sprd
31 descriptionion: hal tbm backend module for sprd
40 %reconfigure --prefix=%{_prefix} --libdir=%{_libdir}/bufmgr \
41 --with-hal-libdir=%{_hal_libdir} \
42 CFLAGS="${CFLAGS} -Wall -Werror `pkg-config --cflags dlog`" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
50 mkdir -p %{buildroot}%{_libdir}/udev/rules.d/
51 cp -af rules/99-libtbm_sprd.rules %{buildroot}%{_libdir}/udev/rules.d/
52 cp -af rules/99-libhal-backend-tbm-sprd.rules %{buildroot}%{_libdir}/udev/rules.d/
57 if [ -f %{_libdir}/bufmgr/libtbm_default.so ]; then
58 rm -rf %{_libdir}/bufmgr/libtbm_default.so
60 ln -s libtbm_sprd.so %{_libdir}/bufmgr/libtbm_default.so
62 if [ -f %{_hal_libdir}/libhal-backend-tbm.so ]; then
63 rm -rf %{_hal_libdir}/libhal-backend-tbm.so
65 ln -s libhal-backend-tbm-sprd.so %{_hal_libdir}/libhal-backend-tbm.so
67 %postun -p /sbin/ldconfig
70 %manifest %{name}.manifest
72 %{_libdir}/bufmgr/libtbm_*.so*
73 %{_libdir}/udev/rules.d/99-libtbm_sprd.rules
75 %files -n hal-backend-tbm-sprd
76 %manifest libhal-backend-tbm-sprd.manifest
78 %{_hal_libdir}/libhal-backend-*.so*
79 %{_libdir}/udev/rules.d/99-libhal-backend-tbm-sprd.rules