Name: libtbm-dumb Version: 3.0.3 Release: 1 License: MIT Summary: Tizen Buffer Manager - drm dumb backend Group: System/Libraries ExcludeArch: i586 Source0: %{name}-%{version}.tar.gz Source1001: %{name}.manifest Source1002: libhal-backend-tbm-dumb.manifest BuildRequires: pkgconfig(libdrm) BuildRequires: pkgconfig(libtbm) BuildRequires: pkgconfig(hal-api-common) BuildRequires: pkgconfig(hal-api-tbm) BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(libudev) %description descriptionion: Tizen Buffer manager backend module uses drm dumb %package -n hal-backend-tbm-dumb Summary: hal-backend-tbm module for drm dumb Group: System/Libraries Requires: hal-api-tbm Requires: hal-api-common %description -n hal-backend-tbm-dumb descriptionion: hal tbm backend module for drm dumb %global TZ_SYS_RO_SHARE %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share} %prep %setup -q cp %{SOURCE1001} . cp %{SOURCE1002} . %build %reconfigure --prefix=%{_prefix} --libdir=%{_libdir}/bufmgr \ --with-hal-libdir=%{_hal_libdir} \ --disable-cachectrl \ CFLAGS="${CFLAGS} -Wall -Werror" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed" make %{?_smp_mflags} %install rm -rf %{buildroot} %make_install # make license files mkdir -p %{buildroot}%{_hal_licensedir}/libhal-backend-tbm-dumb cp -af COPYING %{buildroot}%{_hal_licensedir}/libhal-backend-tbm-dumb %post if [ -f %{_libdir}/bufmgr/libtbm_default.so ]; then rm -rf %{_libdir}/bufmgr/libtbm_default.so fi ln -s libtbm_dumb.so %{_libdir}/bufmgr/libtbm_default.so %postun -p /sbin/ldconfig %post -n hal-backend-tbm-dumb if [ -f %{_hal_libdir}/libhal-backend-tbm.so ]; then rm -rf %{_hal_libdir}/libhal-backend-tbm.so fi ln -s libhal-backend-tbm-dumb.so %{_hal_libdir}/libhal-backend-tbm.so %postun -n hal-backend-tbm-dumb -p /sbin/ldconfig %files %manifest %{name}.manifest %defattr(-,root,root,-) %license COPYING %{_libdir}/bufmgr/libtbm_*.so* %files -n hal-backend-tbm-dumb %manifest libhal-backend-tbm-dumb.manifest %defattr(-,root,root,-) %{_hal_licensedir}/libhal-backend-tbm-dumb/COPYING %{_hal_libdir}/libhal-backend-*.so*