2005-09-13 21:19:53 +00:00
|
|
|
#!/bin/bash
|
2006-02-04 13:22:10 +00:00
|
|
|
# NOTE: Yes, this spec file is a horrible mess. Mesa's buildsystem
|
|
|
|
# currently leaves a lot to be desired, so we hack around it in the rpm
|
|
|
|
# spec file with various hacks and kludges, which are further complicated
|
|
|
|
# by needing it to build on all 7 RHEL/Fedora architectures, with and
|
|
|
|
# without DRI enabled via conditional. Lots of fun. Patches to improve
|
|
|
|
# either Mesa, or the spec file are welcome bugzilla submissions however.
|
2005-09-13 21:19:53 +00:00
|
|
|
|
2005-09-12 18:32:57 +00:00
|
|
|
# NOTE: Build target macros: For now, we will just use build_fc and
|
|
|
|
# build_rhel to simplify things, until there is a reason to break it
|
|
|
|
# into per-release macros. Only 1 of these macros should be enabled.
|
|
|
|
%define build_fc 1
|
|
|
|
%define build_rhel 0
|
|
|
|
|
|
|
|
#-- DRI Build Configuration ------------------------------------------
|
|
|
|
# NOTE: Enable DRI on PPC for Fedora Core Mac users, but disable on
|
|
|
|
# RHEL for improved stability, as DRI isn't really that important
|
|
|
|
# on server platforms.
|
|
|
|
%if %{build_fc}
|
2005-11-01 21:49:43 +00:00
|
|
|
%define with_dri_ppc 1
|
2005-09-12 18:32:57 +00:00
|
|
|
%endif
|
|
|
|
%if %{build_rhel}
|
|
|
|
%define with_dri_ppc 0
|
|
|
|
%endif
|
|
|
|
# Define arches to make with_dri enabled by default
|
|
|
|
%ifarch %{ix86} x86_64 ia64 alpha
|
2005-09-12 18:27:33 +00:00
|
|
|
%define with_dri 1
|
2005-09-12 18:32:57 +00:00
|
|
|
%endif
|
|
|
|
# Define PPC OS variant override.
|
|
|
|
%ifarch ppc
|
|
|
|
%define with_dri %{with_dri_ppc}
|
|
|
|
%endif
|
|
|
|
# Define arches to make with_dri disabled by default
|
|
|
|
%ifarch ppc64 s390 s390x
|
2005-09-12 18:27:33 +00:00
|
|
|
%define with_dri 0
|
|
|
|
%endif
|
2005-09-12 18:26:20 +00:00
|
|
|
|
2005-12-19 11:48:55 +00:00
|
|
|
# FIXME: libOSMesa does not build when DRI is enabled for some reason. It
|
|
|
|
# seems next to impossible using the totally broken Mesa buildsystem to build
|
|
|
|
# both DRI drivers and OSMesa in a single build. If someone feels like fixing
|
|
|
|
# all this to build on all 7 architectures, be my guest.
|
|
|
|
%if %{with_dri}
|
2005-12-19 09:27:06 +00:00
|
|
|
%define with_OSMesa 0
|
2005-12-19 11:48:55 +00:00
|
|
|
%else
|
|
|
|
%define with_OSMesa 1
|
|
|
|
%endif
|
2005-12-19 09:27:06 +00:00
|
|
|
|
2005-12-24 08:38:45 +00:00
|
|
|
# NOTE: This option enables motif support in libGLw for bug #175251
|
|
|
|
%define with_motif 1
|
|
|
|
|
2005-09-12 18:32:57 +00:00
|
|
|
#-- END DRI Build Configuration ------------------------------------------
|
|
|
|
|
2005-09-12 18:38:19 +00:00
|
|
|
Summary: Mesa graphics libraries
|
2005-09-12 18:27:33 +00:00
|
|
|
Name: mesa
|
2006-04-01 06:05:02 +00:00
|
|
|
Version: 6.5
|
2006-04-11 22:37:58 +00:00
|
|
|
Release: 5
|
2005-09-12 18:27:33 +00:00
|
|
|
License: MIT/X11
|
2005-09-12 18:26:20 +00:00
|
|
|
Group: System Environment/Libraries
|
2005-09-12 18:27:33 +00:00
|
|
|
URL: http://www.mesa3d.org
|
2005-12-19 08:44:59 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
2006-02-04 13:22:10 +00:00
|
|
|
Source0: http://internap.dl.sourceforge.net/sourceforge/mesa3d/MesaLib-%{version}.tar.bz2
|
2006-02-07 10:53:01 +00:00
|
|
|
# MesaDemos is included here just for glxinfo and glxgears, as they were
|
|
|
|
# previously supplied in X.Org sources, whereas the rest of the demos were not.
|
|
|
|
# It would be in it's own separate package if there was a way of sanely building
|
|
|
|
# it outside of Mesa.
|
|
|
|
Source1: http://internap.dl.sourceforge.net/sourceforge/mesa3d/MesaDemos-%{version}.tar.bz2
|
|
|
|
Source10: redhat-mesa-target
|
|
|
|
Source11: redhat-mesa-driver-install
|
|
|
|
Source12: redhat-mesa-source-filelist-generator
|
2006-04-03 23:02:12 +00:00
|
|
|
Patch0: mesa-6.5-build-config.patch
|
2005-11-01 21:49:43 +00:00
|
|
|
Patch1: mesa-6.3.2-fix-installmesa.patch
|
2005-11-02 09:35:05 +00:00
|
|
|
Patch2: mesa-6.4-multilib-fix.patch
|
2005-11-20 20:49:23 +00:00
|
|
|
Patch3: mesa-modular-dri-dir.patch
|
2005-12-24 08:38:45 +00:00
|
|
|
Patch4: mesa-6.4.1-libGLw-enable-motif-support.patch
|
2006-04-02 05:27:56 +00:00
|
|
|
Patch5: mesa-6.5-drop-static-inline.patch
|
2006-04-10 21:51:56 +00:00
|
|
|
Patch6: mesa-6.5-noexecstack.patch
|
2006-04-11 21:18:25 +00:00
|
|
|
Patch7: mesa-6.5-force-r300.patch
|
2006-02-04 13:22:10 +00:00
|
|
|
|
2005-12-19 08:44:59 +00:00
|
|
|
# General patches from upstream go here:
|
2005-09-12 18:26:20 +00:00
|
|
|
|
2006-02-04 13:22:10 +00:00
|
|
|
# Red Hat custom patches, feature development
|
2006-04-01 06:05:02 +00:00
|
|
|
Patch200: mesa-6.5-texture-from-pixmap-fixes.patch
|
2006-02-19 05:43:00 +00:00
|
|
|
Patch201: mesa-6.4.1-radeon-use-right-texture-format.patch
|
2006-01-17 22:30:50 +00:00
|
|
|
|
2005-12-19 06:55:42 +00:00
|
|
|
BuildRequires: pkgconfig
|
2006-03-01 06:16:10 +00:00
|
|
|
%if %{with_dri}
|
2006-04-10 19:05:07 +00:00
|
|
|
BuildRequires: libdrm-devel >= 2.0.1-1
|
2006-03-01 06:16:10 +00:00
|
|
|
%endif
|
2005-09-12 18:27:33 +00:00
|
|
|
BuildRequires: libXxf86vm-devel
|
2006-01-25 00:42:37 +00:00
|
|
|
BuildRequires: expat-devel
|
2006-02-19 05:43:00 +00:00
|
|
|
BuildRequires: xorg-x11-proto-devel >= 7.0-3
|
|
|
|
BuildRequires: glut-devel
|
2006-03-01 13:01:51 +00:00
|
|
|
BuildRequires: libXt-devel
|
2006-01-25 00:42:37 +00:00
|
|
|
|
2005-12-24 08:38:45 +00:00
|
|
|
%if %{with_motif}
|
|
|
|
BuildRequires: openmotif-devel
|
|
|
|
%endif
|
2005-09-12 18:26:20 +00:00
|
|
|
|
|
|
|
%description
|
2005-09-12 18:27:33 +00:00
|
|
|
Mesa
|
2005-09-12 18:26:20 +00:00
|
|
|
|
2005-09-12 18:36:48 +00:00
|
|
|
#-- libGL ------------------------------------------------------------
|
2005-09-12 18:27:33 +00:00
|
|
|
%package libGL
|
|
|
|
Summary: Mesa libGL runtime libraries and DRI drivers.
|
|
|
|
Group: System Environment/Libraries
|
2005-09-12 18:26:20 +00:00
|
|
|
|
2005-09-12 18:38:40 +00:00
|
|
|
Provides: libGL
|
|
|
|
|
2005-09-12 18:36:48 +00:00
|
|
|
# libGL used to be in Mesa package in RHL 6.x, 7.[0-2], RHEL 2.1
|
|
|
|
Obsoletes: Mesa
|
|
|
|
# libGL moved to XFree86-libs for RHL 7.3
|
2005-12-19 06:55:42 +00:00
|
|
|
Obsoletes: XFree86-libs
|
2005-09-12 18:36:48 +00:00
|
|
|
# libGL moved to XFree86-Mesa-libGL for RHL 8.0, 9, FC1, RHEL 3
|
|
|
|
Obsoletes: XFree86-Mesa-libGL
|
|
|
|
# libGL moved to xorg-x11-Mesa-libGL for FC[2-4], RHEL4
|
|
|
|
Obsoletes: xorg-x11-Mesa-libGL
|
|
|
|
# Conflict with the xorg-x11-libs too, just to be safe for file conflicts
|
2005-12-19 06:55:42 +00:00
|
|
|
Obsoletes: xorg-x11-libs
|
2005-09-12 18:26:20 +00:00
|
|
|
|
2005-09-12 18:27:33 +00:00
|
|
|
%description libGL
|
|
|
|
Mesa libGL runtime libraries and DRI drivers.
|
2005-12-21 12:20:57 +00:00
|
|
|
#-- libGL ------------------------------------------------------------
|
2005-09-12 18:27:33 +00:00
|
|
|
%package libGL-devel
|
|
|
|
Summary: Mesa libGL development package
|
|
|
|
Group: Development/Libraries
|
2005-12-19 06:55:42 +00:00
|
|
|
Requires: mesa-libGL = %{version}-%{release}
|
2005-12-21 12:20:57 +00:00
|
|
|
Requires: libX11-devel
|
2005-09-12 18:38:40 +00:00
|
|
|
|
|
|
|
Provides: libGL-devel
|
2005-09-12 18:26:20 +00:00
|
|
|
|
2005-09-12 18:36:48 +00:00
|
|
|
# libGL devel files were in Mesa-devel package in RHL 6.x, 7.[0-2], RHEL 2.1
|
|
|
|
Obsoletes: Mesa-devel
|
|
|
|
# libGL devel files moved to XFree86-devel for RHL 7.3, 8.0, 9, FC1, RHEL 3
|
2005-12-21 12:20:57 +00:00
|
|
|
Obsoletes: XFree86-devel
|
2005-09-12 18:36:48 +00:00
|
|
|
# libGL devel files moved to xorg-x11-devel for FC2, FC3, FC4
|
2005-12-21 12:20:57 +00:00
|
|
|
Obsoletes: xorg-x11-devel
|
2005-09-12 18:26:20 +00:00
|
|
|
|
2005-09-12 18:27:33 +00:00
|
|
|
%description libGL-devel
|
|
|
|
Mesa libGL development package
|
2005-12-21 12:20:57 +00:00
|
|
|
#-- libGLU -----------------------------------------------------------
|
2005-09-12 18:27:33 +00:00
|
|
|
%package libGLU
|
|
|
|
Summary: Mesa libGLU runtime library
|
|
|
|
Group: System Environment/Libraries
|
2005-09-12 18:26:20 +00:00
|
|
|
|
2005-09-12 18:38:40 +00:00
|
|
|
Provides: libGLU
|
|
|
|
|
2005-09-12 18:36:48 +00:00
|
|
|
# libGLU used to be in Mesa package in RHL 6.x, 7.[0-2], RHEL 2.1
|
|
|
|
Obsoletes: Mesa
|
|
|
|
# libGLU moved to XFree86-libs for RHL 7.3
|
2005-12-21 12:20:57 +00:00
|
|
|
Obsoletes: XFree86-libs
|
2005-09-12 18:36:48 +00:00
|
|
|
# libGLU moved to XFree86-Mesa-libGLU for RHL 8.0, 9, FC1, RHEL 3
|
|
|
|
Obsoletes: XFree86-Mesa-libGLU
|
|
|
|
# libGLU moved to xorg-x11-Mesa-libGLU for FC[2-4], RHEL4
|
|
|
|
Obsoletes: xorg-x11-Mesa-libGLU
|
2005-12-21 12:20:57 +00:00
|
|
|
# Obsolete xorg-x11-libs too, just to be safe
|
|
|
|
Obsoletes: xorg-x11-libs
|
2005-09-12 18:26:20 +00:00
|
|
|
|
2005-09-12 18:27:33 +00:00
|
|
|
%description libGLU
|
|
|
|
Mesa libGLU runtime library
|
2005-12-21 12:20:57 +00:00
|
|
|
#-- libGLU-devel -----------------------------------------------------
|
2005-09-12 18:27:33 +00:00
|
|
|
%package libGLU-devel
|
|
|
|
Summary: Mesa libGLU development package
|
|
|
|
Group: Development/Libraries
|
2005-12-19 06:55:42 +00:00
|
|
|
Requires: mesa-libGLU = %{version}-%{release}
|
2005-12-21 12:20:57 +00:00
|
|
|
Requires: libGL-devel
|
2005-09-12 18:26:20 +00:00
|
|
|
|
2005-09-12 18:38:40 +00:00
|
|
|
Provides: libGLU-devel
|
|
|
|
|
2005-09-12 18:36:48 +00:00
|
|
|
# libGLU devel files were in Mesa-devel package in RHL 6.x, 7.[0-2], RHEL 2.1
|
|
|
|
Obsoletes: Mesa-devel
|
|
|
|
# libGLU devel files moved to XFree86-devel for RHL 7.3, 8.0, 9, FC1, RHEL 3
|
2005-12-19 06:55:42 +00:00
|
|
|
Obsoletes: XFree86-devel
|
2005-09-12 18:36:48 +00:00
|
|
|
# libGLU devel files moved to xorg-x11-devel for FC2, FC3, FC4
|
2005-12-19 06:55:42 +00:00
|
|
|
Obsoletes: xorg-x11-devel
|
2005-09-12 18:26:20 +00:00
|
|
|
|
2005-09-12 18:27:33 +00:00
|
|
|
%description libGLU-devel
|
|
|
|
Mesa libGLU development package
|
2005-09-12 18:36:48 +00:00
|
|
|
#-- libGLw -----------------------------------------------------------
|
2005-09-12 18:27:33 +00:00
|
|
|
%package libGLw
|
|
|
|
Summary: Mesa libGLw runtime library
|
|
|
|
Group: System Environment/Libraries
|
2005-09-12 18:26:20 +00:00
|
|
|
|
2005-09-12 18:38:40 +00:00
|
|
|
Provides: libGLw
|
2005-09-12 18:36:48 +00:00
|
|
|
|
|
|
|
# libGLw used to be in Mesa package in RHL 6.x, 7.[0-2], RHEL 2.1
|
|
|
|
Obsoletes: Mesa
|
|
|
|
# libGLw moved to XFree86-libs for RHL 7.3, 8, 9, FC1, RHEL 3
|
2005-12-19 06:55:42 +00:00
|
|
|
Obsoletes: XFree86-libs
|
2005-09-12 18:36:48 +00:00
|
|
|
# libGLw moved to xorg-x11-libs FC[2-4], RHEL4
|
2005-12-19 06:55:42 +00:00
|
|
|
Obsoletes: xorg-x11-libs
|
2005-09-12 18:26:20 +00:00
|
|
|
|
2005-09-12 18:27:33 +00:00
|
|
|
%description libGLw
|
|
|
|
Mesa libGLw runtime library
|
2005-09-12 18:36:48 +00:00
|
|
|
#-- libGLw-devel -----------------------------------------------------
|
2005-09-12 18:27:33 +00:00
|
|
|
%package libGLw-devel
|
|
|
|
Summary: Mesa libGLw development package
|
|
|
|
Group: Development/Libraries
|
2005-09-12 18:36:48 +00:00
|
|
|
Requires: libGLw = %{version}-%{release}
|
2005-09-12 18:26:20 +00:00
|
|
|
|
2005-09-12 18:38:40 +00:00
|
|
|
Provides: libGLw-devel
|
|
|
|
|
2005-09-12 18:36:48 +00:00
|
|
|
# libGLw devel files were in Mesa-devel package in RHL 6.x, 7.[0-2], RHEL 2.1
|
|
|
|
Obsoletes: Mesa-devel
|
|
|
|
# libGLw devel files moved to XFree86-devel for RHL 7.3, 8.0, 9, FC1, RHEL 3
|
2005-12-19 06:55:42 +00:00
|
|
|
Obsoletes: XFree86-devel
|
2005-09-12 18:36:48 +00:00
|
|
|
# libGLw devel files moved to xorg-x11-devel for FC2, FC3, FC4
|
2005-12-19 06:55:42 +00:00
|
|
|
Obsoletes: xorg-x11-devel
|
2005-09-12 18:26:20 +00:00
|
|
|
|
2005-09-12 18:27:33 +00:00
|
|
|
%description libGLw-devel
|
|
|
|
Mesa libGLw development package
|
2005-09-12 18:38:19 +00:00
|
|
|
#-- source -----------------------------------------------------------
|
|
|
|
%package source
|
|
|
|
Summary: Mesa source code required to build X server
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
%description source
|
|
|
|
The mesa-source package provides the minimal source code needed to
|
|
|
|
build DRI enabled X servers, etc.
|
|
|
|
|
2006-02-07 10:53:01 +00:00
|
|
|
#-- glx-utils --------------------------------------------------------
|
|
|
|
%package -n glx-utils
|
|
|
|
Summary: GLX utilities
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
%description -n glx-utils
|
|
|
|
The glx-utils package provides the glxinfo and glxgears utilities.
|
|
|
|
|
2005-12-21 12:20:57 +00:00
|
|
|
#-- prep -------------------------------------------------------------
|
2005-09-12 18:27:33 +00:00
|
|
|
%prep
|
2006-02-07 10:53:01 +00:00
|
|
|
%setup -q -n Mesa-%{version} -b1
|
2005-12-21 12:20:57 +00:00
|
|
|
# Copy Red Hat Mesa build/install simplificomplication scripts into build dir.
|
2006-02-07 10:53:01 +00:00
|
|
|
install -m 755 %{SOURCE10} ./
|
|
|
|
install -m 755 %{SOURCE11} ./
|
|
|
|
install -m 755 %{SOURCE12} ./
|
2005-09-12 18:27:33 +00:00
|
|
|
|
2006-04-03 23:02:12 +00:00
|
|
|
%patch0 -p0 -b .build-config
|
2005-11-01 21:49:43 +00:00
|
|
|
%patch1 -p0 -b .fix-installmesa
|
2005-11-02 09:35:05 +00:00
|
|
|
%patch2 -p0 -b .multilib-fix
|
2005-11-20 20:49:23 +00:00
|
|
|
%patch3 -p1 -b .modular
|
2005-12-24 08:38:45 +00:00
|
|
|
%if %{with_motif}
|
|
|
|
%patch4 -p0 -b .libGLw-enable-motif-support
|
|
|
|
%endif
|
2006-04-02 05:27:56 +00:00
|
|
|
%patch5 -p0 -b .drop-static-inline
|
2006-04-10 21:51:56 +00:00
|
|
|
%patch6 -p0 -b .noexecstack
|
2006-04-11 21:18:25 +00:00
|
|
|
%patch7 -p0 -b .force-r300
|
2005-12-19 11:29:45 +00:00
|
|
|
|
2006-02-19 05:43:00 +00:00
|
|
|
# According to Adam, this patch makes metacity's compositing
|
|
|
|
# manager noticeably faster, but also may be a little too big of
|
|
|
|
# a change for post feature freeze. Leaving off for now...
|
2006-04-01 06:05:02 +00:00
|
|
|
%patch200 -p0 -b texture-from-pixmap-fixes
|
|
|
|
%patch201 -p1 -b .radeon-use-right-format
|
2006-01-17 22:30:50 +00:00
|
|
|
|
2005-11-02 12:13:26 +00:00
|
|
|
# WARNING: The following files are copyright "Mark J. Kilgard" under the GLUT
|
2005-12-21 12:20:57 +00:00
|
|
|
# license and are not open source/free software, so we remove them.
|
2005-11-02 12:13:26 +00:00
|
|
|
rm include/GL/uglglutshapes.h
|
2005-09-12 18:38:19 +00:00
|
|
|
|
2005-09-12 18:36:48 +00:00
|
|
|
#-- Build ------------------------------------------------------------
|
2005-09-12 18:27:33 +00:00
|
|
|
%build
|
2005-09-12 18:32:57 +00:00
|
|
|
# Macroize this to simplify things
|
2005-11-01 21:49:43 +00:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
2005-11-02 12:13:26 +00:00
|
|
|
export LIB_DIR=$RPM_BUILD_ROOT%{_libdir}
|
|
|
|
export INCLUDE_DIR=$RPM_BUILD_ROOT%{_includedir}
|
2005-11-20 20:49:23 +00:00
|
|
|
export DRI_DRIVER_DIR="%{_libdir}/dri"
|
2005-12-19 11:29:45 +00:00
|
|
|
|
2005-09-12 18:32:57 +00:00
|
|
|
# NOTE: We use a custom script to determine which Mesa build target should
|
|
|
|
# be used, and reduce spec file clutter.
|
|
|
|
MESATARGET="$(./redhat-mesa-target %{with_dri} %{_arch})"
|
2005-12-19 11:29:45 +00:00
|
|
|
#DRIVER_DIRS="dri osmesa"
|
|
|
|
|
2005-11-01 21:49:43 +00:00
|
|
|
echo -e "********************\nMESATARGET=$MESATARGET\n********************\n"
|
2006-04-03 23:16:22 +00:00
|
|
|
make ${MESATARGET}
|
2006-02-07 10:53:01 +00:00
|
|
|
make -C progs/xdemos glxgears glxinfo
|
2005-09-12 18:38:19 +00:00
|
|
|
|
2005-09-12 18:36:48 +00:00
|
|
|
#-- Install ----------------------------------------------------------
|
2005-09-12 18:27:33 +00:00
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2005-11-02 12:13:26 +00:00
|
|
|
# NOTE: "make install" calls mesa's installmesa script, passing DESTDIR
|
|
|
|
# to it as a commandline arg, but LIB_DIR and INCLUDE_DIR get hard coded in
|
|
|
|
# that script, meaning multilib breaks.
|
|
|
|
#make install DESTDIR=$RPM_BUILD_ROOT/usr
|
|
|
|
|
|
|
|
# NOTE: Since Mesa's install procedure doesn't work on multilib properly,
|
|
|
|
# we fix it here, as I have patched the installmesa script to remove the
|
|
|
|
# hard coding, and we set the variables ourself right here, and it should
|
2006-03-01 06:16:10 +00:00
|
|
|
# hopefully pick them up. -- mharris@redhat.com
|
2005-11-02 12:13:26 +00:00
|
|
|
export LIB_DIR=$RPM_BUILD_ROOT%{_libdir}
|
|
|
|
export INCLUDE_DIR=$RPM_BUILD_ROOT%{_includedir}
|
|
|
|
bin/installmesa $RPM_BUILD_ROOT/usr
|
2005-09-12 18:27:33 +00:00
|
|
|
|
2006-02-07 10:53:01 +00:00
|
|
|
# Install glxgears/glxinfo
|
|
|
|
{
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
install -m0755 progs/xdemos/glxgears $RPM_BUILD_ROOT%{_bindir}/
|
|
|
|
install -m0755 progs/xdemos/glxinfo $RPM_BUILD_ROOT%{_bindir}/
|
|
|
|
}
|
|
|
|
|
2005-09-12 18:27:33 +00:00
|
|
|
%if %{with_dri}
|
2005-12-19 11:29:45 +00:00
|
|
|
#pushd src/mesa/drivers/dri
|
|
|
|
# make install DESTDIR=$RPM_BUILD_ROOT/usr %{makeopts}
|
|
|
|
#popd
|
2005-11-02 12:13:26 +00:00
|
|
|
# NOTE: Since Mesa's install target does not seem to properly install the
|
|
|
|
# DRI modules, we install them by hand here. -- mharris
|
2005-09-13 21:15:08 +00:00
|
|
|
export DRIMODULE_SRCDIR="%{_lib}"
|
|
|
|
export DRIMODULE_DESTDIR="$RPM_BUILD_ROOT%{_libdir}/dri"
|
2005-09-12 18:32:57 +00:00
|
|
|
./redhat-mesa-driver-install %{_arch}
|
2005-09-12 18:27:33 +00:00
|
|
|
%endif
|
|
|
|
|
2005-11-04 00:36:21 +00:00
|
|
|
# Run custom source filelist generator script, passing it a prefix
|
|
|
|
%define mesa_source_filelist mesa-source-rpm-filelist.lst
|
2005-09-12 18:38:19 +00:00
|
|
|
%define mesasourcedir %{_datadir}/mesa/source
|
|
|
|
|
2005-11-04 00:36:21 +00:00
|
|
|
./redhat-mesa-source-filelist-generator $RPM_BUILD_ROOT %{mesasourcedir}
|
2005-09-12 18:38:19 +00:00
|
|
|
|
2005-09-12 18:36:48 +00:00
|
|
|
#-- Clean ------------------------------------------------------------
|
2005-09-12 18:27:33 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2005-09-12 18:36:48 +00:00
|
|
|
#-- Check ------------------------------------------------------------
|
|
|
|
%check
|
|
|
|
|
2005-09-12 18:32:57 +00:00
|
|
|
%post libGL -p /sbin/ldconfig
|
|
|
|
%postun libGL -p /sbin/ldconfig
|
|
|
|
%post libGLU -p /sbin/ldconfig
|
|
|
|
%postun libGLU -p /sbin/ldconfig
|
|
|
|
%post libGLw -p /sbin/ldconfig
|
|
|
|
%postun libGLw -p /sbin/ldconfig
|
2005-09-12 18:27:33 +00:00
|
|
|
|
|
|
|
%files libGL
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libGL.so.1
|
2005-12-24 09:12:21 +00:00
|
|
|
|
|
|
|
# NOTE: The software libGL is OpenGL 1.5, however the DRI enabled libGL is
|
|
|
|
# only OpenGL 1.2
|
|
|
|
%if %{with_dri}
|
2005-11-02 13:54:49 +00:00
|
|
|
%{_libdir}/libGL.so.1.2
|
2005-12-24 09:12:21 +00:00
|
|
|
%else
|
|
|
|
%{_libdir}/libGL.so.1.5.*
|
|
|
|
%endif
|
|
|
|
|
2005-09-12 18:27:33 +00:00
|
|
|
%if %{with_dri}
|
2005-12-24 09:12:21 +00:00
|
|
|
# DRI modules
|
2005-09-12 18:36:48 +00:00
|
|
|
%dir %{_libdir}/dri
|
|
|
|
# NOTE: This is a glob for now, as we explicitly determine and limit the DRI
|
|
|
|
# drivers that are installed on a given OS/arch combo in our custom DRI
|
|
|
|
# driver install script. If the upstream install script improves enough to
|
|
|
|
# make our script unnecessary, we might want to change to an explicit file
|
|
|
|
# manifest here in the future.
|
|
|
|
%{_libdir}/dri/*_dri.so
|
2005-12-19 11:29:45 +00:00
|
|
|
# NOTE: Documentive list of all DRI drivers built by default in Mesa 6.4.1
|
2005-09-12 18:27:33 +00:00
|
|
|
#%{_libdir}/dri/ffb_dri.so
|
2005-09-12 18:36:48 +00:00
|
|
|
#%{_libdir}/dri/i810_dri.so
|
|
|
|
#%{_libdir}/dri/i830_dri.so
|
|
|
|
#%{_libdir}/dri/i915_dri.so
|
2005-09-12 18:27:33 +00:00
|
|
|
#%{_libdir}/dri/mach64_dri.so
|
2005-09-12 18:36:48 +00:00
|
|
|
#%{_libdir}/dri/mga_dri.so
|
|
|
|
#%{_libdir}/dri/r128_dri.so
|
|
|
|
#%{_libdir}/dri/r200_dri.so
|
2005-09-12 18:27:33 +00:00
|
|
|
#%{_libdir}/dri/r300_dri.so
|
2005-09-12 18:36:48 +00:00
|
|
|
#%{_libdir}/dri/radeon_dri.so
|
2005-09-12 18:27:33 +00:00
|
|
|
#%{_libdir}/dri/s3v_dri.so
|
2005-09-12 18:36:48 +00:00
|
|
|
#%{_libdir}/dri/savage_dri.so
|
|
|
|
#%{_libdir}/dri/sis_dri.so
|
2005-09-12 18:27:33 +00:00
|
|
|
#%{_libdir}/dri/tdfx_dri.so
|
|
|
|
#%{_libdir}/dri/trident_dri.so
|
2005-09-12 18:36:48 +00:00
|
|
|
#%{_libdir}/dri/unichrome_dri.so
|
2005-12-19 09:27:06 +00:00
|
|
|
%endif
|
|
|
|
%if %{with_OSMesa}
|
2005-11-02 13:09:23 +00:00
|
|
|
# NOTE: This is the software rasterizer only. Why it is 1.5.* is not clear
|
|
|
|
# to me currently, but it is a change from Xorg 6.8.2's Mesa.
|
2005-11-02 13:54:49 +00:00
|
|
|
#%{_libdir}/libGL.so.1.5.060400
|
2006-04-03 19:34:38 +00:00
|
|
|
%{_libdir}/libOSMesa.so.6*
|
2005-09-12 18:27:33 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files libGL-devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_includedir}/GL/amesa.h
|
|
|
|
%{_includedir}/GL/directfbgl.h
|
|
|
|
%{_includedir}/GL/dmesa.h
|
|
|
|
%{_includedir}/GL/fxmesa.h
|
|
|
|
%{_includedir}/GL/ggimesa.h
|
|
|
|
%{_includedir}/GL/gl.h
|
|
|
|
%{_includedir}/GL/gl_mangle.h
|
|
|
|
%{_includedir}/GL/glext.h
|
2006-02-04 13:22:10 +00:00
|
|
|
%{_includedir}/GL/glfbdev.h
|
2005-09-12 18:27:33 +00:00
|
|
|
%{_includedir}/GL/glx.h
|
|
|
|
%{_includedir}/GL/glx_mangle.h
|
|
|
|
%{_includedir}/GL/glxext.h
|
|
|
|
%{_includedir}/GL/mesa_wgl.h
|
|
|
|
%{_includedir}/GL/mglmesa.h
|
|
|
|
%{_includedir}/GL/osmesa.h
|
|
|
|
%{_includedir}/GL/svgamesa.h
|
|
|
|
#%{_includedir}/GL/uglglutshapes.h
|
2005-09-12 18:32:57 +00:00
|
|
|
%{_includedir}/GL/uglmesa.h
|
2005-09-12 18:27:33 +00:00
|
|
|
%{_includedir}/GL/vms_x_fix.h
|
|
|
|
%{_includedir}/GL/wmesa.h
|
|
|
|
%{_includedir}/GL/xmesa.h
|
|
|
|
%{_includedir}/GL/xmesa_x.h
|
|
|
|
%{_includedir}/GL/xmesa_xf86.h
|
|
|
|
%{_libdir}/libGL.so
|
2005-11-02 13:24:16 +00:00
|
|
|
%if ! %{with_dri}
|
|
|
|
%{_libdir}/libOSMesa.so
|
|
|
|
%endif
|
2005-09-12 18:27:33 +00:00
|
|
|
|
|
|
|
%files libGLU
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libGLU.so.1
|
2006-04-02 06:13:56 +00:00
|
|
|
%{_libdir}/libGLU.so.1.3.*
|
2005-09-12 18:27:33 +00:00
|
|
|
|
|
|
|
%files libGLU-devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libGLU.so
|
|
|
|
%{_includedir}/GL/glu.h
|
|
|
|
%{_includedir}/GL/glu_mangle.h
|
|
|
|
|
|
|
|
%files libGLw
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libGLw.so.1
|
|
|
|
%{_libdir}/libGLw.so.1.0.0
|
|
|
|
|
|
|
|
%files libGLw-devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libGLw.so
|
2005-12-24 08:38:45 +00:00
|
|
|
%{_includedir}/GL/GLwDrawA.h
|
|
|
|
%{_includedir}/GL/GLwDrawAP.h
|
|
|
|
%{_includedir}/GL/GLwMDrawA.h
|
|
|
|
%{_includedir}/GL/GLwMDrawAP.h
|
2005-09-12 18:26:20 +00:00
|
|
|
|
2005-11-04 00:36:21 +00:00
|
|
|
%files source -f mesa-source-rpm-filelist.lst
|
2005-09-12 18:38:19 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
2006-02-07 10:53:01 +00:00
|
|
|
%files -n glx-utils
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/glxgears
|
|
|
|
%{_bindir}/glxinfo
|
|
|
|
|
2005-09-12 18:26:20 +00:00
|
|
|
%changelog
|
2006-04-11 22:37:58 +00:00
|
|
|
* Tue Apr 11 2006 Kristian Høgsberg <krh@redhat.com> 6.5-5
|
|
|
|
- Bump for fc5 build.
|
|
|
|
|
2006-04-11 21:18:25 +00:00
|
|
|
* Tue Apr 11 2006 Adam Jackson <ajackson@redhat.com> 6.5-4
|
|
|
|
- Disable R300_FORCE_R300 hack for wider testing.
|
|
|
|
|
2006-04-10 21:51:56 +00:00
|
|
|
* Mon Apr 10 2006 Kristian Høgsberg <krh@redhat.com> 6.5-3
|
|
|
|
- Add mesa-6.5-noexecstack.patch to prevent assembly files from making
|
|
|
|
libGL.so have executable stack.
|
|
|
|
|
2006-04-10 19:05:07 +00:00
|
|
|
* Mon Apr 10 2006 Kristian Høgsberg <krh@redhat.com> 6.5-2
|
|
|
|
- Bump for fc5 build.
|
|
|
|
- Bump libdrm requires to 2.0.1.
|
|
|
|
|
2006-04-01 06:05:02 +00:00
|
|
|
* Sat Apr 1 2006 Kristian Høgsberg <krh@redhat.com> 6.5-1
|
|
|
|
- Update to mesa 6.5 snapshot.
|
2006-04-02 02:40:00 +00:00
|
|
|
- Use -MG for generating deps and some files aren't yet symlinked at
|
|
|
|
make depend time.
|
2006-04-01 06:05:02 +00:00
|
|
|
- Drop mesa-6.4.2-dprintf-to-debugprintf-for-bug180122.patch and
|
|
|
|
mesa-6.4.2-xorg-server-uses-bad-datatypes-breaking-AMD64-fdo5835.patch
|
|
|
|
as these are upstream now.
|
|
|
|
- Drop mesa-6.4.1-texture-from-drawable.patch and add
|
|
|
|
mesa-6.5-texture-from-pixmap-fixes.patch.
|
|
|
|
- Update mesa-modular-dri-dir.patch to apply.
|
2006-04-02 06:13:56 +00:00
|
|
|
- Widen libGLU glob.
|
|
|
|
- Reenable r300 driver install.
|
2006-04-03 19:34:38 +00:00
|
|
|
- Widen libOSMesa glob.
|
2006-04-03 23:02:12 +00:00
|
|
|
- Go back to patching config/linux-dri, add mesa-6.5-build-config.patch,
|
|
|
|
drop mesa-6.3.2-build-configuration-v4.patch.
|
|
|
|
- Disable sis dri driver for now, only builds on x86 and x86-64.
|
2006-04-01 06:05:02 +00:00
|
|
|
|
|
|
|
* Fri Mar 24 2006 Kristian Høgsberg <krh@redhat.com> 6.4.2-7
|
|
|
|
- Set ARCH_FLAGS=-DGLX_USE_TLS to enable TLS for GL contexts.
|
|
|
|
|
2006-03-01 13:01:51 +00:00
|
|
|
* Wed Mar 01 2006 Karsten Hopp <karsten@redhat.de> 6.4.2-6
|
|
|
|
- Buildrequires: libXt-devel (#183479)
|
|
|
|
|
2006-02-25 18:47:36 +00:00
|
|
|
* Sat Feb 25 2006 Mike A. Harris <mharris@redhat.com> 6.4.2-5
|
|
|
|
- Disable the expeimental r300 DRI driver, as it has turned out to cause
|
|
|
|
instability and system hangs for many users.
|
|
|
|
|
2006-02-22 22:05:08 +00:00
|
|
|
* Wed Feb 22 2006 Adam Jackson <ajackson@redhat.com> 6.4.2-4
|
|
|
|
- rebuilt
|
|
|
|
|
2006-02-19 05:43:00 +00:00
|
|
|
* Sun Feb 19 2006 Ray Strode <rstrode@redhat.com> 6.4.2-3
|
|
|
|
- enable texture-from-drawable patch
|
|
|
|
- add glut-devel dependency
|
|
|
|
|
2006-02-11 04:30:56 +00:00
|
|
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 6.4.2-2.1
|
|
|
|
- bump again for double-long bug on ppc(64)
|
|
|
|
|
2006-02-07 10:53:01 +00:00
|
|
|
* Tue Feb 7 2006 Mike A. Harris <mharris@redhat.com> 6.4.2-2
|
|
|
|
- Added new "glx-utils" subpackage with glxgears and glxinfo (#173510)
|
|
|
|
- Added mesa-6.4.2-dprintf-to-debugprintf-for-bug180122.patch to workaround
|
|
|
|
a Mesa namespace conflict with GNU_SOURCE (#180122)
|
|
|
|
- Added mesa-6.4.2-xorg-server-uses-bad-datatypes-breaking-AMD64-fdo5835.patch
|
|
|
|
as an attempt to fix bugs (#176976,176414,fdo#5835)
|
|
|
|
- Enabled inclusion of the *EXPERIMENTAL UNSUPPORTED* r300 DRI driver on
|
|
|
|
x86, x86_64, and ppc architectures, however the 2D Radeon driver will soon
|
|
|
|
be modified to require the user to manually turn experimental DRI support
|
|
|
|
on with Option "dri" in xorg.conf to test it out and report all X bugs that
|
|
|
|
occur while using it directly to X.Org bugzilla. (#179712)
|
2006-02-07 11:21:32 +00:00
|
|
|
- Use "libOSMesa.so.6.4.0604*" glob in file manifest, to avoid having to
|
|
|
|
update it each upstream release.
|
2006-02-07 10:53:01 +00:00
|
|
|
|
2006-02-04 13:22:10 +00:00
|
|
|
* Sat Feb 4 2006 Mike A. Harris <mharris@redhat.com> 6.4.2-1
|
|
|
|
- Updated to Mesa 6.4.2
|
|
|
|
- Use "libGLU.so.1.3.0604*" glob in file manifest, to avoid having to update it
|
|
|
|
each upstream release.
|
|
|
|
|
2006-01-25 00:42:37 +00:00
|
|
|
* Tue Jan 24 2006 Mike A. Harris <mharris@redhat.com> 6.4.1-5
|
|
|
|
- Added missing "BuildRequires: expat-devel" for bug (#178525)
|
2006-01-25 02:01:36 +00:00
|
|
|
- Temporarily disabled mesa-6.4.1-texture-from-drawable.patch, as it fails
|
|
|
|
to compile on at least ia64, and possibly other architectures.
|
2006-01-25 00:42:37 +00:00
|
|
|
|
2006-01-17 22:31:43 +00:00
|
|
|
* Tue Jan 17 2006 Kristian Høgsberg <krh@redhat.com> 6.4.1-4
|
2006-01-17 22:30:50 +00:00
|
|
|
- Add mesa-6.4.1-texture-from-drawable.patch to implement protocol
|
|
|
|
support for GLX_EXT_texture_from_drawable extension.
|
|
|
|
|
2005-12-24 08:38:45 +00:00
|
|
|
* Sat Dec 24 2005 Mike A. Harris <mharris@redhat.com> 6.4.1-3
|
|
|
|
- Manually copy libGLw headers that Mesa forgets to install, to fix (#173879).
|
|
|
|
- Added mesa-6.4.1-libGLw-enable-motif-support.patch to fix (#175251).
|
|
|
|
- Removed "Conflicts" lines from libGL package, as they are "Obsoletes" now.
|
|
|
|
- Do not rename swrast libGL .so version, as it is the OpenGL version.
|
|
|
|
|
2005-12-21 12:20:57 +00:00
|
|
|
* Tue Dec 20 2005 Mike A. Harris <mharris@redhat.com> 6.4.1-2
|
|
|
|
- Rebuild to ensure libGLU gets rebuilt with new gcc with C++ compiler fixes.
|
|
|
|
- Changed the 3 devel packages to use Obsoletes instead of Conflicts for the
|
|
|
|
packages the files used to be present in, as this is more friendy for
|
|
|
|
OS upgrades.
|
|
|
|
- Added "Requires: libX11-devel" to mesa-libGL-devel package (#173712)
|
|
|
|
- Added "Requires: libGL-devel" to mesa-libGLU-devel package (#175253)
|
|
|
|
|
2005-12-19 06:55:42 +00:00
|
|
|
* Sat Dec 17 2005 Mike A. Harris <mharris@redhat.com> 6.4.1-1
|
|
|
|
- Updated MesaLib tarball to version 6.4.1 from Mesa project for X11R7 RC4.
|
2005-12-19 06:58:00 +00:00
|
|
|
- Added pkgconfig dependency.
|
|
|
|
- Updated "BuildRequires: libdrm-devel >= 2.0-1"
|
|
|
|
- Added Obsoletes lines to all the subpackages to have cleaner upgrades.
|
2005-12-19 09:00:37 +00:00
|
|
|
- Added mesa-6.4.1-amd64-assyntax-fix.patch to work around a build problem on
|
|
|
|
AMD64, which is fixed in the 6.4 branch of Mesa CVS.
|
2005-12-19 09:27:06 +00:00
|
|
|
- Conditionalize libOSMesa inclusion, and default to not including it for now.
|
2005-12-19 06:55:42 +00:00
|
|
|
|
2005-12-19 06:58:00 +00:00
|
|
|
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> 6.4-5.1
|
2005-12-19 06:55:42 +00:00
|
|
|
- rebuilt
|
2005-12-18 06:34:18 +00:00
|
|
|
|
2005-12-19 06:58:00 +00:00
|
|
|
* Sun Nov 20 2005 Jeremy Katz <katzj@redhat.com> 6.4-5
|
2005-11-20 20:49:23 +00:00
|
|
|
- fix directory used for loading dri modules (#173679)
|
|
|
|
- install dri drivers as executable so they get stripped (#173292)
|
|
|
|
|
2005-11-04 00:36:21 +00:00
|
|
|
* Thu Nov 3 2005 Mike A. Harris <mharris@redhat.com> 6.4-4
|
|
|
|
- Wrote redhat-mesa-source-filelist-generator to dynamically generate the
|
|
|
|
files to be included in the mesa-source subpackage, to minimize future
|
|
|
|
maintenance.
|
|
|
|
- Fixed detection and renaming of software mesa .so version.
|
|
|
|
|
2005-11-02 13:54:49 +00:00
|
|
|
* Wed Nov 2 2005 Mike A. Harris <mharris@redhat.com> 6.4-3
|
|
|
|
- Hack: autodetect if libGL was given .so.1.5* and rename it to 1.2 for
|
|
|
|
consistency on all architectures, and to avoid upgrade problems if we
|
|
|
|
ever disable DRI on an arch and then re-enable it later.
|
|
|
|
|
|
|
|
* Wed Nov 2 2005 Mike A. Harris <mharris@redhat.com> 6.4-2
|
2005-11-02 09:35:05 +00:00
|
|
|
- Added mesa-6.4-multilib-fix.patch to instrument and attempt to fix Mesa
|
2005-11-02 12:13:26 +00:00
|
|
|
bin/installmesa script to work properly with multilib lib64 architectures.
|
|
|
|
- Set and export LIB_DIR and INCLUDE_DIR in spec file 'install' section,
|
|
|
|
and invoke our modified bin/installmesa directly instead of using
|
|
|
|
"make install".
|
|
|
|
- Remove "include/GL/uglglutshapes.h", as it uses the GLUT license, and seems
|
|
|
|
like an extraneous file anyway.
|
2005-11-02 13:09:23 +00:00
|
|
|
- Conditionalize the file manifest to include libGL.so.1.2 on DRI enabled
|
|
|
|
builds, but use libGL.so.1.5.060400 instead on DRI disabled builds, as
|
|
|
|
this is how upstream builds the library, although it is not clear to me
|
|
|
|
why this difference exists yet (which was not in Xorg 6.8.2 Mesa).
|
2005-11-02 09:35:05 +00:00
|
|
|
|
2005-11-01 21:49:43 +00:00
|
|
|
* Thu Oct 27 2005 Mike A. Harris <mharris@redhat.com> 6.4-1
|
|
|
|
- Updated to new upstream MesaLib-6.4
|
|
|
|
- Updated libGLU.so.1.3.060400 entry in file manifest
|
|
|
|
- Updated "BuildRequires: libdrm-devel >= 1.0.5" to pick up fixes for the
|
|
|
|
unichrome driver.
|
2005-09-15 17:48:23 +00:00
|
|
|
|
2005-09-13 21:19:53 +00:00
|
|
|
* Tue Sep 13 2005 Mike A. Harris <mharris@redhat.com> 6.3.2-6
|
|
|
|
- Fix redhat-mesa-driver-install and spec file to work right on multilib
|
|
|
|
systems.
|
|
|
|
|
2005-09-12 18:38:40 +00:00
|
|
|
* Mon Sep 5 2005 Mike A. Harris <mharris@redhat.com> 6.3.2-5
|
|
|
|
- Fix mesa-libGL-devel to depend on mesa-libGL instead of mesa-libGLU.
|
|
|
|
- Added virtual "Provides: libGL..." entries for each subpackage as relevant.
|
|
|
|
|
2005-09-12 18:38:19 +00:00
|
|
|
* Mon Sep 5 2005 Mike A. Harris <mharris@redhat.com> 6.3.2-4
|
|
|
|
- Added the mesa-source subpackage, which contains part of the Mesa source
|
|
|
|
code needed by other packages such as the X server to build stuff.
|
|
|
|
|
2005-09-12 18:36:48 +00:00
|
|
|
* Mon Sep 5 2005 Mike A. Harris <mharris@redhat.com> 6.3.2-3
|
|
|
|
- Added Conflicts/Obsoletes lines to all of the subpackages to make upgrades
|
|
|
|
from previous OS releases, and piecemeal upgrades work as nicely as
|
|
|
|
possible.
|
|
|
|
|
|
|
|
* Mon Sep 5 2005 Mike A. Harris <mharris@redhat.com> 6.3.2-2
|
|
|
|
- Wrote redhat-mesa-target script to simplify mesa build target selection.
|
|
|
|
- Wrote redhat-mesa-driver-install to install the DRI drivers and simplify
|
|
|
|
per-arch conditionalization, etc.
|
|
|
|
|
2005-09-12 18:27:33 +00:00
|
|
|
* Sun Sep 4 2005 Mike A. Harris <mharris@redhat.com> 6.3.2-1
|
|
|
|
- Initial build.
|