2007-01-10 01:57:03 +01:00
|
|
|
#
|
2011-04-27 09:08:15 +02:00
|
|
|
# spec file for package Mesa
|
2007-01-10 01:57:03 +01:00
|
|
|
#
|
2012-02-09 21:16:37 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-10 01:57:03 +01:00
|
|
|
#
|
2008-08-11 23:05:30 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-10 01:57:03 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2012-02-09 21:16:37 +01:00
|
|
|
#
|
|
|
|
|
2012-02-16 16:19:01 +01:00
|
|
|
|
2007-01-10 01:57:03 +01:00
|
|
|
#
|
2011-11-18 11:37:18 +01:00
|
|
|
%define _version 7.11.1
|
2008-02-25 17:29:39 +01:00
|
|
|
|
2011-11-18 11:37:18 +01:00
|
|
|
Version: 7.11.1
|
2011-12-01 12:25:10 +01:00
|
|
|
Release: 0
|
2010-07-19 13:29:59 +02:00
|
|
|
|
2007-01-10 01:57:03 +01:00
|
|
|
Name: Mesa
|
2012-02-13 11:05:48 +01:00
|
|
|
BuildRequires: autoconf >= 2.59
|
2011-12-01 12:25:10 +01:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libexpat-devel
|
|
|
|
BuildRequires: libtalloc-devel
|
2012-02-13 11:05:48 +01:00
|
|
|
BuildRequires: libtool
|
2011-12-01 12:25:10 +01:00
|
|
|
BuildRequires: libxml2-python
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: python-base
|
2012-02-09 21:16:37 +01:00
|
|
|
BuildRequires: xorg-x11-util-devel
|
2012-02-13 11:05:48 +01:00
|
|
|
BuildRequires: pkgconfig(dri2proto) >= 2.1
|
|
|
|
BuildRequires: pkgconfig(glproto) >= 1.4.11
|
|
|
|
BuildRequires: pkgconfig(libdrm) >= 2.4.24
|
|
|
|
BuildRequires: pkgconfig(libdrm_intel) >= 2.4.24
|
|
|
|
BuildRequires: pkgconfig(libdrm_nouveau) >= 0.6
|
|
|
|
BuildRequires: pkgconfig(libdrm_radeon) >= 2.4.24
|
|
|
|
BuildRequires: pkgconfig(libudev) > 150
|
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(x11-xcb)
|
|
|
|
BuildRequires: pkgconfig(xcb-dri2)
|
|
|
|
BuildRequires: pkgconfig(xcb-glx)
|
|
|
|
BuildRequires: pkgconfig(xdamage)
|
|
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
BuildRequires: pkgconfig(xfixes)
|
|
|
|
BuildRequires: pkgconfig(xxf86vm)
|
2011-09-05 11:56:52 +02:00
|
|
|
%ifarch %ix86 x86_64
|
2011-09-06 14:53:53 +02:00
|
|
|
BuildRequires: llvm-devel
|
2011-09-05 11:56:52 +02:00
|
|
|
%endif
|
2007-10-31 17:10:54 +01:00
|
|
|
Url: http://www.mesa3d.org
|
2010-07-19 13:29:59 +02:00
|
|
|
Provides: xorg-x11-Mesa = %{version} intel-i810-Mesa = %{version} Mesa7 = %{version}
|
|
|
|
Obsoletes: xorg-x11-Mesa < %{version} intel-i810-Mesa < %{version} Mesa7 < %{version}
|
2011-09-01 13:33:29 +02:00
|
|
|
Obsoletes: Mesa-nouveau3d
|
2008-11-03 12:26:40 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
2010-07-19 13:29:59 +02:00
|
|
|
Obsoletes: XFree86-Mesa-64bit < %{version} Mesa-64bit < %{version}
|
|
|
|
Provides: XFree86-Mesa-64bit = %{version} Mesa-64bit < %{version}
|
2008-11-03 12:26:40 +01:00
|
|
|
%endif
|
|
|
|
#
|
2010-07-19 13:29:59 +02:00
|
|
|
Summary: System for rendering interactive 3-D graphics
|
2012-02-13 11:05:48 +01:00
|
|
|
License: MIT
|
|
|
|
Group: System/Libraries
|
2010-10-07 23:21:59 +02:00
|
|
|
Source: MesaLib-%{_version}.tar.bz2
|
2009-12-16 09:22:00 +01:00
|
|
|
Source2: baselibs.conf
|
2007-01-10 01:57:03 +01:00
|
|
|
Source3: README.updates
|
|
|
|
Source4: manual-pages.tar.bz2
|
2008-11-18 13:30:46 +01:00
|
|
|
Source5: drirc
|
2012-02-21 11:57:47 +01:00
|
|
|
Source6: %name-rpmlintrc
|
2010-03-26 00:19:38 +01:00
|
|
|
# to be upstreamed
|
2011-06-10 12:03:49 +02:00
|
|
|
Patch9: u_GLX-SWrast-Make-GLX-with-SWrast-enabled-work-on-olde.patch
|
|
|
|
Patch11: u_Fix-crash-in-swrast-when-setting-a-texture-for-a-pix.patch
|
2010-09-15 06:19:54 +02:00
|
|
|
# already upstream
|
2011-09-01 13:33:29 +02:00
|
|
|
Patch13: U_Mesa-7.11-llvm3.patch
|
2011-09-15 08:53:21 +02:00
|
|
|
Patch15: Mesa-llvm-3.0.patch
|
2007-01-10 01:57:03 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Mesa is a 3-D graphics library with an API which is very similar to
|
|
|
|
that of OpenGL.* To the extent that Mesa utilizes the OpenGL command
|
|
|
|
syntax or state machine, it is being used with authorization from
|
|
|
|
Silicon Graphics, Inc.(SGI). However, the author does not possess an
|
|
|
|
OpenGL license from SGI, and makes no claim that Mesa is in any way a
|
|
|
|
compatible replacement for OpenGL or associated with SGI. Those who
|
|
|
|
want a licensed implementation of OpenGL should contact a licensed
|
|
|
|
vendor.
|
|
|
|
|
|
|
|
Please do not refer to the library as MesaGL (for legal reasons). It's
|
|
|
|
just Mesa or The Mesa 3-D graphics library.
|
|
|
|
|
|
|
|
* OpenGL is a trademark of Silicon Graphics Incorporated.
|
|
|
|
|
2012-02-21 11:57:47 +01:00
|
|
|
%package -n Mesa-libEGL1
|
|
|
|
# Kudos to Debian for the descriptions
|
|
|
|
Summary: Free implementation of the EGL API
|
|
|
|
Group: System/Libraries
|
2007-01-10 01:57:03 +01:00
|
|
|
|
2012-02-21 11:57:47 +01:00
|
|
|
%description -n Mesa-libEGL1
|
|
|
|
This package contains the EGL native platform graphics interface
|
|
|
|
library. EGL provides a platform-agnostic mechanism for creating
|
|
|
|
rendering surfaces for use with other graphics libraries, such as
|
|
|
|
OpenGL|ES and OpenVG.
|
2007-01-10 01:57:03 +01:00
|
|
|
|
2012-02-21 11:57:47 +01:00
|
|
|
This package contains modules to interface with the existing system
|
|
|
|
GLX or DRI2 drivers to provide OpenGL via EGL. The Mesa main package
|
|
|
|
provides drivers to provide hardware-accelerated OpenGL|ES and OpenVG
|
|
|
|
support.
|
|
|
|
|
|
|
|
%package -n Mesa-libEGL-devel
|
|
|
|
Summary: Development files for the EGL API
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: Mesa-libEGL1 = %version
|
|
|
|
# Other requires taken care of by pkgconfig already
|
|
|
|
|
|
|
|
%description -n Mesa-libEGL-devel
|
|
|
|
This package contains the development environment required for
|
|
|
|
compiling programs against EGL native platform graphics interface
|
|
|
|
library. EGL provides a platform-agnostic mechanism for creating
|
|
|
|
rendering surfaces for use with other graphics libraries, such as
|
|
|
|
OpenGL|ES and OpenVG.
|
|
|
|
|
|
|
|
This package provides the development environment for compiling
|
|
|
|
programs against the EGL library.
|
|
|
|
|
|
|
|
%package -n Mesa-libGL1
|
|
|
|
Summary: The GL/GLX runtime of the Mesa 3D graphics library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n Mesa-libGL1
|
|
|
|
Mesa is a software library for 3D computer graphics that provides a
|
|
|
|
generic OpenGL implementation for rendering three-dimensional
|
|
|
|
graphics.
|
|
|
|
|
|
|
|
GLX ("OpenGL Extension to the X Window System") provides the
|
|
|
|
interface connecting OpenGL and the X Window System: it enables
|
|
|
|
programs wishing to use OpenGL to do so within a window provided by
|
|
|
|
the X Window System.
|
|
|
|
|
|
|
|
%package -n Mesa-libGL-devel
|
|
|
|
Summary: GL/GLX development files of the OpenGL API
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: Mesa-libGL1 = %version
|
|
|
|
|
|
|
|
%description -n Mesa-libGL-devel
|
|
|
|
Mesa is a software library for 3D computer graphics that provides a
|
|
|
|
generic OpenGL implementation for rendering three-dimensional
|
|
|
|
graphics.
|
|
|
|
|
|
|
|
This package includes headers and static libraries for compiling
|
|
|
|
programs with Mesa.
|
|
|
|
|
|
|
|
%package -n Mesa-libGLESv1_CM1
|
|
|
|
Summary: Free implementation of the OpenGL|ES 1.x API
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n Mesa-libGLESv1_CM1
|
|
|
|
OpenGL|ES is a cross-platform API for full-function 2D and 3D
|
|
|
|
graphics on embedded systems - including consoles, phones, appliances
|
|
|
|
and vehicles. It contains a subset of OpenGL plus a number of
|
|
|
|
extensions for the special needs of embedded systems.
|
|
|
|
|
|
|
|
OpenGL|ES 1.x provides an API for fixed-function hardware.
|
|
|
|
|
|
|
|
%package -n Mesa-libGLESv1_CM-devel
|
|
|
|
Summary: Development files for the EGL API
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: Mesa-libGLESv1_CM1 = %version
|
|
|
|
Requires: pkgconfig(egl)
|
|
|
|
|
|
|
|
%description -n Mesa-libGLESv1_CM-devel
|
|
|
|
OpenGL|ES is a cross-platform API for full-function 2D and 3D
|
|
|
|
graphics on embedded systems - including consoles, phones, appliances
|
|
|
|
and vehicles. It contains a subset of OpenGL plus a number of
|
|
|
|
extensions for the special needs of embedded systems.
|
|
|
|
|
|
|
|
OpenGL|ES 1.x provides an API for fixed-function hardware.
|
|
|
|
|
|
|
|
This package provides a development environment for building programs
|
|
|
|
using the OpenGL|ES 1.x APIs.
|
|
|
|
|
|
|
|
%package -n Mesa-libGLESv2-2
|
|
|
|
Summary: Free implementation of the OpenGL|ES 2.x API
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n Mesa-libGLESv2-2
|
|
|
|
OpenGL|ES is a cross-platform API for full-function 2D and 3D
|
|
|
|
graphics on embedded systems - including consoles, phones, appliances
|
|
|
|
and vehicles. It contains a subset of OpenGL plus a number of
|
|
|
|
extensions for the special needs of embedded systems.
|
|
|
|
|
|
|
|
OpenGL|ES 2.x provides an API for programmable hardware including
|
|
|
|
vertex and fragment shaders.
|
|
|
|
|
|
|
|
%package -n Mesa-libGLESv2-devel
|
|
|
|
Summary: Development files for the EGL API
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: Mesa-libGLESv2-2 = %version
|
|
|
|
Requires: pkgconfig(egl)
|
|
|
|
|
|
|
|
%description -n Mesa-libGLESv2-devel
|
|
|
|
OpenGL|ES is a cross-platform API for full-function 2D and 3D
|
|
|
|
graphics on embedded systems - including consoles, phones, appliances
|
|
|
|
and vehicles. It contains a subset of OpenGL plus a number of
|
|
|
|
extensions for the special needs of embedded systems.
|
|
|
|
|
|
|
|
OpenGL|ES 2.x provides an API for programmable hardware including
|
|
|
|
vertex and fragment shaders.
|
|
|
|
|
|
|
|
This package provides a development environment for building
|
|
|
|
applications using the OpenGL|ES 2.x APIs.
|
|
|
|
|
|
|
|
%package -n Mesa-libGLU1
|
|
|
|
Summary: Mesa OpenGL utility library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n Mesa-libGLU1
|
|
|
|
GLU offers simple interfaces for building mipmaps; checking for the
|
|
|
|
presence of extensions in the OpenGL (or other libraries which follow
|
|
|
|
the same conventions for advertising extensions); drawing
|
|
|
|
piecewise-linear curves, NURBS, quadrics and other primitives
|
|
|
|
(including, but not limited to, teapots); tesselating surfaces;
|
|
|
|
setting up projection matrices and unprojecting screen coordinates to
|
|
|
|
world coordinates.
|
|
|
|
|
|
|
|
This package provides the SGI implementation of GLU shipped with the
|
|
|
|
Mesa package.
|
|
|
|
|
|
|
|
%package -n Mesa-libGLU-devel
|
|
|
|
Summary: Development files for the EGL API
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: Mesa-libGLU1 = %version
|
|
|
|
|
|
|
|
%description -n Mesa-libGLU-devel
|
|
|
|
GLU offers simple interfaces for building mipmaps; checking for the
|
|
|
|
presence of extensions in the OpenGL (or other libraries which follow
|
|
|
|
the same conventions for advertising extensions); drawing
|
|
|
|
piecewise-linear curves, NURBS, quadrics and other primitives
|
|
|
|
(including, but not limited to, teapots); tesselating surfaces;
|
|
|
|
setting up projection matrices and unprojecting screen coordinates to
|
|
|
|
world coordinates.
|
|
|
|
|
|
|
|
This package contains includes headers and static libraries for
|
|
|
|
compiling programs with GLU.
|
|
|
|
|
|
|
|
%package -n Mesa-libIndirectGL1
|
|
|
|
# This is the equivalent to Debian's libgl1-mesa-swx11
|
|
|
|
Summary: Free implementation of the OpenGL API
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n Mesa-libIndirectGL1
|
|
|
|
This library provides a pure software rasterizer; it does not provide
|
|
|
|
a direct rendering capable library, or one which uses GLX. For that,
|
|
|
|
please see Mesa-libGL1.
|
|
|
|
|
|
|
|
%package -n libOSMesa7
|
|
|
|
Summary: Mesa Off-screen rendering extension
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libOSMesa7
|
|
|
|
OSmesa is a Mesa extension that allows programs to render to an
|
|
|
|
off-screen buffer using the OpenGL API without having to create a
|
|
|
|
rendering context on an X Server. It uses a pure software renderer.
|
|
|
|
|
|
|
|
%package -n libgbm1
|
|
|
|
Summary: Generic buffer management API
|
|
|
|
Group: System/Libraries
|
|
|
|
# as per gbm.pc
|
|
|
|
Version: 0.0.0
|
|
|
|
Release: 0
|
|
|
|
|
|
|
|
%description -n libgbm1
|
|
|
|
This package contains the GBM buffer management library. It provides
|
|
|
|
a mechanism for allocating buffers for graphics rendering tied to
|
|
|
|
Mesa.
|
|
|
|
|
|
|
|
GBM is intended to be used as a native platform for EGL on drm or
|
|
|
|
openwfd.
|
|
|
|
|
|
|
|
%package -n libgbm-devel
|
|
|
|
Summary: Development files for the EGL API
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Version: 0.0.0
|
|
|
|
Release: 0
|
|
|
|
Requires: libgbm1 = %version
|
|
|
|
|
|
|
|
%description -n libgbm-devel
|
|
|
|
This package contains the GBM buffer management library. It provides
|
|
|
|
a mechanism for allocating buffers for graphics rendering tied to
|
|
|
|
Mesa.
|
|
|
|
|
|
|
|
GBM is intended to be used as a native platform for EGL on drm or
|
|
|
|
openwfd.
|
|
|
|
|
|
|
|
This package provides the development environment for compiling
|
|
|
|
programs against the GBM library.
|
|
|
|
|
|
|
|
%package -n Mesa-libglapi0
|
|
|
|
Summary: Free implementation of the GL API
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n Mesa-libglapi0
|
|
|
|
The Mesa GL API module is responsible for dispatching all the gl*
|
|
|
|
functions. It is intended to be mainly used by the Mesa-libGLES*
|
|
|
|
packages.
|
2007-01-10 01:57:03 +01:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Libraries, includes and more to develop Mesa applications
|
2010-07-19 13:29:59 +02:00
|
|
|
Group: Development/Libraries/X11
|
2012-02-21 11:57:47 +01:00
|
|
|
Requires: Mesa = %version, Mesa-libEGL-devel = %version
|
|
|
|
Requires: Mesa-libGL-devel = %version, Mesa-libGLESv1_CM-devel = %version
|
|
|
|
Requires: Mesa-libGLESv2-devel = %version, Mesa-libGLU-devel = %version
|
|
|
|
Requires: Mesa-libIndirectGL1 = %version, libOSMesa7 = %version
|
|
|
|
Requires: libgbm-devel, Mesa-libglapi0 = %version
|
2008-11-03 12:26:40 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
2010-07-19 13:29:59 +02:00
|
|
|
Obsoletes: XFree86-Mesa-devel-64bit < %{version} Mesa-devel-64bit < %{version}
|
|
|
|
Provides: XFree86-Mesa-devel-64bit = %{version} Mesa-devel-64bit = %{version}
|
2008-11-03 12:26:40 +01:00
|
|
|
%endif
|
|
|
|
#
|
2010-07-19 13:29:59 +02:00
|
|
|
Provides: xorg-x11-Mesa-devel = %{version} Mesa-devel-static = %{version}
|
|
|
|
Obsoletes: xorg-x11-Mesa-devel < %{version} Mesa-devel-static < %{version}
|
2007-01-10 01:57:03 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Mesa is a 3-D graphics library with an API which is very similar to
|
|
|
|
that of OpenGL.* To the extent that Mesa utilizes the OpenGL command
|
|
|
|
syntax or state machine, it is being used with authorization from
|
|
|
|
Silicon Graphics, Inc.(SGI). However, the author does not possess an
|
|
|
|
OpenGL license from SGI, and makes no claim that Mesa is in any way a
|
|
|
|
compatible replacement for OpenGL or associated with SGI. Those who
|
|
|
|
want a licensed implementation of OpenGL should contact a licensed
|
|
|
|
vendor.
|
|
|
|
|
|
|
|
Please do not refer to the library as MesaGL (for legal reasons). It's
|
|
|
|
just Mesa or The Mesa 3-D graphics library.
|
|
|
|
|
|
|
|
* OpenGL is a trademark of Silicon Graphics Incorporated.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Brian Paul
|
|
|
|
|
|
|
|
%prep
|
2011-06-16 17:59:28 +02:00
|
|
|
%setup -n %{name}-%{_version} -b4 -q
|
2008-07-08 22:21:48 +02:00
|
|
|
# no need to build (GLUT-)Demos
|
2007-05-04 00:38:27 +02:00
|
|
|
rm -rf src/glut progs/{demos,redbook,samples,xdemos,glsl}
|
2007-01-10 01:57:03 +01:00
|
|
|
# we use freeglut
|
|
|
|
rm -f include/GL/{glut.h,uglglutshapes.h,glutf90.h}
|
2010-07-19 13:29:59 +02:00
|
|
|
# remove some docs
|
|
|
|
rm -rf docs/README.{VMS,WIN32,OS2}
|
2011-06-10 12:03:49 +02:00
|
|
|
%patch9 -p1
|
2010-12-20 16:21:08 +01:00
|
|
|
%patch11 -p1
|
2011-07-29 12:17:32 +02:00
|
|
|
%patch13 -p0
|
2011-09-09 17:37:55 +02:00
|
|
|
%patch15 -p1
|
|
|
|
|
2007-01-10 01:57:03 +01:00
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2010-03-26 00:19:38 +01:00
|
|
|
rm -f src/mesa/depend
|
2010-09-09 14:48:30 +02:00
|
|
|
export TALLOC_LIBS=-ltalloc
|
|
|
|
export TALLOC_CFLAGS="-I/usr/include"
|
2009-03-26 17:25:45 +01:00
|
|
|
autoreconf -fi
|
2010-07-23 23:34:04 +02:00
|
|
|
### libGL (disable savage/mga, bnc #402132/#403071; reenable mga, bnc #466635)
|
2008-07-08 22:21:48 +02:00
|
|
|
%configure --disable-glw \
|
2011-07-29 12:17:32 +02:00
|
|
|
--enable-gles1 \
|
2011-06-10 12:03:49 +02:00
|
|
|
--enable-gles2 \
|
2009-07-23 15:42:05 +02:00
|
|
|
--with-driver=dri \
|
2011-09-21 14:13:27 +02:00
|
|
|
--with-egl-platforms=x11,drm \
|
|
|
|
--enable-shared-glapi \
|
2011-06-10 12:03:49 +02:00
|
|
|
--with-dri-searchpath=/usr/%{_lib}/dri/updates:/usr/%{_lib}/dri \
|
2009-07-23 15:42:05 +02:00
|
|
|
%ifarch %ix86 x86_64
|
2011-07-29 12:17:32 +02:00
|
|
|
--with-dri-drivers=i810,i915,i965,mach64,r128,r200,radeon,sis,tdfx,unichrome,swrast,mga \
|
2010-07-19 13:29:59 +02:00
|
|
|
%if 0%{?suse_version} >= 1130
|
2011-07-29 12:17:32 +02:00
|
|
|
--with-gallium-drivers=r300,r600,nouveau \
|
2010-07-19 13:29:59 +02:00
|
|
|
%else
|
2011-07-29 12:17:32 +02:00
|
|
|
--with-gallium-drivers=r300,r600 \
|
2011-04-21 11:07:18 +02:00
|
|
|
%endif
|
2010-03-05 02:08:54 +01:00
|
|
|
%endif
|
2011-07-28 15:29:40 +02:00
|
|
|
%ifarch ppc ppc64 %sparc hppa
|
2011-07-29 12:17:32 +02:00
|
|
|
--with-dri-drivers=i810,i915,i965,mach64,r128,r200,radeon,tdfx,unichrome,swrast \
|
2010-07-19 13:29:59 +02:00
|
|
|
%if 0%{?suse_version} >= 1130
|
2011-07-29 12:17:32 +02:00
|
|
|
--with-gallium-drivers=r300,r600,nouveau \
|
2010-07-19 13:29:59 +02:00
|
|
|
%else
|
2011-07-29 12:17:32 +02:00
|
|
|
--with-gallium-drivers=r300,r600 \
|
2010-10-08 22:46:22 +02:00
|
|
|
%endif
|
2010-07-19 13:29:59 +02:00
|
|
|
%endif
|
2011-07-29 12:17:32 +02:00
|
|
|
%ifarch s390 s390x %arm
|
2009-08-06 17:44:49 +02:00
|
|
|
--with-dri-drivers=swrast \
|
2011-07-29 12:17:32 +02:00
|
|
|
--with-gallium-drivers="" \
|
2008-07-08 22:21:48 +02:00
|
|
|
%endif
|
2009-10-12 11:17:03 +02:00
|
|
|
--disable-glut \
|
2010-04-13 21:18:15 +02:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
|
2012-02-13 11:05:48 +01:00
|
|
|
make %{?_smp_mflags}
|
2008-07-08 22:21:48 +02:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2007-01-19 01:13:19 +01:00
|
|
|
# build and install Indirect Rendering only libGL
|
|
|
|
make realclean
|
2008-07-08 22:21:48 +02:00
|
|
|
%configure --with-driver=xlib \
|
|
|
|
--disable-glu \
|
|
|
|
--disable-glw \
|
2009-07-23 15:42:05 +02:00
|
|
|
--disable-glut \
|
2011-07-29 12:17:32 +02:00
|
|
|
--with-gallium-drivers="" \
|
2010-04-13 21:18:15 +02:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
|
2008-07-08 22:21:48 +02:00
|
|
|
sed -i 's/GL_LIB = .*/GL_LIB = IndirectGL/g' configs/autoconf
|
2012-02-13 11:05:48 +01:00
|
|
|
make %{?_smp_mflags}
|
2009-07-23 15:42:05 +02:00
|
|
|
cp -a %{_lib}/libIndirectGL.so.* %{_lib}/libOSMesa.so* \
|
|
|
|
$RPM_BUILD_ROOT/usr/%{_lib}
|
2007-01-10 01:57:03 +01:00
|
|
|
for dir in ../xc/doc/man/{GL/gl,GL/glx,GLU}; do
|
|
|
|
pushd $dir
|
|
|
|
xmkmf -a
|
2012-02-13 11:05:48 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-10 01:57:03 +01:00
|
|
|
make install.man DESTDIR=$RPM_BUILD_ROOT MANPATH=%{_mandir} LIBMANSUFFIX=3gl
|
|
|
|
popd
|
|
|
|
done
|
|
|
|
# DRI driver update mechanism
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/dri/updates
|
|
|
|
install -m 644 $RPM_SOURCE_DIR/README.updates \
|
|
|
|
$RPM_BUILD_ROOT/usr/%{_lib}/dri/updates
|
2008-11-18 13:30:46 +01:00
|
|
|
# global drirc file
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc
|
|
|
|
install -m 644 $RPM_SOURCE_DIR/drirc $RPM_BUILD_ROOT/etc
|
2010-07-19 13:29:59 +02:00
|
|
|
%fdupes -s $RPM_BUILD_ROOT/%_mandir
|
2007-01-10 01:57:03 +01:00
|
|
|
|
2012-02-21 11:57:47 +01:00
|
|
|
%post -p /sbin/ldconfig
|
2012-02-21 12:52:23 +01:00
|
|
|
|
2007-01-10 01:57:03 +01:00
|
|
|
%postun -p /sbin/ldconfig
|
2012-02-21 12:52:23 +01:00
|
|
|
|
2012-02-21 11:57:47 +01:00
|
|
|
%post -n Mesa-libEGL1 -p /sbin/ldconfig
|
2012-02-21 12:52:23 +01:00
|
|
|
|
2012-02-21 11:57:47 +01:00
|
|
|
%postun -n Mesa-libEGL1 -p /sbin/ldconfig
|
2012-02-21 12:52:23 +01:00
|
|
|
|
2012-02-21 11:57:47 +01:00
|
|
|
%post -n Mesa-libGL1 -p /sbin/ldconfig
|
2012-02-21 12:52:23 +01:00
|
|
|
|
2012-02-21 11:57:47 +01:00
|
|
|
%postun -n Mesa-libGL1 -p /sbin/ldconfig
|
2012-02-21 12:52:23 +01:00
|
|
|
|
2012-02-21 11:57:47 +01:00
|
|
|
%post -n Mesa-libGLESv1_CM1 -p /sbin/ldconfig
|
2012-02-21 12:52:23 +01:00
|
|
|
|
2012-02-21 11:57:47 +01:00
|
|
|
%postun -n Mesa-libGLESv1_CM1 -p /sbin/ldconfig
|
2012-02-21 12:52:23 +01:00
|
|
|
|
2012-02-21 11:57:47 +01:00
|
|
|
%post -n Mesa-libGLESv2-2 -p /sbin/ldconfig
|
2012-02-21 12:52:23 +01:00
|
|
|
|
2012-02-21 11:57:47 +01:00
|
|
|
%postun -n Mesa-libGLESv2-2 -p /sbin/ldconfig
|
2012-02-21 12:52:23 +01:00
|
|
|
|
2012-02-21 11:57:47 +01:00
|
|
|
%post -n Mesa-libGLU1 -p /sbin/ldconfig
|
2012-02-21 12:52:23 +01:00
|
|
|
|
2012-02-21 11:57:47 +01:00
|
|
|
%postun -n Mesa-libGLU1 -p /sbin/ldconfig
|
2012-02-21 12:52:23 +01:00
|
|
|
|
2012-02-21 11:57:47 +01:00
|
|
|
%post -n Mesa-libIndirectGL1 -p /sbin/ldconfig
|
2012-02-21 12:52:23 +01:00
|
|
|
|
2012-02-21 11:57:47 +01:00
|
|
|
%postun -n Mesa-libIndirectGL1 -p /sbin/ldconfig
|
2012-02-21 12:52:23 +01:00
|
|
|
|
2012-02-21 11:57:47 +01:00
|
|
|
%post -n libOSMesa7 -p /sbin/ldconfig
|
2012-02-21 12:52:23 +01:00
|
|
|
|
2012-02-21 11:57:47 +01:00
|
|
|
%postun -n libOSMesa7 -p /sbin/ldconfig
|
2012-02-21 12:52:23 +01:00
|
|
|
|
2012-02-21 11:57:47 +01:00
|
|
|
%post -n libgbm1 -p /sbin/ldconfig
|
2012-02-21 12:52:23 +01:00
|
|
|
|
2012-02-21 11:57:47 +01:00
|
|
|
%postun -n libgbm1 -p /sbin/ldconfig
|
2012-02-21 12:52:23 +01:00
|
|
|
|
2012-02-21 11:57:47 +01:00
|
|
|
%post -n Mesa-libglapi0 -p /sbin/ldconfig
|
2012-02-21 12:52:23 +01:00
|
|
|
|
2012-02-21 11:57:47 +01:00
|
|
|
%postun -n Mesa-libglapi0 -p /sbin/ldconfig
|
2007-01-10 01:57:03 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2007-05-27 00:24:09 +02:00
|
|
|
%doc docs/README* docs/COPYING
|
2008-11-18 13:30:46 +01:00
|
|
|
%config /etc/drirc
|
2010-07-19 13:29:59 +02:00
|
|
|
%{_libdir}/dri/
|
2011-07-29 12:17:32 +02:00
|
|
|
#%{_libdir}/egl/
|
2007-01-10 01:57:03 +01:00
|
|
|
|
2012-02-21 11:57:47 +01:00
|
|
|
%files -n Mesa-libEGL1
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libEGL.so.1*
|
|
|
|
|
|
|
|
%files -n Mesa-libEGL-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/EGL
|
|
|
|
%_includedir/KHR
|
|
|
|
%_libdir/libEGL.so
|
|
|
|
%_libdir/pkgconfig/egl.pc
|
|
|
|
|
|
|
|
%files -n Mesa-libGL1
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libGL.so.1*
|
|
|
|
|
|
|
|
%files -n Mesa-libGL-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %_includedir/GL
|
|
|
|
%_includedir/GL/*.h
|
|
|
|
%exclude %_includedir/GL/glu*.h
|
|
|
|
%_libdir/libGL.so
|
|
|
|
%_libdir/pkgconfig/gl.pc
|
|
|
|
%_mandir/man3/gl[A-Z]*
|
|
|
|
|
|
|
|
%files -n Mesa-libGLESv1_CM1
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libGLESv1_CM.so.1*
|
|
|
|
|
|
|
|
%files -n Mesa-libGLESv1_CM-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/GLES
|
|
|
|
%_libdir/libGLESv1_CM.so
|
|
|
|
%_libdir/pkgconfig/glesv1_cm.pc
|
|
|
|
|
|
|
|
%files -n Mesa-libGLESv2-2
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libGLESv2.so.2*
|
|
|
|
|
|
|
|
%files -n Mesa-libGLESv2-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/GLES2
|
|
|
|
%_libdir/libGLESv2.so
|
|
|
|
%_libdir/pkgconfig/glesv2.pc
|
|
|
|
|
|
|
|
%files -n Mesa-libGLU1
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libGLU.so.1*
|
|
|
|
|
|
|
|
%files -n Mesa-libGLU-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %_includedir/GL
|
|
|
|
%_includedir/GL/glu*.h
|
|
|
|
%_libdir/libGLU.so
|
|
|
|
%_libdir/pkgconfig/glu.pc
|
|
|
|
%_mandir/man3/glu*
|
|
|
|
|
|
|
|
%files -n Mesa-libIndirectGL1
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libIndirectGL.so.1*
|
|
|
|
|
|
|
|
%files -n libOSMesa7
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libOSMesa.so.7*
|
|
|
|
|
|
|
|
%files -n libgbm1
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libgbm.so.1*
|
|
|
|
|
|
|
|
%files -n libgbm-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/gbm.h
|
|
|
|
%_libdir/libgbm.so
|
|
|
|
%_libdir/pkgconfig/gbm.pc
|
|
|
|
|
|
|
|
%files -n Mesa-libglapi0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libglapi.so.0*
|
|
|
|
|
2007-01-10 01:57:03 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2007-05-27 00:24:09 +02:00
|
|
|
%doc docs/*.html docs/*.spec
|
2012-02-21 11:57:47 +01:00
|
|
|
%_includedir/GL/internal
|
|
|
|
%_libdir/libOSMesa.so
|
|
|
|
%_libdir/libglapi.so
|
|
|
|
%_libdir/pkgconfig/dri.pc
|
2007-01-10 01:57:03 +01:00
|
|
|
|
2007-03-15 01:44:44 +01:00
|
|
|
%changelog
|