From: Hoyub Lee Date: Fri, 30 Jun 2017 07:52:41 +0000 (+0900) Subject: Create version macros for libwayland-egl X-Git-Tag: accepted/tizen/unified/20170711.180707~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=891f4da443e21fc8abb55aae59fe2b5983555e37;p=platform%2Fcore%2Fuifw%2Flibtpl-egl.git Create version macros for libwayland-egl Change-Id: I9f7963a8c0bb839206de4fac49d8455b6f6c16d8 Signed-off-by: Hoyub Lee --- diff --git a/packaging/libtpl-egl.spec b/packaging/libtpl-egl.spec index 1f12c0b..2568c1d 100644 --- a/packaging/libtpl-egl.spec +++ b/packaging/libtpl-egl.spec @@ -21,7 +21,11 @@ %define ENABLE_TPL_TEST 0 #WAYLAND-EGL VERSION MACROS -%define WL_EGL_VERSION 1.2.0 +%define WL_EGL_VER_MAJOR 1 +%define WL_EGL_VER_MINOR 2 +%define WL_EGL_RELEASE 0 +%define WL_EGL_VERSION %{WL_EGL_VER_MAJOR}.%{WL_EGL_VER_MINOR} +%define WL_EGL_VER_FULL %{WL_EGL_VERSION}.%{WL_EGL_RELEASE} #TPL WINDOW SYSTEM CHECK %if "%{TPL_WINSYS}" != "DRI2" && "%{TPL_WINSYS}" != "DRI3" && "%{TPL_WINSYS}" != "WL" @@ -186,7 +190,7 @@ make all #libwayland-egl build %if "%{TPL_WINSYS}" == "WL" cd src/wayland-egl -export WLD_EGL_SO_VER=%{WL_EGL_VERSION} +export WLD_EGL_SO_VER=%{WL_EGL_VER_FULL} make cd ../../ %endif @@ -231,10 +235,10 @@ cp -a pkgconfig/tpl-egl.pc %{buildroot}%{_libdir}/pkgconfig/ %if "%{TPL_WINSYS}" == "WL" cd src/wayland-egl -cp libwayland-egl.so.%{WL_EGL_VERSION} %{buildroot}%{_libdir}/libwayland-egl.so -cp libwayland-egl.so.%{WL_EGL_VERSION} %{buildroot}%{_libdir}/libwayland-egl.so.1 -cp libwayland-egl.so.%{WL_EGL_VERSION} %{buildroot}%{_libdir}/libwayland-egl.so.1.0 -export WLD_EGL_SO_VER=%{WL_EGL_VERSION} +cp libwayland-egl.so.%{WL_EGL_VER_FULL} %{buildroot}%{_libdir}/libwayland-egl.so +cp libwayland-egl.so.%{WL_EGL_VER_FULL} %{buildroot}%{_libdir}/libwayland-egl.so.%{WL_EGL_VER_MAJOR} +cp libwayland-egl.so.%{WL_EGL_VER_FULL} %{buildroot}%{_libdir}/libwayland-egl.so.%{WL_EGL_VERSION} +export WLD_EGL_SO_VER=%{WL_EGL_VER_FULL} %makeinstall cd - @@ -299,9 +303,9 @@ cp -a %{_builddir}/%{buildsubdir}/tc/libs/gtest/googletest/LICENSE %{buildroot}/ %license COPYING %defattr(-,root,root,-) %{_libdir}/libwayland-egl.so -%{_libdir}/libwayland-egl.so.1 -%{_libdir}/libwayland-egl.so.1.0 +%{_libdir}/libwayland-egl.so.%{WL_EGL_VER_MAJOR} %{_libdir}/libwayland-egl.so.%{WL_EGL_VERSION} +%{_libdir}/libwayland-egl.so.%{WL_EGL_VER_FULL} %files -n libwayland-egl-devel %defattr(-,root,root,-)