2014-05-29 11:36:33 +04:00
|
|
|
# FIXME: fix the cases when immediate symbol resolution is not enough.
|
|
|
|
# For the present, fall back to the old symbol resolution rules for ld.
|
2014-05-29 11:32:28 +04:00
|
|
|
%define _disable_ld_now 1
|
|
|
|
|
2013-01-14 18:11:59 +04:00
|
|
|
%bcond_with opencl
|
2013-10-11 16:08:54 +11:00
|
|
|
%bcond_without osmesa
|
|
|
|
%bcond_without radeonsi
|
|
|
|
%bcond_with va
|
|
|
|
%bcond_without vdpau
|
2012-09-20 23:43:10 +11:00
|
|
|
%bcond_without wayland
|
2015-01-15 16:50:49 +03:00
|
|
|
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-01-14 18:11:59 +04:00
|
|
|
%ifarch %{arm}
|
2013-12-14 00:47:16 +04:00
|
|
|
%define dri_drivers "nouveau,r200,radeon"
|
2012-02-01 14:34:40 +04:00
|
|
|
%else
|
2013-12-14 00:47:16 +04:00
|
|
|
%define dri_drivers "i915,i965,nouveau,r200,radeon"
|
|
|
|
%bcond_without vmware
|
2012-02-01 14:34:40 +04:00
|
|
|
%endif
|
|
|
|
|
2013-01-14 18:11:59 +04:00
|
|
|
# as for the dri drivers: so providing one.
|
2014-01-23 11:27:28 +04:00
|
|
|
%define gallium_drivers "r300,r600,nouveau,svga,swrast"
|
2013-10-11 16:08:54 +11:00
|
|
|
%if %{with radeonsi}
|
2014-01-23 11:27:28 +04:00
|
|
|
%define gallium_drivers "r300,r600,radeonsi,nouveau,svga,swrast"
|
2012-02-01 17:55:06 +04:00
|
|
|
%endif
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2014-05-29 11:36:33 +04:00
|
|
|
Summary: OpenGL 3.x compatible 3D graphics library
|
2012-02-01 17:55:06 +04:00
|
|
|
Name: mesa
|
2015-01-19 13:51:26 +03:00
|
|
|
Version: 10.4.2
|
2015-02-22 18:15:52 +04:00
|
|
|
Release: 3
|
2012-09-20 23:43:10 +11:00
|
|
|
License: MIT
|
2012-02-01 14:34:40 +04:00
|
|
|
Group: System/Libraries
|
2013-10-11 16:08:54 +11:00
|
|
|
Url: http://www.mesa3d.org
|
2014-05-08 14:24:46 +04:00
|
|
|
Source0: ftp://ftp.freedesktop.org/pub/mesa/%{version}/MesaLib-%{version}.tar.bz2
|
2014-11-12 16:29:54 +03:00
|
|
|
Source1: mesa.rpmlintrc
|
2012-02-01 14:34:40 +04:00
|
|
|
Source3: make-git-snapshot.sh
|
|
|
|
|
2014-11-12 16:29:54 +03:00
|
|
|
Patch1: mesa-9.2-hardware-float.patch
|
2014-06-09 16:29:53 +04:00
|
|
|
Patch2: mesa-10.2-evergreen-big-endian.patch
|
2014-11-12 16:29:54 +03:00
|
|
|
|
|
|
|
# libXvMCnouveau.so.1.0.0 and libXvMCr600.so.1.0.0 are actually hard links
|
|
|
|
# to libXvMCgallium.so.1.0.0, which is not installed itself by default.
|
|
|
|
# However, the package build system seems to create libXvMCgallium.so.1
|
|
|
|
# symlink for these based on their soname and gets confused as a result.
|
|
|
|
# Make the Mesa's build system install libXvMCgallium.so.1.0.0 to avoid this
|
|
|
|
# mess.
|
|
|
|
Patch3: mesa-10.3-do-install-libxvmcgallium.patch
|
2014-04-21 16:00:49 +04:00
|
|
|
|
2014-11-19 12:47:10 +03:00
|
|
|
# fix crash when llvmpipe tries to use sse instructions,
|
|
|
|
# but llvm detects a cpu that doesn't support them.
|
|
|
|
# https://freedesktop.org/patch/34445/
|
|
|
|
Patch4: Mesa-dev-gallivm-force-sse-instructions-for-llvm-3.5.patch
|
|
|
|
|
2014-09-10 12:23:55 +04:00
|
|
|
# Fedora
|
2014-04-21 16:00:49 +04:00
|
|
|
Patch18: 0002-mesa-10.0-nv50-fix-build.patch
|
2013-12-14 00:47:16 +04:00
|
|
|
|
2012-09-20 23:43:10 +11:00
|
|
|
BuildRequires: bison
|
2013-10-11 16:08:54 +11:00
|
|
|
BuildRequires: flex
|
2012-09-20 23:43:10 +11:00
|
|
|
BuildRequires: gccmakedep
|
|
|
|
BuildRequires: libxml2-python
|
2013-10-11 16:08:54 +11:00
|
|
|
BuildRequires: makedepend
|
2013-10-11 17:16:38 +11:00
|
|
|
BuildRequires: elfutils-devel
|
2013-10-11 17:06:08 +11:00
|
|
|
BuildRequires: llvm-devel
|
2013-10-11 16:08:54 +11:00
|
|
|
BuildRequires: pkgconfig(expat)
|
2014-11-12 12:56:56 +03:00
|
|
|
BuildRequires: pkgconfig(libdrm) >= 2.4.56
|
2013-10-11 16:08:54 +11:00
|
|
|
BuildRequires: pkgconfig(libudev)
|
|
|
|
%if %{with va}
|
|
|
|
BuildRequires: pkgconfig(libva)
|
2012-02-01 14:34:40 +04:00
|
|
|
%endif
|
2012-09-20 23:43:10 +11:00
|
|
|
BuildRequires: pkgconfig(talloc)
|
|
|
|
%if %{with vdpau}
|
2013-10-11 16:08:54 +11:00
|
|
|
BuildRequires: pkgconfig(vdpau)
|
2012-09-20 23:43:10 +11:00
|
|
|
%endif
|
|
|
|
%if %{with wayland}
|
2013-10-11 16:08:54 +11:00
|
|
|
BuildRequires: pkgconfig(wayland-client)
|
|
|
|
%endif
|
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xdamage)
|
|
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
BuildRequires: pkgconfig(xfixes)
|
|
|
|
BuildRequires: pkgconfig(xi)
|
|
|
|
BuildRequires: pkgconfig(xmu)
|
|
|
|
BuildRequires: pkgconfig(xproto)
|
|
|
|
BuildRequires: pkgconfig(xt)
|
2013-12-15 23:41:26 +04:00
|
|
|
BuildRequires: pkgconfig(xvmc)
|
2013-10-11 16:08:54 +11:00
|
|
|
BuildRequires: pkgconfig(xxf86vm)
|
2014-04-29 16:41:01 +04:00
|
|
|
# Needed to build with support for DRI2 and DRI3 X11 extensions.
|
|
|
|
BuildRequires: pkgconfig(dri2proto)
|
|
|
|
BuildRequires: pkgconfig(dri3proto)
|
2014-04-29 18:55:23 +04:00
|
|
|
BuildRequires: pkgconfig(xshmfence)
|
|
|
|
BuildRequires: pkgconfig(xcb-dri3)
|
|
|
|
BuildRequires: pkgconfig(xcb-present)
|
2014-12-19 20:15:56 +03:00
|
|
|
%if %{with selinux}
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
%endif
|
2013-10-11 16:08:54 +11:00
|
|
|
|
2014-11-12 16:29:54 +03:00
|
|
|
# [NB] Do not mark it noarch, otherwise rpm will be confused on where
|
|
|
|
# to store debuginfo for the subpackages (all debug info should be stored
|
|
|
|
# in mesa-debuginfo).
|
2014-04-21 16:00:49 +04:00
|
|
|
|
2015-02-24 16:37:51 +03:00
|
|
|
# Mesa 10.x does not provide dricore library anymore. The DRI drivers now
|
|
|
|
# get what they need some other way (see also mesa repo,
|
|
|
|
# commit dde9260fdc1fb6792df24a4790ea1c255ad9284a,
|
|
|
|
# "mesa: Remove dricore from the build")
|
|
|
|
#
|
|
|
|
# We need these obsoletes in case someone is updating the system from
|
|
|
|
# ROSA R3 or ROSA 2012 LTS, etc.
|
|
|
|
%define dricoremajor 1
|
|
|
|
%define libdricore %mklibname dricore %{dricoremajor}
|
|
|
|
%define devdricore %mklibname dricore -d
|
|
|
|
Obsoletes: %{libdricore} < %{EVRD}
|
|
|
|
Obsoletes: %{devdricore} < %{EVRD}
|
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%description
|
2014-11-12 16:29:54 +03:00
|
|
|
Mesa is an OpenGL compatible 3D graphics library. This particular package
|
|
|
|
contains no libraries but rather the common files.
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%files
|
|
|
|
%doc docs/COPYING docs/README.*
|
|
|
|
%config(noreplace) %{_sysconfdir}/drirc
|
2012-09-20 23:43:10 +11:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
#----------------------------------------------------------------------------
|
2013-01-14 18:11:59 +04:00
|
|
|
|
2014-11-17 16:08:21 +03:00
|
|
|
%define dridrivers %mklibname dri-drivers
|
2012-09-20 23:43:10 +11:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%package -n %{dridrivers}
|
2012-02-01 14:34:40 +04:00
|
|
|
Summary: Mesa DRI drivers
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%description -n %{dridrivers}
|
2013-12-14 12:38:59 +04:00
|
|
|
Mesa is an OpenGL compatible 3D graphics library. This
|
2013-10-11 16:08:54 +11:00
|
|
|
package contains the DRI drivers and also the experimental back-ends for the
|
|
|
|
vdpau and xvmc state trackers.
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%files -n %{dridrivers}
|
|
|
|
%dir %{_libdir}/dri
|
|
|
|
%{_libdir}/dri/i915_dri.so
|
|
|
|
%{_libdir}/dri/i965_dri.so
|
|
|
|
%{_libdir}/dri/nouveau_dri.so
|
|
|
|
%{_libdir}/dri/nouveau_vieux_dri.so
|
|
|
|
%{_libdir}/dri/r200_dri.so
|
|
|
|
%{_libdir}/dri/r300_dri.so
|
|
|
|
%{_libdir}/dri/r600_dri.so
|
|
|
|
%{_libdir}/dri/radeon_dri.so
|
|
|
|
%if %{with radeonsi}
|
|
|
|
%{_libdir}/dri/radeonsi_dri.so
|
|
|
|
%endif
|
|
|
|
%{_libdir}/dri/swrast_dri.so
|
2014-11-12 12:56:56 +03:00
|
|
|
%{_libdir}/dri/kms_swrast_dri.so
|
2013-10-11 16:08:54 +11:00
|
|
|
%{_libdir}/dri/vmwgfx_dri.so
|
2015-01-19 15:06:28 +03:00
|
|
|
%if %{with va}
|
2015-01-19 13:51:26 +03:00
|
|
|
%{_libdir}/dri/gallium_drv_video.so
|
2015-01-19 15:06:28 +03:00
|
|
|
%endif
|
2013-10-11 16:08:54 +11:00
|
|
|
# xvmc state tracker backends
|
2013-12-15 23:41:26 +04:00
|
|
|
%{_libdir}/libXvMCnouveau.so.*
|
|
|
|
%{_libdir}/libXvMCr600.so.*
|
2014-11-12 12:56:56 +03:00
|
|
|
%{_libdir}/libXvMCgallium.so.*
|
2013-10-11 16:08:54 +11:00
|
|
|
# vdpau state tracker backends
|
|
|
|
%{_libdir}/vdpau/libvdpau_nouveau.so.*
|
|
|
|
%{_libdir}/vdpau/libvdpau_r600.so.*
|
2015-01-19 13:51:26 +03:00
|
|
|
%{_libdir}/vdpau/libvdpau_r300.so.*
|
2013-10-11 17:06:08 +11:00
|
|
|
%if %{with radeonsi}
|
|
|
|
%{_libdir}/vdpau/libvdpau_radeonsi.so.*
|
|
|
|
%endif
|
2013-01-14 18:11:59 +04:00
|
|
|
|
2015-01-19 13:51:26 +03:00
|
|
|
# XvMC and VDPAU are no longer supported for softpipe, see the commits
|
|
|
|
# 7c253184, 5f7233c8 and a few other in mesa git repo. For r300, VDPAU
|
|
|
|
# support has been re-enabled.
|
2013-10-11 16:08:54 +11:00
|
|
|
#----------------------------------------------------------------------------
|
2012-08-03 17:32:55 +11:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%define glmajor 1
|
|
|
|
%define libgl %mklibname gl %{glmajor}
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%package -n %{libgl}
|
2012-02-01 17:55:06 +04:00
|
|
|
Summary: Files for Mesa (GL and GLX libs)
|
2012-02-01 14:34:40 +04:00
|
|
|
Group: System/Libraries
|
2013-10-11 16:08:54 +11:00
|
|
|
Requires: %{dridrivers} = %{EVRD}
|
2013-01-14 18:11:59 +04:00
|
|
|
Suggests: %mklibname txc-dxtn
|
2015-02-24 17:30:13 +03:00
|
|
|
# Needed in case someone updates the system from ROSA 2012 LTS
|
2015-02-24 17:43:40 +03:00
|
|
|
Provides: libmesagl = %{EVRD}
|
2015-02-24 17:30:13 +03:00
|
|
|
%rename %{_lib}mesagl1
|
2013-01-14 18:11:59 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%description -n %{libgl}
|
2013-12-14 12:38:59 +04:00
|
|
|
Mesa is an OpenGL compatible 3D graphics library: GL
|
2013-10-11 16:08:54 +11:00
|
|
|
and GLX parts.
|
|
|
|
|
|
|
|
%files -n %{libgl}
|
|
|
|
%doc docs/COPYING
|
|
|
|
%{_libdir}/libGL.so.%{glmajor}*
|
|
|
|
%dir %{_libdir}/mesa
|
|
|
|
%{_libdir}/mesa/libGL.so.%{glmajor}*
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%define devgl %mklibname gl -d
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%package -n %{devgl}
|
2012-02-01 14:34:40 +04:00
|
|
|
Summary: Development files for Mesa (OpenGL compatible 3D lib)
|
|
|
|
Group: Development/C
|
2013-10-11 16:08:54 +11:00
|
|
|
Requires: %{libgl} = %{EVRD}
|
2015-02-24 17:30:13 +03:00
|
|
|
%rename %{_lib}mesagl1-devel
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%description -n %{devgl}
|
2013-12-14 12:38:59 +04:00
|
|
|
Mesa is an OpenGL compatible 3D graphics library. This
|
2013-10-11 16:08:54 +11:00
|
|
|
package contains the headers needed to compile Mesa programs.
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%files -n %{devgl}
|
|
|
|
%doc docs/COPYING
|
|
|
|
%{_includedir}/GL/gl.h
|
|
|
|
%{_includedir}/GL/gl_mangle.h
|
|
|
|
%{_includedir}/GL/glext.h
|
|
|
|
%{_includedir}/GL/glx.h
|
|
|
|
%{_includedir}/GL/glxext.h
|
|
|
|
%{_includedir}/GL/glx_mangle.h
|
|
|
|
%if !%{with osmesa}
|
|
|
|
%{_includedir}/GL/osmesa.h
|
2012-02-01 14:34:40 +04:00
|
|
|
%endif
|
2013-10-11 16:08:54 +11:00
|
|
|
%{_includedir}/GL/wglext.h
|
|
|
|
%{_libdir}/libGL.so
|
2013-12-15 23:41:26 +04:00
|
|
|
%{_libdir}/libXvMC*.so
|
2013-10-11 16:08:54 +11:00
|
|
|
%{_libdir}/pkgconfig/gl.pc
|
|
|
|
%{_libdir}/pkgconfig/dri.pc
|
|
|
|
%{_includedir}/GL/wmesa.h
|
2014-11-12 12:56:56 +03:00
|
|
|
%{_includedir}/GL/glcorearb.h
|
2013-10-11 16:08:54 +11:00
|
|
|
%dir %{_includedir}/GL/internal
|
|
|
|
%{_includedir}/GL/internal/dri_interface.h
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
#----------------------------------------------------------------------------
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%define eglmajor 1
|
|
|
|
%define libegl %mklibname egl %{eglmajor}
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%package -n %{libegl}
|
2012-02-01 14:34:40 +04:00
|
|
|
Summary: Files for Mesa (EGL libs)
|
|
|
|
Group: System/Libraries
|
2015-02-24 17:30:13 +03:00
|
|
|
%rename %{_lib}mesaegl1
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%description -n %{libegl}
|
2013-12-14 12:38:59 +04:00
|
|
|
Mesa is an OpenGL compatible 3D graphics library: EGL
|
2013-10-11 16:08:54 +11:00
|
|
|
parts.
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%files -n %{libegl}
|
|
|
|
%doc docs/COPYING
|
|
|
|
%{_libdir}/libEGL.so.%{eglmajor}*
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%define devegl %mklibname egl -d
|
|
|
|
|
|
|
|
%package -n %{devegl}
|
2012-02-01 14:34:40 +04:00
|
|
|
Summary: Development files for Mesa (EGL libs)
|
|
|
|
Group: Development/C
|
2013-10-11 16:08:54 +11:00
|
|
|
Requires: %{libegl} = %{EVRD}
|
2015-02-24 17:30:13 +03:00
|
|
|
%rename %{_lib}mesaegl1-devel
|
2013-01-14 18:11:59 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%description -n %{devegl}
|
2013-12-14 12:38:59 +04:00
|
|
|
Mesa is an OpenGL compatible 3D graphics library. This
|
2013-10-11 16:08:54 +11:00
|
|
|
package contains the headers needed to compile Mesa programs based on EGL.
|
2012-09-17 19:54:10 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%files -n %{devegl}
|
|
|
|
%doc docs/COPYING
|
|
|
|
%{_includedir}/EGL
|
|
|
|
%{_includedir}/KHR
|
|
|
|
%{_libdir}/libEGL.so
|
|
|
|
%{_libdir}/pkgconfig/egl.pc
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
2012-02-01 17:55:06 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%define gbmmajor 1
|
|
|
|
%define libgbm %mklibname gbm %{gbmmajor}
|
|
|
|
|
|
|
|
%package -n %{libgbm}
|
2013-01-14 18:11:59 +04:00
|
|
|
Summary: Files for Mesa (gbm libs)
|
2012-02-01 17:55:06 +04:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%description -n %{libgbm}
|
2013-12-14 12:38:59 +04:00
|
|
|
Mesa is an OpenGL compatible 3D graphics library: GBM
|
2013-10-11 16:08:54 +11:00
|
|
|
(Graphics Buffer Manager) parts.
|
2012-09-20 23:43:10 +11:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%files -n %{libgbm}
|
|
|
|
%doc docs/COPYING
|
|
|
|
%{_libdir}/libgbm.so.%{gbmmajor}*
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%define devgbm %mklibname gbm -d
|
|
|
|
|
|
|
|
%package -n %{devgbm}
|
2013-01-14 18:11:59 +04:00
|
|
|
Summary: Development files for Mesa (gbm libs)
|
2012-02-01 17:55:06 +04:00
|
|
|
Group: Development/C
|
2013-10-11 16:08:54 +11:00
|
|
|
Requires: %{libgbm} = %{EVRD}
|
2014-04-22 14:23:37 +04:00
|
|
|
# libudev-devel is needed for development with gbm libs.
|
|
|
|
Requires: pkgconfig(libudev)
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%description -n %{devgbm}
|
2013-12-14 12:38:59 +04:00
|
|
|
Mesa is an OpenGL compatible 3D graphics library. This
|
2013-10-11 16:08:54 +11:00
|
|
|
package contains the headers needed to compile Mesa programs based on GBM
|
|
|
|
(Graphics Buffer Manager).
|
2013-01-14 18:11:59 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%files -n %{devgbm}
|
|
|
|
%doc docs/COPYING
|
|
|
|
%{_includedir}/gbm.h
|
|
|
|
%{_libdir}/libgbm.so
|
|
|
|
%{_libdir}/pkgconfig/gbm.pc
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
#----------------------------------------------------------------------------
|
2013-01-14 18:11:59 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%define glesv1major 1
|
|
|
|
%define libglesv1 %mklibname glesv1_ %{glesv1major}
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%package -n %{libglesv1}
|
2012-02-01 14:34:40 +04:00
|
|
|
Summary: Files for Mesa (glesv1 libs)
|
|
|
|
Group: System/Libraries
|
2015-02-24 17:30:13 +03:00
|
|
|
%rename %{_lib}mesaglesv1_1
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%description -n %{libglesv1}
|
2013-12-14 12:38:59 +04:00
|
|
|
Mesa is an OpenGL compatible 3D graphics library:
|
2013-10-11 16:08:54 +11:00
|
|
|
OpenGL ES library version 1 parts. OpenGL ES is a low-level, lightweight API
|
|
|
|
for advanced embedded graphics using well-defined subset profiles of OpenGL.
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%files -n %{libglesv1}
|
|
|
|
%doc docs/COPYING
|
|
|
|
%{_libdir}/libGLESv1_CM.so.%{glesv1major}*
|
2013-01-14 18:11:59 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
#----------------------------------------------------------------------------
|
2013-01-14 18:11:59 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%define devglesv1 %mklibname glesv1 -d
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%package -n %{devglesv1}
|
2012-02-01 14:34:40 +04:00
|
|
|
Summary: Development files for glesv1 libs
|
|
|
|
Group: Development/C
|
2013-10-11 16:08:54 +11:00
|
|
|
Requires: %{libglesv1} = %{EVRD}
|
2015-02-24 17:30:13 +03:00
|
|
|
%rename %{_lib}mesaglesv1_1-devel
|
2013-01-14 18:11:59 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%description -n %{devglesv1}
|
2013-12-14 12:38:59 +04:00
|
|
|
Mesa is an OpenGL compatible 3D graphics library. This
|
2013-10-11 16:08:54 +11:00
|
|
|
package contains the headers needed to compile OpenGL ES 1 programs.
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%files -n %{devglesv1}
|
|
|
|
%doc docs/COPYING
|
|
|
|
%{_includedir}/GLES
|
|
|
|
%{_libdir}/libGLESv1_CM.so
|
|
|
|
%{_libdir}/pkgconfig/glesv1_cm.pc
|
2013-01-14 18:11:59 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
#----------------------------------------------------------------------------
|
2013-01-14 18:11:59 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%define glesv2major 2
|
|
|
|
%define libglesv2 %mklibname glesv2_ %{glesv2major}
|
2013-01-14 18:11:59 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%package -n %{libglesv2}
|
2012-02-01 14:34:40 +04:00
|
|
|
Summary: Files for Mesa (glesv2 libs)
|
|
|
|
Group: System/Libraries
|
2015-02-24 17:30:13 +03:00
|
|
|
%rename %{_lib}mesaglesv2_2
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%description -n %{libglesv2}
|
2013-12-14 12:38:59 +04:00
|
|
|
Mesa is an OpenGL compatible 3D graphics library:
|
2013-10-11 16:08:54 +11:00
|
|
|
OpenGL ES library version 2 parts. OpenGL ES is a low-level, lightweight API
|
|
|
|
for advanced embedded graphics using well-defined subset profiles of OpenGL.
|
2013-01-14 18:11:59 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%files -n %{libglesv2}
|
|
|
|
%doc docs/COPYING
|
|
|
|
%{_libdir}/libGLESv2.so.%{glesv2major}*
|
2013-01-14 18:11:59 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
#----------------------------------------------------------------------------
|
2013-01-14 18:11:59 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%define devglesv2 %mklibname glesv2 -d
|
2013-01-14 18:11:59 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%package -n %{devglesv2}
|
2012-02-01 14:34:40 +04:00
|
|
|
Summary: Development files for glesv2 libs
|
|
|
|
Group: Development/C
|
2013-10-11 16:08:54 +11:00
|
|
|
Requires: %{libglesv2} = %{EVRD}
|
2015-02-24 17:30:13 +03:00
|
|
|
%rename %{_lib}mesaglesv2_2-devel
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%description -n %{devglesv2}
|
2013-12-14 12:38:59 +04:00
|
|
|
Mesa is an OpenGL compatible 3D graphics library. This
|
2013-10-11 16:08:54 +11:00
|
|
|
package contains the headers needed to compile OpenGL ES 2 programs.
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%files -n %{devglesv2}
|
|
|
|
%doc docs/COPYING
|
|
|
|
%{_includedir}/GLES2
|
|
|
|
%{_libdir}/libGLESv2.so
|
|
|
|
%{_libdir}/pkgconfig/glesv2.pc
|
2012-09-17 23:09:42 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
#----------------------------------------------------------------------------
|
2012-09-17 23:09:42 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%define devglesv3 %mklibname glesv3 -d
|
2013-01-14 18:11:59 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%package -n %{devglesv3}
|
|
|
|
Summary: Development files for glesv3 libs
|
2012-02-01 14:34:40 +04:00
|
|
|
Group: Development/C
|
2013-10-11 16:08:54 +11:00
|
|
|
# there is no pkgconfig
|
|
|
|
Provides: glesv3-devel = %{version}-%{release}
|
2012-09-20 23:43:10 +11:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%description -n %{devglesv3}
|
|
|
|
This package contains the headers needed to compile OpenGL ES 3 programs.
|
2012-09-20 23:43:10 +11:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%files -n %{devglesv3}
|
|
|
|
%doc docs/COPYING
|
|
|
|
%{_includedir}/GLES3
|
|
|
|
#----------------------------------------------------------------------------
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%define glapimajor 0
|
|
|
|
%define libglapi %mklibname glapi %{glapimajor}
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%package -n %{libglapi}
|
|
|
|
Summary: Files for Mesa (glapi libs)
|
|
|
|
Group: System/Libraries
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%description -n %{libglapi}
|
2013-12-14 12:38:59 +04:00
|
|
|
Mesa is an OpenGL compatible 3D graphics library. This
|
2015-01-19 13:51:26 +03:00
|
|
|
package provides the glapi shared library used by gallium drivers.
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%files -n %{libglapi}
|
|
|
|
%doc docs/COPYING
|
|
|
|
%{_libdir}/libglapi.so.%{glapimajor}*
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%define devglapi %mklibname glapi -d
|
|
|
|
|
|
|
|
%package -n %{devglapi}
|
|
|
|
Summary: Development files for glapi libs
|
2012-02-01 14:34:40 +04:00
|
|
|
Group: Development/C
|
2013-10-11 16:08:54 +11:00
|
|
|
Requires: %{libglapi} = %{EVRD}
|
|
|
|
Provides: glapi-devel = %{EVRD}
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%description -n %{devglapi}
|
2013-12-14 12:38:59 +04:00
|
|
|
Mesa is an OpenGL compatible 3D graphics library. This
|
2013-01-14 18:11:59 +04:00
|
|
|
package contains the headers needed to compile programs against glapi shared
|
|
|
|
library.
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%files -n %{devglapi}
|
|
|
|
%doc docs/COPYING
|
|
|
|
%{_libdir}/libglapi.so
|
2012-02-01 17:55:06 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
#----------------------------------------------------------------------------
|
2012-02-01 17:55:06 +04:00
|
|
|
|
2014-04-21 16:00:49 +04:00
|
|
|
%define xamajor 2
|
2013-10-11 16:08:54 +11:00
|
|
|
%define libxatracker %mklibname xatracker %{xamajor}
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%package -n %{libxatracker}
|
|
|
|
Summary: Files for Mesa (xa state tracker)
|
|
|
|
Group: System/Libraries
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%description -n %{libxatracker}
|
2013-12-14 12:38:59 +04:00
|
|
|
Mesa is an OpenGL compatible 3D graphics library: Mesa
|
2013-10-11 16:08:54 +11:00
|
|
|
back-end for the xa state tracker.
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%files -n %{libxatracker}
|
|
|
|
%doc docs/COPYING
|
|
|
|
%{_libdir}/libxatracker.so.%{xamajor}*
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
#----------------------------------------------------------------------------
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%define devxatracker %mklibname xatracker -d
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%package -n %{devxatracker}
|
|
|
|
Summary: Development files for xa state tracker
|
|
|
|
Group: Development/C
|
|
|
|
Requires: %{libxatracker} = %{EVRD}
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%description -n %{devxatracker}
|
2013-12-14 12:38:59 +04:00
|
|
|
Mesa is an OpenGL compatible 3D graphics library. This
|
2013-10-11 16:08:54 +11:00
|
|
|
package contains the headers needed to compile programs against the xa state
|
|
|
|
tracker.
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%files -n %{devxatracker}
|
|
|
|
%doc docs/COPYING
|
|
|
|
%{_includedir}/xa_*.h
|
|
|
|
%{_libdir}/libxatracker.so
|
|
|
|
%{_libdir}/pkgconfig/xatracker.pc
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
#----------------------------------------------------------------------------
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%if %{with osmesa}
|
|
|
|
%define osmesamajor 8
|
|
|
|
%define libosmesa %mklibname osmesa %{osmesamajor}
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%package -n %{libosmesa}
|
|
|
|
Summary: Mesa offscreen rendering libraries
|
|
|
|
Group: System/Libraries
|
2013-01-14 18:11:59 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%description -n %{libosmesa}
|
2013-12-14 12:38:59 +04:00
|
|
|
Mesa is an OpenGL compatible 3D graphics library: Mesa
|
2013-10-11 16:08:54 +11:00
|
|
|
off-screen rendering library.
|
2013-01-14 18:11:59 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%files -n %{libosmesa}
|
|
|
|
%doc docs/COPYING
|
|
|
|
%{_libdir}/libOSMesa.so.%{osmesamajor}*
|
2012-02-01 14:34:40 +04:00
|
|
|
%endif
|
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
#----------------------------------------------------------------------------
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%if %{with osmesa}
|
|
|
|
%define devosmesa %mklibname osmesa -d
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%package -n %{devosmesa}
|
|
|
|
Summary: Mesa offscreen rendering development package
|
|
|
|
Group: Development/C
|
|
|
|
Requires: %{libosmesa} = %{EVRD}
|
2012-09-17 23:09:42 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%description -n %{devosmesa}
|
2013-12-14 00:56:23 +04:00
|
|
|
Mesa is an OpenGL compatible 3D graphics library. This
|
2013-10-11 16:08:54 +11:00
|
|
|
package contains the Mesa off-screen rendering development files.
|
|
|
|
|
|
|
|
%files -n %{devosmesa}
|
|
|
|
%doc docs/COPYING
|
|
|
|
%dir %{_includedir}/GL
|
|
|
|
%{_includedir}/GL/osmesa.h
|
|
|
|
%{_libdir}/libOSMesa.so
|
|
|
|
%{_libdir}/pkgconfig/osmesa.pc
|
|
|
|
%endif
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
#----------------------------------------------------------------------------
|
2012-02-01 17:55:06 +04:00
|
|
|
|
2013-01-14 18:11:59 +04:00
|
|
|
%if %{with wayland}
|
2013-10-11 16:08:54 +11:00
|
|
|
%define waylandeglmajor 1
|
|
|
|
%define libwaylandegl %mklibname wayland-egl %{waylandeglmajor}
|
2012-02-01 17:55:06 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%package -n %{libwaylandegl}
|
|
|
|
Summary: Files for Mesa (Wayland EGL libs)
|
|
|
|
Group: System/Libraries
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%description -n %{libwaylandegl}
|
2013-12-14 12:38:59 +04:00
|
|
|
Mesa is an OpenGL compatible 3D graphics library:
|
2012-09-17 23:09:42 +04:00
|
|
|
Wayland EGL platform parts.
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%files -n %{libwaylandegl}
|
|
|
|
%doc docs/COPYING
|
|
|
|
%{_libdir}/libwayland-egl.so.%{waylandeglmajor}*
|
2013-01-14 18:11:59 +04:00
|
|
|
%endif
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
#----------------------------------------------------------------------------
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%if %{with wayland}
|
|
|
|
%define devwaylandegl %mklibname wayland-egl -d
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%package -n %{devwaylandegl}
|
|
|
|
Summary: Development files for Mesa (Wayland EGL libs)
|
|
|
|
Group: Development/C
|
|
|
|
Requires: %{libwaylandegl} = %{EVRD}
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%description -n %{devwaylandegl}
|
2013-12-14 12:38:59 +04:00
|
|
|
Mesa is an OpenGL compatible 3D graphics library. This
|
2013-10-11 16:08:54 +11:00
|
|
|
package contains the headers needed to compile Mesa programs based on Wayland
|
|
|
|
EGL platform.
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%files -n %{devwaylandegl}
|
|
|
|
%doc docs/COPYING
|
|
|
|
%{_libdir}/libwayland-egl.so
|
|
|
|
%{_libdir}/pkgconfig/wayland-egl.pc
|
|
|
|
%endif
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
#----------------------------------------------------------------------------
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%package common-devel
|
|
|
|
Summary: Meta package for Mesa development files
|
|
|
|
Group: Development/C
|
|
|
|
Requires: %{devgl} = %{EVRD}
|
|
|
|
Requires: %{devxatracker} = %{EVRD}
|
|
|
|
Requires: %{devegl} = %{EVRD}
|
|
|
|
Requires: %{devglapi} = %{EVRD}
|
|
|
|
Requires: %{devgbm} = %{EVRD}
|
|
|
|
Requires: %{devglesv1} = %{EVRD}
|
|
|
|
Requires: %{devglesv2} = %{EVRD}
|
|
|
|
Requires: %{devglesv3} = %{EVRD}
|
|
|
|
%if %{with wayland}
|
|
|
|
Requires: %{devwaylandegl} = %{EVRD}
|
2012-09-17 23:09:42 +04:00
|
|
|
%endif
|
2013-10-11 16:08:54 +11:00
|
|
|
%if %{with osmesa}
|
|
|
|
Requires: %{devosmesa} = %{EVRD}
|
2012-02-01 14:34:40 +04:00
|
|
|
%endif
|
2013-10-11 16:08:54 +11:00
|
|
|
Requires: pkgconfig(glu)
|
|
|
|
Requires: pkgconfig(glut)
|
2012-09-17 23:09:42 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%description common-devel
|
2014-11-12 12:56:56 +03:00
|
|
|
Mesa common meta package for development files.
|
2013-01-14 18:11:59 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%files common-devel
|
2014-11-12 12:56:56 +03:00
|
|
|
# This is the meta package for development
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
#----------------------------------------------------------------------------
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-10-11 16:08:54 +11:00
|
|
|
%prep
|
|
|
|
%setup -q -n Mesa-%{version}
|
2012-02-01 17:55:06 +04:00
|
|
|
%apply_patches
|
2012-02-01 14:34:40 +04:00
|
|
|
|
|
|
|
%build
|
2013-01-14 18:11:59 +04:00
|
|
|
# Always (re)generate auto* generated files using our autotools and libtoolize
|
|
|
|
autoreconf -vfi
|
|
|
|
|
2014-04-29 16:41:01 +04:00
|
|
|
# Support for DRI3 starts from Xorg 1.15. When building Mesa for an older
|
|
|
|
# version of Xorg, replace --enable-dri3 with --disable-dri3 below.
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2012-02-01 17:55:06 +04:00
|
|
|
%configure2_5x \
|
2014-12-19 20:15:56 +03:00
|
|
|
%if %{with selinux}
|
|
|
|
--enable-selinux \
|
|
|
|
%endif
|
2013-10-11 16:08:54 +11:00
|
|
|
--enable-dri \
|
2014-04-29 16:41:01 +04:00
|
|
|
--enable-dri3 \
|
2013-10-11 16:08:54 +11:00
|
|
|
--enable-vdpau \
|
2015-01-19 15:06:28 +03:00
|
|
|
%if %{with va}
|
|
|
|
--enable-va \
|
|
|
|
%else
|
|
|
|
--disable-va \
|
|
|
|
%endif
|
|
|
|
--disable-omx \
|
2013-01-14 18:11:59 +04:00
|
|
|
%if %{with opencl}
|
2013-10-11 16:08:54 +11:00
|
|
|
--enable-opencl \
|
2014-06-17 12:51:47 +04:00
|
|
|
TODO: if OpenCL support in Mesa is needed, it needs more work
|
2012-08-03 17:32:55 +11:00
|
|
|
%else
|
2013-10-11 16:08:54 +11:00
|
|
|
--disable-opencl \
|
|
|
|
%endif
|
2014-06-17 12:51:47 +04:00
|
|
|
%if %{with osmesa}
|
2014-04-21 16:00:49 +04:00
|
|
|
--enable-osmesa \
|
2014-06-17 12:51:47 +04:00
|
|
|
%endif
|
2013-10-11 16:08:54 +11:00
|
|
|
--with-dri-driverdir=%{_libdir}/dri \
|
2012-02-01 17:55:06 +04:00
|
|
|
--with-dri-drivers="%{dri_drivers}" \
|
2014-06-17 12:51:47 +04:00
|
|
|
--enable-r600-llvm-compiler \
|
2013-12-14 00:47:16 +04:00
|
|
|
%if %{with vmware}
|
2014-04-21 16:00:49 +04:00
|
|
|
--enable-xa \
|
2013-12-14 00:47:16 +04:00
|
|
|
%endif
|
2013-10-11 16:08:54 +11:00
|
|
|
--with-gallium-drivers="%{gallium_drivers}" \
|
|
|
|
--enable-gallium-llvm \
|
2012-02-01 17:55:06 +04:00
|
|
|
--enable-egl \
|
2013-10-11 16:08:54 +11:00
|
|
|
--enable-gbm \
|
2012-02-01 17:55:06 +04:00
|
|
|
--enable-gles1 \
|
|
|
|
--enable-gles2 \
|
2013-10-11 16:08:54 +11:00
|
|
|
--enable-shared-glapi \
|
2013-01-14 18:11:59 +04:00
|
|
|
%if %{with wayland}
|
2013-10-11 16:08:54 +11:00
|
|
|
--with-egl-platforms=x11,drm,wayland \
|
2012-02-01 17:55:06 +04:00
|
|
|
%else
|
2013-10-11 16:08:54 +11:00
|
|
|
--with-egl-platforms=x11,drm \
|
2012-02-01 17:55:06 +04:00
|
|
|
%endif
|
2013-10-11 16:08:54 +11:00
|
|
|
%if %{with radeonsi}
|
|
|
|
--enable-glx-tls \
|
2012-02-01 14:34:40 +04:00
|
|
|
%else
|
2013-10-11 16:08:54 +11:00
|
|
|
--disable-glx-tls \
|
2012-02-01 14:34:40 +04:00
|
|
|
%endif
|
2014-11-12 12:56:56 +03:00
|
|
|
--enable-texture-float=yes \
|
2014-04-21 16:00:49 +04:00
|
|
|
--enable-xvmc
|
2012-02-01 14:34:40 +04:00
|
|
|
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall_std
|
|
|
|
|
2013-01-14 18:11:59 +04:00
|
|
|
# FIXME: strip will likely break the hardlink
|
|
|
|
# (blino) hardlink libGL files in %%{_libdir}/mesa
|
2012-02-01 14:34:40 +04:00
|
|
|
# to prevent proprietary driver installers from removing them
|
2012-02-01 17:55:06 +04:00
|
|
|
mkdir -p %{buildroot}%{_libdir}/mesa
|
|
|
|
pushd %{buildroot}%{_libdir}/mesa
|
2012-02-01 14:34:40 +04:00
|
|
|
for l in ../libGL.so.*; do cp -a $l .; done
|
|
|
|
popd
|
|
|
|
|
|
|
|
%ifarch %{x86_64}
|
2012-02-01 17:55:06 +04:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/lib/dri
|
2012-02-01 14:34:40 +04:00
|
|
|
%endif
|
|
|
|
|
|
|
|
rm -f %{buildroot}/%{_includedir}/GL/glut.h
|
|
|
|
rm -f %{buildroot}/%{_includedir}/GL/glutf90.h
|
|
|
|
|
2013-01-14 18:11:59 +04:00
|
|
|
# .so files are not needed by vdpau: there is not devel package
|
|
|
|
rm -f %{buildroot}%{_libdir}/vdpau/libvdpau_*.so
|
2012-02-01 14:34:40 +04:00
|
|
|
|
2013-01-14 18:11:59 +04:00
|
|
|
# Use swrastg if built (Anssi 12/2011)
|
2012-02-01 17:55:06 +04:00
|
|
|
[ -e %{buildroot}%{_libdir}/dri/swrastg_dri.so ] && mv %{buildroot}%{_libdir}/dri/swrast{g,}_dri.so
|