7 License: TO_BE/FILLED_IN
8 URL: http://www.tizen.org
9 Source0: %{name}-%{version}.tar.gz
10 Requires(post): /sbin/ldconfig
11 Requires(postun): /sbin/ldconfig
12 #Patch1: patchfile.patch
14 BuildRequires: simulator-opengl-devel
16 BuildRequires: pkgconfig(gles11)
17 BuildRequires: pkgconfig(gles20)
18 BuildRequires: pkgconfig(xfixes)
19 BuildRequires: opengl-es-devel
21 BuildRequires: pkgconfig(x11)
23 BuildRequires: pkgconfig(dlog)
24 BuildRequires: sec-product-features
27 This package contains the GLESv2.0/EGL
30 %setup -q -n %{name}-%{version}
34 %if 0%{?sec_product_feature_graphics_adreno}
36 %global extra_option -DUSE_MALI=TRUE
39 cmake . -DCMAKE_INSTALL_PREFIX=/usr %{?extra_option}
45 mkdir -p %{buildroot}/usr/lib
46 mkdir -p %{buildroot}/usr/include/EGL
47 mkdir -p %{buildroot}/usr/include/GLES2
48 cp %{_builddir}/%{name}-%{version}/libCOREGL.so.4.0 %{buildroot}%{_libdir}/libCOREGL.so.4.0
49 cp %{_builddir}/%{name}-%{version}/libEGL.so.1.4 %{buildroot}%{_libdir}/libEGL.so.1.4
50 cp %{_builddir}/%{name}-%{version}/libGLESv2.so.2.0 %{buildroot}%{_libdir}/libGLESv2.so.2.0
64 rm -f ./libGLESv2.so.2
66 rm -f ./libCOREGL.so.4
67 ln -s libCOREGL.so.4.0 libCOREGL.so.4
68 ln -s libCOREGL.so.4 libCOREGL.so
69 ln -s libEGL.so.1.4 libEGL.so.1
70 ln -s libEGL.so.1 libEGL.so
71 ln -s libGLESv2.so.2.0 libGLESv2.so.2
72 ln -s libGLESv2.so.2 libGLESv2.so
78 %postun -p /sbin/ldconfig
81 %defattr(-,root,root,-)
82 %{_libdir}/libCOREGL.so*
84 %{_libdir}/libGLESv2.so*