2007-01-10 01:57:03 +01:00
|
|
|
#
|
2010-12-28 23:52:04 +01:00
|
|
|
# spec file for package Mesa (Version 7.9.801)
|
2007-01-10 01:57:03 +01:00
|
|
|
#
|
2010-01-29 15:01:40 +01:00
|
|
|
# Copyright (c) 2010 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2010-03-26 00:19:38 +01:00
|
|
|
%define enable_nouveau 1
|
2008-02-25 17:29:39 +01:00
|
|
|
|
2011-01-03 15:10:24 +01:00
|
|
|
%define _version 7.9.802-96685a6
|
2010-09-28 00:04:15 +02:00
|
|
|
|
2011-01-03 15:10:24 +01:00
|
|
|
Version: 7.9.802
|
|
|
|
Release: 0
|
2010-07-19 13:29:59 +02:00
|
|
|
|
2007-01-10 01:57:03 +01:00
|
|
|
Name: Mesa
|
2009-10-02 23:34:50 +02:00
|
|
|
BuildRequires: gcc-c++ libdrm-devel libexpat-devel pkgconfig python-base xorg-x11-devel
|
2010-09-10 14:57:01 +02:00
|
|
|
BuildRequires: bison flex libtalloc-devel libxml2-python
|
2010-07-19 13:29:59 +02:00
|
|
|
%if 0%{?suse_version} > 1020
|
|
|
|
BuildRequires: fdupes
|
|
|
|
%endif
|
2007-10-31 17:10:54 +01:00
|
|
|
Url: http://www.mesa3d.org
|
2009-06-20 06:12:00 +02:00
|
|
|
License: MIT License (or similar)
|
2007-01-10 01:57:03 +01:00
|
|
|
Group: System/Libraries
|
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}
|
2007-10-31 17:10:54 +01:00
|
|
|
AutoReqProv: on
|
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
|
2010-10-07 23:21:59 +02:00
|
|
|
Source: MesaLib-%{_version}.tar.bz2
|
2010-09-28 00:04:19 +02:00
|
|
|
Source1: MesaDemos-7.8.2.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
|
2010-03-26 00:19:38 +01:00
|
|
|
# add update path for dri drivers
|
2007-01-10 01:57:03 +01:00
|
|
|
Patch1: dri_driver_dir.diff
|
2010-03-26 00:19:38 +01:00
|
|
|
# to be upstreamed
|
|
|
|
Patch8: egl-buildfix.diff
|
2010-05-25 10:35:35 +02:00
|
|
|
Patch9: Mesa_indirect_old_xserver_compatibility.diff
|
2010-11-06 09:50:48 +01:00
|
|
|
Patch11: 0001-Fix-crash-in-swrast-when-setting-a-texture-for-a-pix.patch
|
2010-09-15 06:19:54 +02:00
|
|
|
# already upstream
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Brian Paul
|
|
|
|
|
|
|
|
%package devel
|
2009-06-20 06:12:00 +02:00
|
|
|
License: MIT License (or similar)
|
2009-07-31 18:18:20 +02:00
|
|
|
Requires: Mesa = %version xorg-x11-devel libdrm-devel
|
2007-01-10 01:57:03 +01:00
|
|
|
Summary: Libraries, includes and more to develop Mesa applications
|
2010-07-19 13:29:59 +02:00
|
|
|
Group: Development/Libraries/X11
|
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
|
|
|
|
|
2010-07-19 13:29:59 +02:00
|
|
|
%package nouveau3d
|
|
|
|
License: MIT License (or similar)
|
|
|
|
Requires: Mesa = %version xorg-x11-driver-video-nouveau
|
|
|
|
Summary: Experimental 3D driver for nouveau driver
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description nouveau3d
|
|
|
|
This is the 3D driver for open source nouveau driver. It uses Gallium3d architecture within Mesa.
|
|
|
|
|
|
|
|
Note:
|
|
|
|
This driver is in a very experimental state. So it is not recommend that you use it.
|
|
|
|
Bug reports using this driver are not supported by developers.
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Brian Paul
|
|
|
|
Pekka Paalanen
|
|
|
|
Ben Skeggs
|
|
|
|
Francisco Jerez
|
|
|
|
|
2007-01-10 01:57:03 +01:00
|
|
|
%prep
|
2010-10-07 23:21:59 +02:00
|
|
|
%setup -n %{name}-%{_version} -a1 -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}
|
2007-01-10 01:57:03 +01:00
|
|
|
%patch1
|
2010-03-26 00:19:38 +01:00
|
|
|
sed -i 's/REPLACE/%_lib/g' src/glx/Makefile
|
|
|
|
sed -i 's/REPLACE/%_lib/g' src/egl/drivers/dri2/Makefile
|
|
|
|
%patch8
|
2010-05-25 10:35:35 +02:00
|
|
|
%patch9 -p0
|
2010-12-20 16:21:08 +01:00
|
|
|
%patch11 -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 \
|
2009-07-23 15:42:05 +02:00
|
|
|
--with-driver=dri \
|
|
|
|
%ifarch %ix86 x86_64
|
2010-07-19 13:29:59 +02:00
|
|
|
%if 0%{?suse_version} >= 1130
|
2010-07-23 23:34:04 +02:00
|
|
|
--with-dri-drivers=i810,i915,i965,mach64,r128,r200,r300,r600,radeon,sis,tdfx,unichrome,swrast,nouveau,mga \
|
2010-07-19 13:29:59 +02:00
|
|
|
%else
|
2010-03-26 00:19:38 +01:00
|
|
|
--with-dri-drivers=i810,i915,i965,mach64,r128,r200,r300,r600,radeon,sis,tdfx,unichrome,swrast \
|
2010-07-19 13:29:59 +02:00
|
|
|
%endif
|
2010-03-05 02:08:54 +01:00
|
|
|
%if %enable_nouveau
|
2009-07-23 15:42:05 +02:00
|
|
|
--enable-gallium-nouveau \
|
|
|
|
%endif
|
2010-03-05 02:08:54 +01:00
|
|
|
%endif
|
2010-06-18 15:38:41 +02:00
|
|
|
%ifarch ppc %sparc hppa
|
2010-07-19 13:29:59 +02:00
|
|
|
%if 0%{?suse_version} >= 1130
|
|
|
|
--with-dri-drivers=i810,i915,i965,mach64,r128,r200,r300,r600,radeon,tdfx,unichrome,swrast,nouveau \
|
|
|
|
%else
|
2010-03-26 00:19:38 +01:00
|
|
|
--with-dri-drivers=i810,i915,i965,mach64,r128,r200,r300,r600,radeon,tdfx,unichrome,swrast \
|
2008-07-11 22:03:53 +02:00
|
|
|
%endif
|
2010-10-08 22:46:22 +02:00
|
|
|
%if %enable_nouveau
|
|
|
|
--enable-gallium-nouveau \
|
|
|
|
%endif
|
2010-07-19 13:29:59 +02:00
|
|
|
%endif
|
2008-07-11 22:03:53 +02:00
|
|
|
%ifarch s390 s390x
|
|
|
|
--with-dri-drivers=swrast \
|
2009-08-06 17:44:49 +02:00
|
|
|
%endif
|
|
|
|
%ifarch %arm
|
|
|
|
--with-dri-drivers=swrast \
|
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"
|
|
|
|
make %{?jobs:-j%jobs}
|
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 \
|
2009-10-12 11:17:03 +02:00
|
|
|
--disable-gallium \
|
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
|
2010-04-13 21:18:15 +02:00
|
|
|
make %{?jobs:-j%jobs}
|
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
|
2009-12-16 09:22:00 +01:00
|
|
|
make %{?jobs:-j%jobs};
|
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
|
|
|
%if 0%{?suse_version} > 1020
|
|
|
|
%fdupes -s $RPM_BUILD_ROOT/%_mandir
|
|
|
|
%endif
|
2007-01-10 01:57:03 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2007-05-26 15:46:09 +02:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
2007-01-10 01:57:03 +01:00
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%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}/lib*.so.*
|
|
|
|
%{_libdir}/dri/
|
|
|
|
%{_libdir}/egl/
|
|
|
|
%exclude %{_libdir}/dri/nouveau_dri.so
|
|
|
|
%if 0%{?suse_version} >= 1130
|
|
|
|
%exclude %{_libdir}/dri/nouveau_vieux_dri.so
|
|
|
|
%endif
|
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
|
2010-07-19 13:29:59 +02:00
|
|
|
%{_includedir}/GL
|
|
|
|
%{_includedir}/EGL
|
|
|
|
%{_includedir}/KHR
|
|
|
|
%exclude %{_includedir}/GL/glew.h
|
|
|
|
%exclude %{_includedir}/GL/glxew.h
|
|
|
|
%exclude %{_includedir}/GL/wglew.h
|
|
|
|
%{_libdir}/libGL.so
|
|
|
|
%{_libdir}/libGLU.so
|
|
|
|
%{_libdir}/libOSMesa.so
|
|
|
|
%{_libdir}/libEGL.so
|
|
|
|
%{_libdir}/pkgconfig/dri.pc
|
2010-08-29 05:10:42 +02:00
|
|
|
%{_libdir}/pkgconfig/egl.pc
|
2010-07-19 13:29:59 +02:00
|
|
|
%{_libdir}/pkgconfig/gl.pc
|
|
|
|
%{_libdir}/pkgconfig/glu.pc
|
2007-01-10 01:57:03 +01:00
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
2010-07-19 13:29:59 +02:00
|
|
|
%files nouveau3d
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/dri/nouveau_dri.so
|
|
|
|
%if 0%{?suse_version} >= 1130
|
|
|
|
%{_libdir}/dri/nouveau_vieux_dri.so
|
|
|
|
%endif
|
|
|
|
|
2007-03-15 01:44:44 +01:00
|
|
|
%changelog
|