Name: libtbm-shm Version: 2.0.2 Release: 1 License: MIT Summary: Tizen Buffer Manager - drm shm backend Group: System/Libraries ExcludeArch: i586 Source0: %{name}-%{version}.tar.gz Source1001: %{name}.manifest BuildRequires: pkgconfig(libtbm) BuildRequires: pkgconfig(dlog) %description descriptionion: Tizen Buffer manager backend module uses drm shm %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 %reconfigure --prefix=%{_prefix} --libdir=%{_libdir}/bufmgr --disable-cachectrl \ CFLAGS="${CFLAGS} -Wall -Werror" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed" make %{?_smp_mflags} %install rm -rf %{buildroot} %make_install %post if [ -f %{_libdir}/bufmgr/libtbm_default.so ]; then rm -rf %{_libdir}/bufmgr/libtbm_default.so fi ln -s libtbm_shm.so %{_libdir}/bufmgr/libtbm_default.so %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %manifest libtbm-shm.manifest %license COPYING %{_libdir}/bufmgr/libtbm_*.so*