jadahl / rpms / mesa

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