Name: libtbm-sprd Version: 2.4.3 Release: 0 License: MIT Summary: Tizen Buffer Manager - sprd backend Group: System/Libraries ExcludeArch: %{ix86} x86_64 aarch64 Source0: %{name}-%{version}.tar.gz Source1001: %{name}.manifest BuildRequires: pkgconfig(libdrm) BuildRequires: pkgconfig(libtbm) BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(libudev) BuildRequires: kernel-headers-3.10-sc7730 BuildConflicts: linux-glibc-devel %description descriptionion:Tizen Buffer manager backend module for spreadtrum %prep %setup -q cp %{SOURCE1001} . %build %reconfigure --prefix=%{_prefix} --libdir=%{_libdir}/bufmgr \ CFLAGS="${CFLAGS} -Wall -Werror `pkg-config --cflags dlog`" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed" make %{?_smp_mflags} %install rm -rf %{buildroot} # make rule for tgl mkdir -p %{buildroot}%{_libdir}/udev/rules.d/ cp -af rules/99-libtbm_sprd.rules %{buildroot}%{_libdir}/udev/rules.d/ %make_install %post if [ -f %{_libdir}/bufmgr/libtbm_default.so ]; then rm -rf %{_libdir}/bufmgr/libtbm_default.so fi ln -s libtbm_sprd.so %{_libdir}/bufmgr/libtbm_default.so %postun -p /sbin/ldconfig %files %manifest %{name}.manifest %license COPYING %{_libdir}/bufmgr/libtbm_*.so* %{_libdir}/udev/rules.d/99-libtbm_sprd.rules