File gl4es.spec of Package gl4es
#
# spec file for package gl4es
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: gl4es
Version: 1.1.0+git252
Release: 0
Summary: OpenGL 2.1/1.5 to GL ES 2.0/1.1 translation library
License: MIT
Group: System/Libraries
Url: http://bugs.opensuse.org/
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake make gcc gcc-c++ libX11-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is a library provide OpenGL 2.x functionality for GLES2.0 accelerated
Hardware (and of course also support OpenGL 1.5 function, sometimes better then
when using GLES 1.1 backend) There is also support for GLES 1.1 Hardware,
emulating OpenGL 1.5, and some OpenGL 2.x+ extensions, but without shaders.
%prep
%setup -q
%build
%cmake
%cmake_build
%install
install -D -m 755 %{__builddir}/lib/libGL.so.1 %{buildroot}%{_libdir}/libGL.so.1.0.0
ln -s libGL.so.1.0.0 %{buildroot}%{_libdir}/libGL.so.1
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%attr(0644,root,root) %doc CHANGELOG.md README.md MEDIA.md USAGE.md
%{_libdir}/libGL.so.1
%{_libdir}/libGL.so.1.0.0
%changelog