Name: libtbm-sprd
-Version: 1.0.9
+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)
%description
descriptionion:Tizen Buffer manager backend module for spreadtrum
-%global TZ_SYS_RO_SHARE %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}
-
%prep
%setup -q
+cp %{SOURCE1001} .
%build
%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
+%make_install
%post
if [ -f %{_libdir}/bufmgr/libtbm_default.so ]; then
%postun -p /sbin/ldconfig
%files
-%defattr(-,root,root,-)
+%manifest %{name}.manifest
%license COPYING
%{_libdir}/bufmgr/libtbm_*.so*
%{_libdir}/udev/rules.d/99-libtbm_sprd.rules