LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File Mesa-demos.spec of Package Mesa-demos (Project home:pontostroy:X11)

# spec file for package Mesa-demos (Version git)
# Copyright (c) 2011 SUSE LINUX Products 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/

# norootforbuild

Name:           Mesa-demos
BuildRequires:  freeglut-devel autoconf libtool
BuildRequires:  pkg-config gcc-c++
BuildRequires:  pkgconfig(egl)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(gbm)
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(glesv1_cm)
BuildRequires:  pkgconfig(glesv2)
BuildRequires:  pkgconfig(glew)
BuildRequires:  glu-devel
BuildRequires:  pkgconfig(libdrm)
#BuildRequires:  pkgconfig(vg)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xext)
Provides: Mesa-demo-x
Provides: Mesa-demo-egl
Url:            http://dri.sf.net
License:        MIT
Group:          System/Libraries
Version: 9.0.99~git20160303
Release:        1.1
Summary:        OpenGL demonstration and test programs
Source:         Demos-git.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

The package contains a large number of OpenGL demonstration and test programs.

%setup -q -n demos

./autogen.sh --prefix=%_prefix --libdir=%_libdir --bindir=%_libdir/mesa/bin
make %{?jobs:-j%jobs}

mkdir -p $RPM_BUILD_ROOT%_libdir/mesa/bin
mkdir -p $RPM_BUILD_ROOT%_libdir/mesa/bin/egl
mkdir -p $RPM_BUILD_ROOT%_libdir/mesa/bin/egl/opengles1
mkdir -p $RPM_BUILD_ROOT%_libdir/mesa/bin/egl/opengles2
mkdir -p $RPM_BUILD_ROOT%_libdir/mesa/bin/egl/opengl
#mkdir -p $RPM_BUILD_ROOT%_libdir/mesa/bin/egl/openvg
mkdir -p $RPM_BUILD_ROOT%_libdir/mesa/bin/demos
mkdir -p $RPM_BUILD_ROOT%_libdir/mesa/bin/xdemos
mkdir -p $RPM_BUILD_ROOT%_libdir/mesa/bin/tests
mkdir -p $RPM_BUILD_ROOT%_libdir/mesa/bin/redbook
mkdir -p $RPM_BUILD_ROOT%_libdir/mesa/bin/perf
mkdir -p $RPM_BUILD_ROOT%_libdir/mesa/bin/fp
mkdir -p $RPM_BUILD_ROOT%_libdir/mesa/bin/glsl
mkdir -p $RPM_BUILD_ROOT%_libdir/mesa/data

find ./src/egl/opengl/ -type f -perm -o+rx -exec %{__install}  -D -m 0755 {} $RPM_BUILD_ROOT%_libdir/mesa/bin/egl/opengl/ \;
find ./src/egl/opengles1/ -type f -perm -o+rx -exec %{__install}  -D -m 0755 {} $RPM_BUILD_ROOT%_libdir/mesa/bin/egl/opengles1/ \;
#find ./src/egl/openvg/ -type f -perm -o+rx -exec %{__install}  -D -m 0755 {} $RPM_BUILD_ROOT/%_libdir/mesa/bin/egl/openvg  \;
find ./src/perf/ -type f -perm -o+rx -exec %{__install}  -D -m 0755 {} $RPM_BUILD_ROOT%_libdir/mesa/bin/perf/ \;
find ./src/fp/ -type f -perm -o+rx -exec %{__install}  -D -m 0755 {} $RPM_BUILD_ROOT%_libdir/mesa/bin/fp/ \;
find ./src/glsl/ -type f -perm -o+rx -exec %{__install}  -D -m 0755 {} $RPM_BUILD_ROOT%_libdir/mesa/bin/glsl/ \;
find ./src/xdemos/ -type f -perm -o+rx -exec %{__install}  -D -m 0755 {} $RPM_BUILD_ROOT%_libdir/mesa/bin/xdemos/ \;
find ./src/demos/ -type f -perm -o+rx -exec %{__install}  -D -m 0755 {} $RPM_BUILD_ROOT%_libdir/mesa/bin/demos/ \;
find ./src/tests/ -type f -perm -o+rx -exec %{__install}  -D -m 0755 {} $RPM_BUILD_ROOT%_libdir/mesa/bin/tests/ \;
find ./src/egl/opengles2/ -type f -perm -o+rx -exec %{__install}  -D -m 0755 {} $RPM_BUILD_ROOT%_libdir/mesa/bin/egl/opengles2/  \;
find ./src/redbook/ -type f -perm -o+rx -exec %{__install}  -D -m 0755 {} $RPM_BUILD_ROOT%_libdir/mesa/bin/redbook/ \;
mv ./src/data/* $RPM_BUILD_ROOT%_libdir/mesa/data/

mkdir -p %{buildroot}/%_bindir

ln -s %{_libdir}/mesa/bin/xdemos/glxgears %{buildroot}/%_bindir/glxgears
ln -s %{_libdir}/mesa/bin/xdemos/glxinfo %{buildroot}/%_bindir/glxinfo
ln -s %{_libdir}/mesa/bin/xdemos/pbinfo %{buildroot}/%_bindir/pbinfo
ln -s %{_libdir}/mesa/bin/egl/opengles1/es1_info %{buildroot}/%_bindir/es1_info
ln -s %{_libdir}/mesa/bin/egl/opengles2/es2_info %{buildroot}/%_bindir/es2_info
ln -s %{_libdir}/mesa/bin/egl/opengl/eglinfo %{buildroot}/%_bindir/eglinfo


%dir %_libdir/mesa
%dir %_libdir/mesa/bin
%dir %_libdir/mesa/data

* Sun Aug 6 2011 pontostroy@gmail.com
- initial package