2017-12-09 08:37:06 +01:00
#
2018-01-05 10:08:37 +01:00
# spec file for package Mesa-drivers
2017-12-09 08:37:06 +01:00
#
2019-01-06 17:47:00 +01:00
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
2017-12-09 08:37:06 +01:00
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2019-02-04 19:28:36 +01:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
2017-12-09 08:37:06 +01:00
#
2018-01-05 10:08:37 +01:00
# Following define and the Name attribute are the only difference between
# Mesa.spec and Mesa-drivers.spec. Mesa-drivers.spec is generated from
# Mesa.spec using the pre_checkin.sh script.
2017-12-09 08:37:06 +01:00
#
2018-01-05 10:08:37 +01:00
# Mesa.spec builds everything that is hardware independent and does not
# require llvm. Most importantly it builds all OpenGL (ES) libraries.
2017-12-09 08:37:06 +01:00
#
2018-01-05 10:08:37 +01:00
# Mesa-drivers.spec builds hardware specific drivers and parts that require
# llvm.
#
# The purpose of this split is to be able to build most Mesa-* packages fast
# without waiting for llvm. This helps speed up whole distribution build in
# OBS. (https://bugzilla.suse.com/show_bug.cgi?id=1071297)
# Note that if you actually need to render something, you need the packages
# from Mesa-driver.
2017-12-09 08:37:06 +01:00
##### WARNING: please do not edit this auto generated spec file. Use the Mesa.spec! #####
2018-01-05 10:08:37 +01:00
%define drivers 1
2017-12-09 08:37:06 +01:00
%define libglvnd 0
%if 0%{?suse_version} >= 1330
%define libglvnd 1
%endif
%define glamor 1
%define _name_archive mesa
2019-02-19 10:30:24 +01:00
%define _version 18.3.4
2017-12-09 08:37:06 +01:00
%define with_opencl 0
%define with_vulkan 0
%define with_llvm 0
2018-06-17 16:15:51 +02:00
%ifarch %{ix86} x86_64 %{arm} aarch64 ppc ppc64 ppc64le s390x
2017-12-09 08:37:06 +01:00
%define gallium_loader 1
%else
%define gallium_loader 0
%endif
%define xvmc_support 0
%define vdpau_nouveau 0
%define vdpau_radeon 0
2018-06-17 16:15:51 +02:00
%ifarch %{ix86} x86_64 aarch64 %{arm} ppc64 ppc64le
2017-12-09 08:37:06 +01:00
%define xvmc_support 1
%define vdpau_nouveau 1
%define vdpau_radeon 1
%endif
2018-06-17 16:15:51 +02:00
%ifarch %{ix86} x86_64 %{arm} aarch64
2017-12-09 08:37:06 +01:00
%define with_nine 1
%endif
2018-04-18 11:36:28 +02:00
%if 0%{gallium_loader}
2017-12-09 08:37:06 +01:00
%ifnarch ppc
%define with_opencl 1
%endif
2018-06-17 16:15:51 +02:00
%ifarch %{ix86} x86_64
2017-12-09 08:37:06 +01:00
%define with_vulkan 1
%endif
%endif
2018-06-17 16:15:51 +02:00
%ifarch aarch64 %{arm} ppc64 ppc64le s390x %{ix86} x86_64
2017-12-09 08:37:06 +01:00
%define with_llvm 1
%endif
2018-02-20 14:56:56 +01:00
%if 0%{with_opencl}
%define have_gallium 1
%else
%define have_gallium 0
%endif
2018-01-05 10:08:37 +01:00
%if %{drivers}
%define glamor 0
%else
2017-12-09 08:37:06 +01:00
# No llvm dependencies
%define with_llvm 0
# OpenCL requires clang (LLVM)
%define with_opencl 0
# nine requires at least one non-swrast gallium driver
%define with_nine 0
# Not built because radeon driver is not built.
%define vdpau_radeon 0
# Not built because nouveau driver is not built.
%define vdpau_nouveau 0
# Not built. (Why?)
%define xvmc_support 0
# Vulkan includes radv driver which requires llvm
%define with_vulkan 0
%endif
2018-01-05 10:08:37 +01:00
Name : Mesa-drivers
2019-02-19 10:30:24 +01:00
Version : 18.3.4
2017-12-09 08:37:06 +01:00
Release : 0
2018-01-10 15:30:48 +01:00
Summary : System for rendering 3-D graphics
2017-12-09 08:37:06 +01:00
License : MIT
Group : System/Libraries
2018-06-17 16:15:51 +02:00
URL : http://www.mesa3d.org
2018-01-10 15:30:48 +01:00
#Git-Clone: git://anongit.freedesktop.org/mesa/mesa
2017-12-09 08:37:06 +01:00
# For now directory structure of Mesa's ftp changed
# Source: ftp://ftp.freedesktop.org/pub/mesa/%%{version}/%%{_name_archive}-%%{_version}.tar.xz
Source : ftp://ftp.freedesktop.org/pub/mesa/%{_name_archive}-%{_version}.tar.xz
# Source1: ftp://ftp.freedesktop.org/pub/mesa/%%{version}/%%{_name_archive}-%%{_version}.tar.xz.sig
2018-10-07 11:36:26 +02:00
Source1 : ftp://ftp.freedesktop.org/pub/mesa/%{_name_archive}-%{_version}.tar.xz.sig
# Source1: %%{_name_archive}-%%{_version}.tar.xz.sha1sum
2017-12-09 08:37:06 +01:00
Source2 : baselibs.conf
Source3 : README.updates
Source4 : manual-pages.tar.bz2
Source6 : %{name} -rpmlintrc
Source7 : Mesa.keyring
# never to be upstreamed
Patch18 : n_VDPAU-XVMC-libs-Replace-hardlinks-with-copies.patch
# currently needed for libglvnd support
Patch31 : archlinux_0001-Fix-linkage-against-shared-glapi.patch
2018-10-26 13:17:37 +02:00
Patch54 : n_drirc-disable-rgb10-for-chromium-on-amd.patch
2018-12-04 14:24:20 +01:00
Patch57 : u_wayland_egl-Ensure-EGL-surface.patch
2018-12-11 11:55:20 +01:00
2019-01-30 17:33:21 +01:00
BuildRequires : bison
2017-12-09 08:37:06 +01:00
BuildRequires : fdupes
2019-01-30 17:33:21 +01:00
BuildRequires : flex
2017-12-09 08:37:06 +01:00
BuildRequires : gcc-c++
BuildRequires : imake
BuildRequires : libtool
2019-01-30 17:33:21 +01:00
BuildRequires : meson
2017-12-09 08:37:06 +01:00
BuildRequires : pkgconfig
2018-01-08 12:57:13 +01:00
BuildRequires : python3-base
2018-03-19 21:00:41 +01:00
%if 0%{?suse_version} > 1320
2018-01-08 12:57:13 +01:00
BuildRequires : python3-mako
2018-05-22 13:48:14 +02:00
%else
BuildRequires : python3-Mako
2018-03-19 21:00:41 +01:00
%endif
2018-01-08 12:57:13 +01:00
BuildRequires : python3-xml
2017-12-09 08:37:06 +01:00
BuildRequires : pkgconfig(dri2proto)
BuildRequires : pkgconfig(dri3proto)
BuildRequires : pkgconfig(expat)
BuildRequires : pkgconfig(glproto)
BuildRequires : pkgconfig(libdrm) >= 2.4.75
2019-01-08 11:40:50 +01:00
BuildRequires : pkgconfig(libdrm_amdgpu) >= 2.4.95
2017-12-09 08:37:06 +01:00
BuildRequires : pkgconfig(libdrm_nouveau) >= 2.4.66
BuildRequires : pkgconfig(libdrm_radeon) >= 2.4.71
%if 0%{?libglvnd}
BuildRequires : pkgconfig(libglvnd) >= 0.1.0
%endif
BuildRequires : pkgconfig(libkms) >= 1.0.0
BuildRequires : pkgconfig(libva)
BuildRequires : pkgconfig(presentproto)
2018-12-12 16:38:41 +01:00
%if %{drivers}
2017-12-09 08:37:06 +01:00
BuildRequires : pkgconfig(vdpau) >= 1.1
2018-12-12 16:38:41 +01:00
%endif
2017-12-09 08:37:06 +01:00
BuildRequires : pkgconfig(x11)
BuildRequires : pkgconfig(x11-xcb)
BuildRequires : pkgconfig(xcb-dri2)
BuildRequires : pkgconfig(xcb-dri3)
BuildRequires : pkgconfig(xcb-glx)
BuildRequires : pkgconfig(xcb-present)
BuildRequires : pkgconfig(xdamage)
BuildRequires : pkgconfig(xext)
BuildRequires : pkgconfig(xfixes)
2018-09-23 12:25:38 +02:00
BuildRequires : pkgconfig(xrandr)
2017-12-09 08:37:06 +01:00
BuildRequires : pkgconfig(xshmfence)
BuildRequires : pkgconfig(xvmc)
BuildRequires : pkgconfig(xxf86vm)
BuildRequires : pkgconfig(zlib)
Provides : Mesa7 = %{version}
Obsoletes : Mesa7 < %{version}
Provides : intel-i810-Mesa = %{version}
Obsoletes : intel-i810-Mesa < %{version}
Provides : Mesa-libIndirectGL1 = %{version}
Obsoletes : Mesa-libIndirectGL1 < %{version}
Provides : Mesa-nouveau3d = %{version}
Provides : xorg-x11-Mesa = %{version}
Obsoletes : Mesa-nouveau3d < %{version}
Obsoletes : xorg-x11-Mesa < %{version}
2017-12-11 00:13:32 +01:00
Provides : s2tc = %{version}
Obsoletes : s2tc < %{version}
Provides : libtxc_dxtn = %{version}
Obsoletes : libtxc_dxtn < %{version}
2019-01-08 11:40:50 +01:00
%ifarch %{arm} aarch64
BuildRequires : pkgconfig(libdrm_etnaviv) >= 2.4.89
2017-12-09 08:37:06 +01:00
BuildRequires : pkgconfig(libdrm_freedreno) >= 2.4.74
BuildRequires : pkgconfig(libelf)
%endif
2018-06-17 16:15:51 +02:00
%ifarch x86_64 %{ix86}
2017-12-09 08:37:06 +01:00
BuildRequires : libelf-devel
BuildRequires : pkgconfig(libdrm_intel) >= 2.4.75
%else
%if 0%{with_opencl}
BuildRequires : libelf-devel
%endif
%endif
# Requirements for wayland bumped up from 17.0
%if 0%{?suse_version} > 1320 || (0%{?sle_version} >= 120300 && 0%{?is_opensuse})
BuildRequires : pkgconfig(wayland-client) >= 1.11
BuildRequires : pkgconfig(wayland-protocols) >= 1.8
BuildRequires : pkgconfig(wayland-server) >= 1.11
%endif
%if 0%{with_llvm}
2018-12-04 14:24:20 +01:00
BuildRequires : llvm-devel >= 6.0.0
2017-12-09 08:37:06 +01:00
%endif
%if 0%{with_opencl}
BuildRequires : clang-devel
BuildRequires : libclc
%endif
%if 0%{?libglvnd}
2018-06-17 16:15:51 +02:00
Requires : Mesa-libEGL1 = %{version}
Requires : Mesa-libGL1 = %{version}
2017-12-09 08:37:06 +01:00
Requires : libglvnd >= 0.1.0
%endif
2018-01-19 16:26:51 +01:00
# This dependency on Mesa-dri and Mesa-gallium is here to make sure users that
# do not install recommends on their system still get working Mesa. It is
# ignored in obs when Mesa is installed as build dependency.
2018-02-15 10:31:00 +01:00
Requires : Mesa-dri = %{version}
2018-02-20 14:56:56 +01:00
%if 0%{have_gallium}
2018-02-15 10:31:00 +01:00
Requires : Mesa-gallium = %{version}
2018-02-20 14:56:56 +01:00
%endif
2018-01-19 16:26:51 +01:00
2017-12-09 08:37:06 +01:00
%description
Mesa is a 3-D graphics library with an API which is very similar to
that of OpenGL.* To the extent that Mesa utilizes the OpenGL command
syntax or state machine, it is being used with authorization from
Silicon Graphics, Inc.(SGI). However, the author does not possess an
OpenGL license from SGI, and makes no claim that Mesa is in any way a
compatible replacement for OpenGL or associated with SGI. Those who
want a licensed implementation of OpenGL should contact a licensed
vendor.
Please do not refer to the library as MesaGL (for legal reasons). It's
just Mesa or The Mesa 3-D graphics library.
* OpenGL is a trademark of Silicon Graphics Incorporated.
%package devel
Summary : Libraries, includes and more to develop Mesa applications
Group : Development/Libraries/X11
2018-02-15 10:31:00 +01:00
Requires : Mesa = %{version}
Requires : Mesa-dri-devel = %{version}
Requires : Mesa-libEGL-devel = %{version}
Requires : Mesa-libGL-devel = %{version}
Requires : Mesa-libGLESv1_CM-devel = %{version}
Requires : Mesa-libGLESv2-devel = %{version}
Requires : Mesa-libglapi-devel = %{version}
Requires : libOSMesa-devel = %{version}
2018-01-05 10:08:37 +01:00
Requires : libgbm-devel
2018-02-15 10:31:00 +01:00
Provides : Mesa-devel-static = %{version}
Provides : xorg-x11-Mesa-devel = %{version}
Obsoletes : Mesa-devel-static < %{version}
Obsoletes : xorg-x11-Mesa-devel < %{version}
Provides : Mesa-libIndirectGL-devel = %{version}
Obsoletes : Mesa-libIndirectGL-devel < %{version}
Provides : s2tc-devel = %{version}
Obsoletes : s2tc-devel < %{version}
Provides : libtxc_dxtn-devel = %{version}
Obsoletes : libtxc_dxtn-devel < %{version}
2017-12-09 08:37:06 +01:00
%description devel
Mesa is a 3-D graphics library with an API which is very similar to
that of OpenGL.* To the extent that Mesa utilizes the OpenGL command
syntax or state machine, it is being used with authorization from
Silicon Graphics, Inc.(SGI). However, the author does not possess an
OpenGL license from SGI, and makes no claim that Mesa is in any way a
compatible replacement for OpenGL or associated with SGI. Those who
want a licensed implementation of OpenGL should contact a licensed
vendor.
Please do not refer to the library as MesaGL (for legal reasons). It's
just Mesa or The Mesa 3-D graphics library.
* OpenGL is a trademark of Silicon Graphics Incorporated.
%package libEGL1
# Kudos to Debian for the descriptions
2018-01-10 15:30:48 +01:00
Summary : EGL API implementation
2017-12-09 08:37:06 +01:00
Group : System/Libraries
%if 0%{?libglvnd}
Requires : libglvnd >= 0.1.0
%endif
%description libEGL1
This package contains the EGL native platform graphics interface
library. EGL provides a platform-agnostic mechanism for creating
rendering surfaces for use with other graphics libraries, such as
OpenGL|ES and OpenVG.
This package contains modules to interface with the existing system
GLX or DRI2 drivers to provide OpenGL via EGL. The Mesa main package
provides drivers to provide hardware-accelerated OpenGL|ES and OpenVG
support.
%package libEGL-devel
Summary : Development files for the EGL API
Group : Development/Libraries/C and C++
2018-02-15 10:31:00 +01:00
Requires : Mesa-libEGL1 = %{version}
2017-12-09 08:37:06 +01:00
%if 0%{?libglvnd}
Requires : libglvnd-devel >= 0.1.0
%endif
# Other requires taken care of by pkgconfig already
%description libEGL-devel
This package contains the development environment required for
compiling programs against EGL native platform graphics interface
library. EGL provides a platform-agnostic mechanism for creating
rendering surfaces for use with other graphics libraries, such as
OpenGL|ES and OpenVG.
This package provides the development environment for compiling
programs against the EGL library.
2018-11-27 11:16:12 +01:00
%package KHR-devel
Summary : Mesa Khronos development headers
Group : Development/Libraries/C and C++
2018-11-27 11:55:03 +01:00
Provides : Mesa-libGL-devel:/usr/include/KHR/khrplatform.h
2018-11-27 11:16:12 +01:00
%description KHR-devel
Mesa Khronos development headers.
2017-12-09 08:37:06 +01:00
%package libGL1
Summary : The GL/GLX runtime of the Mesa 3D graphics library
Group : System/Libraries
2018-02-15 10:31:00 +01:00
Requires : Mesa = %{version}
2017-12-09 08:37:06 +01:00
%if 0%{?libglvnd}
Requires : libglvnd >= 0.1.0
%endif
%description libGL1
Mesa is a software library for 3D computer graphics that provides a
generic OpenGL implementation for rendering three-dimensional
graphics.
GLX (" O p e n G L E x t e n s i o n t o t h e X W i n d o w S y s t e m " ) provides the
interface connecting OpenGL and the X Window System: it enables
programs wishing to use OpenGL to do so within a window provided by
the X Window System.
%package libGL-devel
Summary : GL/GLX development files of the OpenGL API
Group : Development/Libraries/C and C++
2018-11-27 11:16:12 +01:00
Requires : Mesa-KHR-devel = %{version}
2018-02-15 10:31:00 +01:00
Requires : Mesa-libGL1 = %{version}
2017-12-09 08:37:06 +01:00
%if 0%{?libglvnd}
Requires : libglvnd-devel >= 0.1.0
%endif
%description libGL-devel
Mesa is a software library for 3D computer graphics that provides a
generic OpenGL implementation for rendering three-dimensional
graphics.
This package includes headers and static libraries for compiling
programs with Mesa.
%package libGLESv1_CM1
2018-01-10 15:30:48 +01:00
Summary : OpenGL|ES 1.x Common Profile API implementation
2017-12-09 08:37:06 +01:00
Group : System/Libraries
%if 0%{?libglvnd}
Requires : libglvnd >= 0.1.0
%endif
%description libGLESv1_CM1
2018-01-10 15:30:48 +01:00
OpenGL|ES is an API for full-function 2D and 3D
2017-12-09 08:37:06 +01:00
graphics on embedded systems - including consoles, phones, appliances
and vehicles. It contains a subset of OpenGL plus a number of
extensions for the special needs of embedded systems.
OpenGL|ES 1.x provides an API for fixed-function hardware.
%package libGLESv1_CM-devel
Summary : Development files for the OpenGL ES 1.x API
Group : Development/Libraries/C and C++
2018-11-27 11:16:12 +01:00
Requires : Mesa-KHR-devel = %{version}
2018-02-15 10:31:00 +01:00
Requires : Mesa-libGLESv1_CM1 = %{version}
2018-06-17 16:15:51 +02:00
Requires : pkgconfig(egl)
2017-12-09 08:37:06 +01:00
%if 0%{?libglvnd}
Requires : libglvnd-devel >= 0.1.0
%endif
%description libGLESv1_CM-devel
2018-01-10 15:30:48 +01:00
OpenGL|ES is an API for full-function 2D and 3D
2017-12-09 08:37:06 +01:00
graphics on embedded systems - including consoles, phones, appliances
and vehicles. It contains a subset of OpenGL plus a number of
extensions for the special needs of embedded systems.
OpenGL|ES 1.x provides an API for fixed-function hardware.
This package provides a development environment for building programs
using the OpenGL|ES 1.x APIs.
%package libGLESv2-2
2018-01-10 15:30:48 +01:00
Summary : OpenGL|ES 2.x API implementation
2017-12-09 08:37:06 +01:00
Group : System/Libraries
%if 0%{?libglvnd}
Requires : libglvnd >= 0.1.0
%endif
%description libGLESv2-2
2018-01-10 15:30:48 +01:00
OpenGL|ES is an API for full-function 2D and 3D
2017-12-09 08:37:06 +01:00
graphics on embedded systems - including consoles, phones, appliances
and vehicles. It contains a subset of OpenGL plus a number of
extensions for the special needs of embedded systems.
OpenGL|ES 2.x provides an API for programmable hardware including
vertex and fragment shaders.
The libGLESv2.so.2 library provides symbols for all OpenGL ES 2 and
ES 3 entry points.
%package libGLESv2-devel
Summary : Development files for the OpenGL ES 2.x API
Group : Development/Libraries/C and C++
2018-11-27 11:16:12 +01:00
Requires : Mesa-KHR-devel = %{version}
2018-02-15 10:31:00 +01:00
Requires : Mesa-libGLESv2-2 = %{version}
2018-06-17 16:15:51 +02:00
Requires : pkgconfig(egl)
2017-12-09 08:37:06 +01:00
%if 0%{?libglvnd}
Requires : libglvnd-devel >= 0.1.0
%endif
%description libGLESv2-devel
2018-01-10 15:30:48 +01:00
OpenGL|ES is an API for full-function 2D and 3D
2017-12-09 08:37:06 +01:00
graphics on embedded systems - including consoles, phones, appliances
and vehicles. It contains a subset of OpenGL plus a number of
extensions for the special needs of embedded systems.
OpenGL|ES 2.x provides an API for programmable hardware including
vertex and fragment shaders.
This package provides a development environment for building
applications using the OpenGL|ES 2.x APIs.
%package libGLESv3-devel
Summary : Development files for the OpenGL ES 3.x API
Group : Development/Libraries/C and C++
2018-11-27 11:16:12 +01:00
Requires : Mesa-KHR-devel = %{version}
2018-06-17 16:15:51 +02:00
Requires : pkgconfig(egl)
2017-12-09 08:37:06 +01:00
%if 0%{?libglvnd} == 0
2018-02-15 10:31:00 +01:00
Requires : Mesa-libGLESv2-2 = %{version}
2017-12-09 08:37:06 +01:00
%endif
%description libGLESv3-devel
2018-01-10 15:30:48 +01:00
OpenGL|ES is an API for full-function 2D and 3D
2017-12-09 08:37:06 +01:00
graphics on embedded systems - including consoles, phones, appliances
and vehicles. It contains a subset of OpenGL plus a number of
extensions for the special needs of embedded systems.
This package provides a development environment for building
applications using the OpenGL|ES 3.x APIs.
2018-01-05 10:08:37 +01:00
%package -n libOSMesa8
2017-12-09 08:37:06 +01:00
Summary : Mesa Off-screen rendering extension
2018-04-04 14:09:38 +02:00
# Wrongly named package shipped .so.8
2018-04-05 11:56:01 +02:00
Group : System/Libraries
2018-02-15 10:31:00 +01:00
Obsoletes : libOSMesa9 < %{version}
Provides : libOSMesa9 = %{version}
2017-12-09 08:37:06 +01:00
2018-01-05 10:08:37 +01:00
%description -n libOSMesa8
2017-12-09 08:37:06 +01:00
OSmesa is a Mesa extension that allows programs to render to an
off-screen buffer using the OpenGL API without having to create a
rendering context on an X Server. It uses a pure software renderer.
2018-01-05 10:08:37 +01:00
%package -n libOSMesa-devel
2017-12-09 08:37:06 +01:00
Summary : Development files for the Mesa Offscreen Rendering extension
Group : Development/Libraries/C and C++
2018-02-15 10:31:00 +01:00
Requires : libOSMesa8 = %{version}
2017-12-09 08:37:06 +01:00
2018-01-05 10:08:37 +01:00
%description -n libOSMesa-devel
2017-12-09 08:37:06 +01:00
Development files for the OSmesa Mesa extension that allows programs to render to an
off-screen buffer using the OpenGL API without having to create a
rendering context on an X Server. It uses a pure software renderer.
%package libglapi0
Summary : Free implementation of the GL API
Group : System/Libraries
%description libglapi0
The Mesa GL API module is responsible for dispatching all the gl*
functions. It is intended to be mainly used by the Mesa-libGLES*
packages.
%package libglapi-devel
2018-01-10 15:30:48 +01:00
Summary : Development files for the Mesa GL API implementation
2017-12-09 08:37:06 +01:00
Group : Development/Libraries/C and C++
2018-02-15 10:31:00 +01:00
Requires : Mesa-libglapi0 = %{version}
2017-12-09 08:37:06 +01:00
%description libglapi-devel
Development files for the Mesa GL API module which is responsible for
dispatching all the gl* functions. It is intended to be mainly used by
the Mesa-libGLES* packages.
2018-01-05 10:08:37 +01:00
%package -n Mesa-dri
Summary : DRI plug-ins for 3D acceleration
Group : System/Libraries
2018-02-15 10:31:00 +01:00
Requires : Mesa = %{version}
2018-01-05 10:08:37 +01:00
Supplements: Mesa
%description -n Mesa-dri
This package contains Mesa DRI drivers for 3D acceleration.
2017-12-09 08:37:06 +01:00
%package dri-devel
Summary : Development files for the DRI API
Group : Development/Libraries/C and C++
2018-02-15 10:31:00 +01:00
Requires : Mesa = %{version}
2017-12-09 08:37:06 +01:00
%description dri-devel
This package contains the development environment required for
compiling programs and libraries using the DRI API.
2018-01-05 10:08:37 +01:00
%package -n Mesa-dri-nouveau
2017-12-09 08:37:06 +01:00
Summary : Mesa DRI plug-in for 3D acceleration via Nouveau
Group : System/Libraries
2018-02-15 10:31:00 +01:00
Requires : Mesa = %{version}
2017-12-09 08:37:06 +01:00
Supplements: xf86-video-nouveau
2018-01-05 10:08:37 +01:00
%description -n Mesa-dri-nouveau
2017-12-09 08:37:06 +01:00
This package contains nouveau_dri.so, which is necessary for
Nouveau's 3D acceleration to work. It is packaged separately
since it is still experimental.
2018-02-16 17:57:28 +01:00
%package -n Mesa-dri-vc4
Summary : Mesa DRI plug-in for 3D acceleration on Raspberry Pi
Group : System/Libraries
Requires : Mesa = %{version}
%description -n Mesa-dri-vc4
This package contains vc4_dri.so, which is necessary for 3D
acceleration on the Raspberry Pi to work. It is packaged separately
since it is still experimental.
2018-01-05 10:08:37 +01:00
%package -n Mesa-gallium
2018-01-10 15:30:48 +01:00
Summary : Mesa Gallium GPU drivers
2018-01-05 10:08:37 +01:00
Group : System/Libraries
2018-02-15 10:31:00 +01:00
Requires : Mesa = %{version}
2018-01-05 10:08:37 +01:00
Supplements: Mesa
%description -n Mesa-gallium
2018-01-10 15:30:48 +01:00
This package contains Mesa Gallium drivers for 3D acceleration.
2018-01-05 10:08:37 +01:00
%package -n libgbm1
2017-12-09 08:37:06 +01:00
Summary : Generic buffer management API
Group : System/Libraries
2018-01-05 10:08:37 +01:00
%description -n libgbm1
2017-12-09 08:37:06 +01:00
This package contains the GBM buffer management library. It provides
a mechanism for allocating buffers for graphics rendering tied to
Mesa.
GBM is intended to be used as a native platform for EGL on drm or
openwfd.
2018-01-05 10:08:37 +01:00
%package -n libgbm-devel
2017-12-09 08:37:06 +01:00
Summary : Development files for the EGL API
Group : Development/Libraries/C and C++
2018-02-15 10:31:00 +01:00
Requires : libgbm1 = %{version}
2017-12-09 08:37:06 +01:00
2018-01-05 10:08:37 +01:00
%description -n libgbm-devel
2017-12-09 08:37:06 +01:00
This package contains the GBM buffer management library. It provides
a mechanism for allocating buffers for graphics rendering tied to
Mesa.
GBM is intended to be used as a native platform for EGL on drm or
openwfd.
This package provides the development environment for compiling
programs against the GBM library.
2018-01-05 10:08:37 +01:00
%package -n Mesa-libd3d
2017-12-09 08:37:06 +01:00
Summary : Mesa Direct3D9 state tracker
2018-04-04 14:09:38 +02:00
# Manually provide d3d library (bnc#918294)
2018-04-05 11:56:01 +02:00
Group : System/Libraries
2018-02-20 14:56:56 +01:00
%ifarch x86_64 s390x ppc64le aarch64 riscv64
2017-12-09 08:37:06 +01:00
Provides : d3dadapter9.so.1()(64bit)
%else
Provides : d3dadapter9.so.1
%endif
2018-01-05 10:08:37 +01:00
%description -n Mesa-libd3d
2017-12-09 08:37:06 +01:00
Mesa Direct3D9 state tracker
2018-01-05 10:08:37 +01:00
%package -n Mesa-libd3d-devel
2017-12-09 08:37:06 +01:00
Summary : Mesa Direct3D9 state tracker development package
Group : Development/Libraries/C and C++
2018-02-15 10:31:00 +01:00
Requires : Mesa-libd3d = %{version}
2017-12-09 08:37:06 +01:00
2018-01-05 10:08:37 +01:00
%description -n Mesa-libd3d-devel
2017-12-09 08:37:06 +01:00
Mesa Direct3D9 state tracker development package
%package -n libXvMC_nouveau
Summary : XVMC state tracker for Nouveau
Group : System/Libraries
%description -n libXvMC_nouveau
This package contains the XvMC state tracker for Nouveau. This is
still " w o r k i n p r o g r e s s " , i.e. expect poor video quality, choppy
videos and artefacts all over.
%package -n libXvMC_r600
Summary : XVMC state tracker for R600
Group : System/Libraries
%description -n libXvMC_r600
This package contains the XvMC state tracker for R600. This is
still " w o r k i n p r o g r e s s " , i.e. expect poor video quality, choppy
videos and artefacts all over.
%package -n libvdpau_nouveau
Summary : XVMC state tracker for Nouveau
Group : System/Libraries
Supplements: xf86-video-nouveau
%description -n libvdpau_nouveau
This package contains the VDPAU state tracker for Nouveau.
%package -n libvdpau_r300
Summary : XVMC state tracker for R300
Group : System/Libraries
Supplements: xf86-video-ati
%description -n libvdpau_r300
This package contains the VDPAU state tracker for R300.
%package -n libvdpau_r600
Summary : XVMC state tracker for R600
Group : System/Libraries
Supplements: xf86-video-ati
%description -n libvdpau_r600
This package contains the VDPAU state tracker for R600.
%package -n libvdpau_radeonsi
Summary : XVMC state tracker for radeonsi
Group : System/Libraries
Supplements: xf86-video-ati
%description -n libvdpau_radeonsi
This package contains the VDPAU state tracker for radeonsi.
2018-01-05 10:08:37 +01:00
%package -n Mesa-libOpenCL
2017-12-09 08:37:06 +01:00
Summary : Mesa OpenCL implementation
Group : System/Libraries
Requires : libclc
2018-01-05 10:08:37 +01:00
%description -n Mesa-libOpenCL
2017-12-09 08:37:06 +01:00
This package contains the Mesa OpenCL implementation or GalliumCompute.
2018-01-05 10:08:37 +01:00
%package -n Mesa-libva
2017-12-09 08:37:06 +01:00
Summary : Mesa VA-API implementation
Group : System/Libraries
Supplements: Mesa
2018-01-05 10:08:37 +01:00
%description -n Mesa-libva
2017-12-09 08:37:06 +01:00
This package contains the Mesa VA-API implementation provided through gallium.
%package -n libvulkan_intel
Summary : Mesa vulkan driver for Intel GPU
Group : System/Libraries
Supplements: xf86-video-intel
%description -n libvulkan_intel
This package contains the Vulkan parts for Mesa.
%package -n libvulkan_radeon
Summary : Mesa vulkan driver for AMD GPU
Group : System/Libraries
Supplements: xf86-video-amdgpu
2018-06-17 16:15:51 +02:00
Supplements: xf86-video-ati
2017-12-09 08:37:06 +01:00
%description -n libvulkan_radeon
This package contains the Vulkan parts for Mesa.
2018-01-05 10:08:37 +01:00
%package -n Mesa-libVulkan-devel
2018-01-10 15:30:48 +01:00
Summary : Mesa's Vulkan development files
2017-12-09 08:37:06 +01:00
Group : Development/Libraries/C and C++
2018-02-15 10:31:00 +01:00
Requires : libvulkan_intel = %{version}
Requires : libvulkan_radeon = %{version}
2017-12-09 08:37:06 +01:00
Conflicts : vulkan-devel
2018-01-05 10:08:37 +01:00
%description -n Mesa-libVulkan-devel
2018-01-10 15:30:48 +01:00
This package contains the development files for Mesa's Vulkan implementation.
2017-12-09 08:37:06 +01:00
%package -n libxatracker2
Version : 1.0.0
Release : 0
Summary : XA state tracker
Group : System/Libraries
%description -n libxatracker2
This package contains the XA state tracker for gallium3D driver.
It superseeds the Xorg state tracker and provides an infrastructure
to accelerate Xorg 2D operations. It is currently used by vmwgfx
video driver.
%package -n libxatracker-devel
Version : 1.0.0
Release : 0
Summary : Development files for the XA API
Group : Development/Libraries/C and C++
2018-02-15 10:31:00 +01:00
Requires : libxatracker2 = %{version}
2017-12-09 08:37:06 +01:00
%description -n libxatracker-devel
This package contains the XA state tracker for gallium3D driver.
It superseeds the Xorg state tracker and provides an infrastructure
to accelerate Xorg 2D operations. It is currently used by vmwgfx
video driver.
This package provides the development environment for compiling
programs against the XA state tracker.
%prep
%setup -q -n %{_name_archive}-%{_version} -b4
# remove some docs
rm -rf docs/README.{VMS,WIN32,OS2}
%patch18 -p1
%if 0%{?libglvnd}
%patch31 -p1
%endif
2018-10-26 13:17:37 +02:00
%patch54 -p1
2018-12-04 14:24:20 +01:00
%patch57 -p1
2017-12-09 08:37:06 +01:00
# Remove requires to libglvnd/libglvnd-devel from baselibs.conf when
# disabling libglvnd build; ugly ...
%if 0%{?libglvnd} == 0
2018-01-10 15:30:48 +01:00
grep -v libglvnd " %{_sourcedir} / b a s e l i b s . c o n f " >" %{_sourcedir} / t e m p " && \
mv " %{_sourcedir} / t e m p " " %{_sourcedir} / b a s e l i b s . c o n f "
2017-12-09 08:37:06 +01:00
%endif
# Remove requires to vulkan libs from baselibs.conf on platforms
# where vulkan build is disabled; ugly ...
%if 0%{?with_vulkan} == 0
2018-01-10 15:30:48 +01:00
grep -v -i vulkan " %{_sourcedir} / b a s e l i b s . c o n f " >" %{_sourcedir} / t e m p " && \
mv " %{_sourcedir} / t e m p " " %{_sourcedir} / b a s e l i b s . c o n f "
2017-12-09 08:37:06 +01:00
%endif
%build
2018-08-27 13:00:14 +02:00
%if 0%{?suse_version} > 1320 || (0%{?sle_version} >= 120300 && 0%{?is_opensuse})
2019-01-06 17:47:00 +01:00
egl_platforms=x11,drm,surfaceless,wayland
2017-12-09 08:37:06 +01:00
%else
2019-01-06 17:47:00 +01:00
egl_platforms=x11,drm,surfaceless
2017-12-09 08:37:06 +01:00
%endif
2019-01-30 17:33:21 +01:00
%meson \
--auto-features=disabled \
2018-01-05 10:08:37 +01:00
%if %{drivers}
2019-01-30 17:33:21 +01:00
-Dgles1=false \
-Dgles2=false \
-Degl=true \
-Dglx=disabled \
-Dosmesa=none \
2018-01-05 10:08:37 +01:00
%else
2017-12-09 08:37:06 +01:00
%if 0%{?libglvnd}
2019-01-30 17:33:21 +01:00
-Dglvnd=true \
2017-12-09 08:37:06 +01:00
%endif
2019-01-30 17:33:21 +01:00
-Dgles1=true \
-Dgles2=true \
-Degl=true \
-Dosmesa=classic \
-Dglx=auto \
-Dllvm=false \
-Dvulkan-drivers= \
2018-01-05 10:08:37 +01:00
%endif
2019-01-30 17:33:21 +01:00
-Dplatforms=$egl_platforms \
-Ddri3=true \
-Dshared-glapi=true \
2017-12-11 00:13:32 +01:00
%if 0%{?with_nine}
2019-01-30 17:33:21 +01:00
-Dgallium-nine=true \
2017-12-09 08:37:06 +01:00
%endif
%if %{glamor}
2019-01-30 17:33:21 +01:00
-Dgbm=true \
2017-12-09 08:37:06 +01:00
%endif
%if 0%{with_opencl}
2019-01-30 17:33:21 +01:00
-Dgallium-opencl=icd \
2017-12-09 08:37:06 +01:00
%endif
2019-01-30 17:33:21 +01:00
-Ddri-search-path=%{_libdir} /dri \
2017-12-09 08:37:06 +01:00
%if 0%{with_llvm}
2019-01-30 17:33:21 +01:00
-Dllvm=true \
-Dshared-llvm=true \
2017-12-09 08:37:06 +01:00
%endif
2018-12-12 16:38:41 +01:00
%if %{drivers}
2019-01-30 17:33:21 +01:00
-Dgallium-vdpau=true \
-Dgallium-xvmc=true \
-Dgallium-va=true \
2017-12-09 08:37:06 +01:00
%if 0%{with_vulkan}
2019-01-30 17:33:21 +01:00
-Dvulkan-drivers=intel,amd \
%endif
2017-12-09 08:37:06 +01:00
%endif
2018-01-05 10:08:37 +01:00
%if %{drivers}
2018-06-17 16:15:51 +02:00
%ifarch %{ix86} x86_64
2019-01-30 17:33:21 +01:00
-Dgallium-xa=true \
-Ddri-drivers=i915,i965,nouveau,r100,r200 \
-Dgallium-drivers=r300,r600,radeonsi,nouveau,swrast,svga,virgl \
2017-12-09 08:37:06 +01:00
%endif
2018-06-17 16:15:51 +02:00
%ifarch %{arm} aarch64
2019-01-30 17:33:21 +01:00
-Dgallium-xa=true \
-Ddri-drivers=nouveau \
-Dgallium-drivers=r300,r600,nouveau,swrast,virgl,freedreno,vc4,etnaviv,imx \
2017-12-09 08:37:06 +01:00
%endif
%ifarch ppc64 ppc64le
2019-01-30 17:33:21 +01:00
-Dgallium-xa=true \
-Ddri-drivers=nouveau \
-Dgallium-drivers=r300,r600,nouveau,swrast \
2017-12-09 08:37:06 +01:00
%endif
2018-02-20 14:56:56 +01:00
%ifarch ia64 ppc hppa s390 s390x riscv64
2019-01-30 17:33:21 +01:00
-Ddri-drivers=swrast \
-Dgallium-drivers=swrast \
2017-12-09 08:37:06 +01:00
%endif
2018-01-05 10:08:37 +01:00
%else
2019-01-30 17:33:21 +01:00
-Ddri-drivers=swrast \
-Dgallium-drivers= \
2017-12-09 08:37:06 +01:00
%endif
2019-01-30 17:33:21 +01:00
-Db_ndebug=true \
-Dc_args=" %{optflags} "
%meson_build
2017-12-09 08:37:06 +01:00
%install
2019-01-30 17:33:21 +01:00
%meson_install
2017-12-09 08:37:06 +01:00
find %{buildroot} -type f -name " * . l a " -delete -print
2018-08-27 13:00:14 +02:00
# libwayland-egl is provided by wayland itself
rm -f %{buildroot} /%{_libdir} /libwayland-egl.so*
rm -f %{buildroot} /%{_libdir} /pkgconfig/wayland-egl.pc
2018-01-05 10:08:37 +01:00
%if %{drivers}
# Delete things that we do not package in the Mesa-drivers variant, but can
# not disable from buildling and installing.
# in Mesa
2018-11-26 12:20:33 +01:00
rm -rf %{buildroot} /%{_datadir} /drirc.d
2018-01-05 10:08:37 +01:00
2019-01-30 17:33:21 +01:00
rm -f %{buildroot} /%{_libdir} /libEGL.so*
# in Mesa-libEGL-devel
rm %{buildroot} /%{_includedir} /EGL/egl.h
rm %{buildroot} /%{_includedir} /EGL/eglext.h
rm %{buildroot} /%{_includedir} /EGL/eglextchromium.h
rm %{buildroot} /%{_includedir} /EGL/eglmesaext.h
rm %{buildroot} /%{_includedir} /EGL/eglplatform.h
rm %{buildroot} /%{_libdir} /pkgconfig/egl.pc
2018-01-05 10:08:37 +01:00
# in Mesa-libGL-devel
rm -rf %{buildroot} /%{_includedir} /GL
# in Mesa-libglapi0
rm %{buildroot} /%{_libdir} /libglapi.so*
# in libwayland-egl1
2018-08-13 17:19:50 +02:00
rm -f %{buildroot} /%{_libdir} /libwayland-egl.so*
rm -f %{buildroot} /%{_libdir} /pkgconfig/wayland-egl.pc
2018-01-05 10:08:37 +01:00
# in Mesa-dri-devel
rm %{buildroot} /%{_libdir} /pkgconfig/dri.pc
# in libgbm-devel
rm %{buildroot} /%{_includedir} /gbm.h
rm %{buildroot} /%{_libdir} /libgbm.so*
rm %{buildroot} /%{_libdir} /pkgconfig/gbm.pc
2018-11-27 11:16:12 +01:00
# in KHR-devel
2018-11-15 16:47:11 +01:00
rm -rf %{buildroot} /%{_includedir} /KHR
2018-01-05 10:08:37 +01:00
%else
2019-01-30 17:33:21 +01:00
rm -rf %{buildroot} /%{_libdir} /dri/swrast_dri.so
2017-12-09 08:37:06 +01:00
%if 0%{?libglvnd} == 0
# Make a symlink to libGL.so.1.2 for compatibility (bnc#809359, bnc#831306)
test -f %{buildroot} %{_libdir} /libGL.so.1.2 || \
ln -s `readlink %{buildroot} %{_libdir} /libGL.so.1` %{buildroot} %{_libdir} /libGL.so.1.2
%else
rm -f %{buildroot} %{_libdir} /libGLES*
# glvnd needs a default provider for indirect rendering where it cannot
# determine the vendor
ln -s %{_libdir} /libGLX_mesa.so.0 %{buildroot} %{_libdir} /libGLX_indirect.so.0
%endif
for dir in ../xc/doc/man/{GL/gl,GL/glx}; do
pushd $dir
xmkmf -a
2018-07-12 16:23:48 +02:00
make %{?_smp_mflags} V=1
2017-12-09 08:37:06 +01:00
make install.man DESTDIR=%{buildroot} MANPATH=%{_mandir} LIBMANSUFFIX=3gl
popd
done
2018-01-05 10:08:37 +01:00
%endif
2017-12-09 08:37:06 +01:00
%fdupes -s %{buildroot} /%{_mandir}
2018-01-15 16:45:22 +01:00
%if !%{drivers}
# Use dummy README file that can be included in both Mesa and Mesa-32bit. This way Mesa-32bit will be build (otherwise it would be skipped as empty) and it can be used by the other *-32bit packages.
echo " T h e \" M e s a \" p a c k a g e d o e s n o t h a v e t h e a b i l i t y t o r e n d e r , b u t i s s u p p l e m e n t e d b y \" M e s a - d r i \" a n d \" M e s a - g a l l i u m \" w h i c h c o n t a i n t h e d r i v e r s f o r r e n d e r i n g " > docs/README.package.%{_arch}
%endif
2017-12-09 08:37:06 +01:00
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post libEGL1 -p /sbin/ldconfig
%postun libEGL1 -p /sbin/ldconfig
%post libGL1 -p /sbin/ldconfig
%postun libGL1 -p /sbin/ldconfig
%post libGLESv1_CM1 -p /sbin/ldconfig
%postun libGLESv1_CM1 -p /sbin/ldconfig
%post libGLESv2-2 -p /sbin/ldconfig
%postun libGLESv2-2 -p /sbin/ldconfig
2018-01-05 10:08:37 +01:00
%post -n libOSMesa8 -p /sbin/ldconfig
2017-12-09 08:37:06 +01:00
2018-01-05 10:08:37 +01:00
%postun -n libOSMesa8 -p /sbin/ldconfig
2017-12-09 08:37:06 +01:00
2018-01-05 10:08:37 +01:00
%post -n libgbm1 -p /sbin/ldconfig
2017-12-09 08:37:06 +01:00
2018-01-05 10:08:37 +01:00
%postun -n libgbm1 -p /sbin/ldconfig
2017-12-09 08:37:06 +01:00
%post -n libxatracker2 -p /sbin/ldconfig
%postun -n libxatracker2 -p /sbin/ldconfig
%post libglapi0 -p /sbin/ldconfig
%postun libglapi0 -p /sbin/ldconfig
2018-01-05 10:08:37 +01:00
%post -n Mesa-libd3d -p /sbin/ldconfig
2017-12-09 08:37:06 +01:00
2018-01-05 10:08:37 +01:00
%postun -n Mesa-libd3d -p /sbin/ldconfig
2017-12-09 08:37:06 +01:00
2018-01-05 10:08:37 +01:00
%if !%{drivers}
2017-12-09 08:37:06 +01:00
%files
2018-06-17 16:15:51 +02:00
%license docs/license.html
%doc docs/README*
2018-11-26 12:20:33 +01:00
%dir %{_datadir} /drirc.d
%config %{_datadir} /drirc.d/*
2017-12-09 08:37:06 +01:00
%files libEGL1
%if 0%{?libglvnd}
%{_libdir} /libEGL_mesa.so*
%dir %{_datadir} /glvnd
%dir %{_datadir} /glvnd/egl_vendor.d
%{_datadir} /glvnd/egl_vendor.d/50_mesa.json
%else
%{_libdir} /libEGL.so.1*
%endif
%files libEGL-devel
%{_includedir} /EGL
%if !0%{?libglvnd}
%{_libdir} /libEGL.so
%endif
%{_libdir} /pkgconfig/egl.pc
2018-11-27 11:16:12 +01:00
%files KHR-devel
%dir %{_includedir} /KHR
%{_includedir} /KHR
2017-12-09 08:37:06 +01:00
%files libGL1
%if 0%{?libglvnd}
%{_libdir} /libGLX_mesa.so*
%{_libdir} /libGLX_indirect.so*
%else
%{_libdir} /libGL.so.1*
%endif
%files libGL-devel
%dir %{_includedir} /GL
%{_includedir} /GL/*.h
%exclude %{_includedir} /GL/osmesa.h
%if 0%{?libglvnd} == 0
%{_libdir} /libGL.so
%endif
%{_libdir} /pkgconfig/gl.pc
%{_mandir} /man3/gl[A-Z]*
%files libGLESv1_CM1
%if 0%{?libglvnd} == 0
%{_libdir} /libGLESv1_CM.so.1*
%endif
%files libGLESv1_CM-devel
%{_includedir} /GLES
%if 0%{?libglvnd} == 0
%{_libdir} /libGLESv1_CM.so
%endif
%{_libdir} /pkgconfig/glesv1_cm.pc
%files libGLESv2-2
%if 0%{?libglvnd} == 0
%{_libdir} /libGLESv2.so.2*
%endif
%files libGLESv2-devel
%{_includedir} /GLES2
%if 0%{?libglvnd} == 0
%{_libdir} /libGLESv2.so
%endif
%{_libdir} /pkgconfig/glesv2.pc
%files libGLESv3-devel
%{_includedir} /GLES3
2018-10-07 11:36:26 +02:00
#%%_libdir/libGLESv3.so
#%%_libdir/pkgconfig/glesv3.pc
2017-12-09 08:37:06 +01:00
2018-01-05 10:08:37 +01:00
%files -n libOSMesa8
2017-12-09 08:37:06 +01:00
%{_libdir} /libOSMesa.so.8.0.0
%{_libdir} /libOSMesa.so.8
2018-01-05 10:08:37 +01:00
%files -n libOSMesa-devel
2017-12-09 08:37:06 +01:00
%{_includedir} /GL/osmesa.h
%{_libdir} /libOSMesa.so
%{_libdir} /pkgconfig/osmesa.pc
2018-01-05 10:08:37 +01:00
%files -n libgbm1
2017-12-09 08:37:06 +01:00
%{_libdir} /libgbm.so.1*
2018-01-05 10:08:37 +01:00
%files -n libgbm-devel
2017-12-09 08:37:06 +01:00
%{_includedir} /gbm.h
%{_libdir} /libgbm.so
%{_libdir} /pkgconfig/gbm.pc
2018-01-05 10:08:37 +01:00
%endif
2017-12-09 08:37:06 +01:00
2018-01-05 10:08:37 +01:00
%if %{drivers}
2018-06-17 16:15:51 +02:00
%ifarch aarch64 %{ix86} x86_64 %{arm} ppc64 ppc64le
2017-12-09 08:37:06 +01:00
%files -n libxatracker2
%{_libdir} /libxatracker.so.2*
%files -n libxatracker-devel
%{_includedir} /xa_*.h
%{_libdir} /libxatracker.so
%{_libdir} /pkgconfig/xatracker.pc
%endif
%if %{xvmc_support}
%files -n libXvMC_nouveau
%{_libdir} /libXvMCnouveau.so
2019-01-30 17:33:21 +01:00
#%{_libdir}/libXvMCnouveau.so.1
#%{_libdir}/libXvMCnouveau.so.1.0
#%{_libdir}/libXvMCnouveau.so.1.0.0
2017-12-09 08:37:06 +01:00
%files -n libXvMC_r600
%{_libdir} /libXvMCr600.so
2019-01-30 17:33:21 +01:00
#%{_libdir}/libXvMCr600.so.1
#%{_libdir}/libXvMCr600.so.1.0
#%{_libdir}/libXvMCr600.so.1.0.0
2017-12-09 08:37:06 +01:00
%endif
%if %{vdpau_nouveau}
%files -n libvdpau_nouveau
%{_libdir} /vdpau/libvdpau_nouveau.so
%{_libdir} /vdpau/libvdpau_nouveau.so.1
%{_libdir} /vdpau/libvdpau_nouveau.so.1.0
%{_libdir} /vdpau/libvdpau_nouveau.so.1.0.0
%endif
%if %{vdpau_radeon}
%files -n libvdpau_r300
%{_libdir} /vdpau/libvdpau_r300.so
%{_libdir} /vdpau/libvdpau_r300.so.1
%{_libdir} /vdpau/libvdpau_r300.so.1.0
%{_libdir} /vdpau/libvdpau_r300.so.1.0.0
%files -n libvdpau_r600
%{_libdir} /vdpau/libvdpau_r600.so
%{_libdir} /vdpau/libvdpau_r600.so.1
%{_libdir} /vdpau/libvdpau_r600.so.1.0
%{_libdir} /vdpau/libvdpau_r600.so.1.0.0
%endif
2018-06-17 16:15:51 +02:00
%ifarch %{ix86} x86_64
2017-12-09 08:37:06 +01:00
%files -n libvdpau_radeonsi
%{_libdir} /vdpau/libvdpau_radeonsi.so
%{_libdir} /vdpau/libvdpau_radeonsi.so.1
%{_libdir} /vdpau/libvdpau_radeonsi.so.1.0
%{_libdir} /vdpau/libvdpau_radeonsi.so.1.0.0
%endif
%endif
2018-01-05 10:08:37 +01:00
%if !%{drivers}
2017-12-09 08:37:06 +01:00
%files libglapi0
%{_libdir} /libglapi.so.0*
%files libglapi-devel
%{_libdir} /libglapi.so
2018-01-05 10:08:37 +01:00
%endif
2017-12-09 08:37:06 +01:00
2018-01-05 10:08:37 +01:00
%if %{drivers}
%files -n Mesa-dri
2018-01-22 13:02:57 +01:00
%dir %{_libdir} /dri
2018-01-05 10:08:37 +01:00
%{_libdir} /dri/*_dri.so
2018-06-17 16:15:51 +02:00
%ifarch %{ix86} x86_64 aarch64 %{arm} ppc64 ppc64le
2018-01-05 10:08:37 +01:00
%exclude %{_libdir} /dri/nouveau_dri.so
%exclude %{_libdir} /dri/nouveau_vieux_dri.so
%endif
2018-06-17 16:15:51 +02:00
%ifarch %{arm} aarch64
2018-02-16 17:57:28 +01:00
%exclude %{_libdir} /dri/vc4_dri.so
2018-01-05 10:08:37 +01:00
%endif
2017-12-09 08:37:06 +01:00
2018-01-05 10:08:37 +01:00
%if 0%{with_opencl}
# only built with opencl
%files -n Mesa-gallium
%dir %{_libdir} /gallium-pipe/
%{_libdir} /gallium-pipe/pipe_*.so
%endif
2018-06-17 16:15:51 +02:00
%ifarch %{ix86} x86_64 aarch64 %{arm} ppc64 ppc64le
2018-01-05 10:08:37 +01:00
%files -n Mesa-dri-nouveau
2017-12-09 08:37:06 +01:00
%{_libdir} /dri/nouveau_dri.so
%{_libdir} /dri/nouveau_vieux_dri.so
%endif
2018-02-16 17:57:28 +01:00
2018-06-17 16:15:51 +02:00
%ifarch aarch64 %{arm}
2018-02-16 17:57:28 +01:00
%files -n Mesa-dri-vc4
%{_libdir} /dri/vc4_dri.so
2017-12-09 08:37:06 +01:00
%endif
2018-01-05 10:08:37 +01:00
# drivers
%endif
%if !%{drivers}
%files dri-devel
%{_includedir} /GL/internal
%{_libdir} /pkgconfig/dri.pc
2017-12-09 08:37:06 +01:00
%files devel
%doc docs/*.html
2018-01-05 10:08:37 +01:00
# !drivers
%endif
2017-12-09 08:37:06 +01:00
%if 0%{?with_nine}
2018-01-05 10:08:37 +01:00
%files -n Mesa-libd3d
2017-12-09 08:37:06 +01:00
%dir %{_libdir} /d3d/
%{_libdir} /d3d/*.so.*
#%%{_sysconfdir}/OpenCL/vendors/mesa.icd
2018-01-05 10:08:37 +01:00
%files -n Mesa-libd3d-devel
2017-12-09 08:37:06 +01:00
%{_libdir} /pkgconfig/d3d.pc
%{_includedir} /d3dadapter/
%{_libdir} /d3d/*.so
%endif
%if 0%{with_opencl}
2018-01-05 10:08:37 +01:00
%files -n Mesa-libOpenCL
2017-12-09 08:37:06 +01:00
%dir %{_sysconfdir} /OpenCL
%dir %{_sysconfdir} /OpenCL/vendors
%{_sysconfdir} /OpenCL/vendors/mesa.icd
%{_libdir} /libMesaOpenCL.so*
%endif
2018-01-05 10:08:37 +01:00
%if %{drivers}
2018-06-17 16:15:51 +02:00
%ifarch %{ix86} x86_64 aarch64 %{arm} ppc64 ppc64le
2018-01-05 10:08:37 +01:00
%files -n Mesa-libva
2017-12-09 08:37:06 +01:00
%{_libdir} /dri/*_drv_video.so
%endif
%endif
%if 0%{with_vulkan}
%files -n libvulkan_intel
2018-01-05 10:08:37 +01:00
%dir %{_datadir} /vulkan
%dir %{_datadir} /vulkan/icd.d
2017-12-09 08:37:06 +01:00
%{_datadir} /vulkan/icd.d/intel_icd.*.json
%{_libdir} /libvulkan_intel.so
%files -n libvulkan_radeon
%{_libdir} /libvulkan_radeon.so
2018-01-05 10:08:37 +01:00
%dir %{_datadir} /vulkan
%dir %{_datadir} /vulkan/icd.d
2017-12-09 08:37:06 +01:00
%{_datadir} /vulkan/icd.d/radeon_icd.*.json
2018-01-05 10:08:37 +01:00
%files -n Mesa-libVulkan-devel
2018-06-17 16:15:51 +02:00
%dir %{_includedir} /vulkan
2018-11-15 16:47:11 +01:00
%{_includedir} /vulkan/*
2017-12-09 08:37:06 +01:00
%endif
%changelog