X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Flibtbm.spec;h=aeaddc0bcae494398db0767657d2a5a5f266279e;hb=17e12afac4466979c76438b49608a96f7b21a8a8;hp=b7a2450abdbaf8dfb51beb135b18600a28102e6f;hpb=3b81259ba298bad6a208bc4e94fa0dca93c9af81;p=platform%2Fcore%2Fuifw%2Flibtbm.git diff --git a/packaging/libtbm.spec b/packaging/libtbm.spec index b7a2450..aeaddc0 100644 --- a/packaging/libtbm.spec +++ b/packaging/libtbm.spec @@ -7,10 +7,10 @@ %define HALTESTS_GCOV 0 %endif -%define _tmpfilesdir %{_libdir}/tmpfiles.d +%define _tmpfilesdir /usr/lib/tmpfiles.d Name: libtbm -Version: 3.3.9 +Version: 4.1.7 Release: 1 License: MIT Summary: The library for Tizen Buffer Manager @@ -27,6 +27,7 @@ BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(pixman-1) BuildRequires: pkgconfig(gmock) +BuildRequires: pkgconfig(hal-api-tbm) %description Description: %{summary} @@ -80,10 +81,10 @@ LDFLAGS+=" -lgcov" %endif %if %{with wayland} -%reconfigure --prefix=%{_prefix} --with-tbm-platform=WAYLAND --with-haltests=${HALTESTS} \ +%reconfigure --prefix=%{_prefix} --with-tbm-platform=WAYLAND --with-haltests=${HALTESTS} --bindir=%{_bindir}/hal \ CFLAGS="${CFLAGS} -Wall -Werror" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed" %else -%reconfigure --prefix=%{_prefix} --with-tbm-platform=X11 --with-haltests=${HALTESTS} \ +%reconfigure --prefix=%{_prefix} --with-tbm-platform=X11 --with-haltests=${HALTESTS} --bindir=%{_bindir}/hal \ CFLAGS="${CFLAGS} -Wall -Werror" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed" %endif @@ -118,7 +119,14 @@ rm -rf %{buildroot} %__mkdir_p %{_unitdir_user}/basic.target.wants ln -sf ../tbm-drm-auth-user.path %{_unitdir_user}/basic.target.wants/ -%post -p /sbin/ldconfig +%post +%if "%{HALTESTS_PACKAGE}" == "1" +if [ -f %{_bindir}/tbm-haltests ]; then + rm -f %{_bindir}/tbm-haltests +fi +ln -s %{_bindir}/hal/tbm-haltests %{_bindir}/tbm-haltests +%endif + %postun -p /sbin/ldconfig rm -f %{_unitdir_user}/basic.target.wants/tbm-drm-auth-user.path @@ -142,7 +150,7 @@ rm -f %{_unitdir_user}/basic.target.wants/tbm-drm-auth-user.path %if "%{HALTESTS_PACKAGE}" == "1" %files haltests %defattr(-,root,root,-) -%{_bindir}/tbm-haltests +%{_bindir}/hal/tbm-haltests %endif %if 0%{?gcov:1}