2018-12-04 14:30:12 +00:00
|
|
|
%ifnarch s390x
|
|
|
|
%global with_hardware 1
|
2024-05-27 09:23:48 +00:00
|
|
|
%global with_radeonsi 1
|
|
|
|
%global with_vmware 1
|
2020-11-30 02:28:41 +00:00
|
|
|
%global with_vulkan_hw 1
|
2018-12-04 14:30:12 +00:00
|
|
|
%global with_vdpau 1
|
2022-10-02 16:16:54 +00:00
|
|
|
%global with_va 1
|
2021-02-19 18:27:27 +00:00
|
|
|
%if !0%{?rhel}
|
2024-05-27 09:23:48 +00:00
|
|
|
%global with_r300 1
|
|
|
|
%global with_r600 1
|
2018-12-04 14:30:12 +00:00
|
|
|
%global with_nine 1
|
2024-11-12 08:45:06 +00:00
|
|
|
%if 0%{?with_vulkan_hw}
|
|
|
|
%global with_nvk %{with_vulkan_hw}
|
|
|
|
%endif
|
2018-12-04 14:30:12 +00:00
|
|
|
%global with_opencl 1
|
2021-02-19 18:27:27 +00:00
|
|
|
%endif
|
2024-11-12 08:45:06 +00:00
|
|
|
%global base_vulkan %{?with_vulkan_hw:,amd}%{!?with_vulkan_hw:%{nil}}
|
2015-07-14 23:01:32 +00:00
|
|
|
%endif
|
2016-11-02 13:10:22 +00:00
|
|
|
|
2024-05-27 09:23:48 +00:00
|
|
|
%ifnarch %{ix86}
|
2023-05-03 09:44:09 +00:00
|
|
|
%if !0%{?rhel}
|
2024-05-27 09:23:48 +00:00
|
|
|
%global with_teflon 1
|
|
|
|
%endif
|
2023-05-03 09:44:09 +00:00
|
|
|
%endif
|
2024-05-27 09:23:48 +00:00
|
|
|
|
|
|
|
%ifarch %{ix86} x86_64
|
2019-09-17 19:38:37 +00:00
|
|
|
%global with_iris 1
|
2024-11-12 08:45:06 +00:00
|
|
|
%global with_crocus 1
|
2018-12-04 14:30:12 +00:00
|
|
|
%global with_xa 1
|
2024-05-27 09:23:48 +00:00
|
|
|
%global with_intel_clc 1
|
2024-11-12 08:45:06 +00:00
|
|
|
%global intel_platform_vulkan %{?with_vulkan_hw:,intel,intel_hasvk}%{!?with_vulkan_hw:%{nil}}
|
2016-01-22 03:02:07 +00:00
|
|
|
%endif
|
2024-05-27 09:23:48 +00:00
|
|
|
%ifarch x86_64
|
2024-11-12 08:45:06 +00:00
|
|
|
%if !0%{?with_vulkan_hw}
|
2024-05-27 09:23:48 +00:00
|
|
|
%global with_intel_vk_rt 1
|
|
|
|
%endif
|
2024-11-12 08:45:06 +00:00
|
|
|
%endif
|
2016-11-02 13:10:22 +00:00
|
|
|
|
2023-07-25 14:28:01 +00:00
|
|
|
%ifarch aarch64 x86_64 %{ix86}
|
2021-03-26 15:30:08 +00:00
|
|
|
%if !0%{?rhel}
|
2024-05-27 09:23:48 +00:00
|
|
|
%global with_etnaviv 1
|
2021-03-26 15:30:08 +00:00
|
|
|
%global with_lima 1
|
2024-05-27 09:23:48 +00:00
|
|
|
%global with_tegra 1
|
2021-03-26 15:30:08 +00:00
|
|
|
%global with_vc4 1
|
2024-05-27 09:23:48 +00:00
|
|
|
%global with_v3d 1
|
2021-03-26 15:30:08 +00:00
|
|
|
%endif
|
2018-12-04 14:30:12 +00:00
|
|
|
%global with_freedreno 1
|
2019-01-31 15:40:55 +00:00
|
|
|
%global with_kmsro 1
|
2019-05-11 19:53:40 +00:00
|
|
|
%global with_panfrost 1
|
2018-12-04 14:30:12 +00:00
|
|
|
%global with_xa 1
|
2024-11-12 08:45:06 +00:00
|
|
|
%global extra_platform_vulkan %{?with_vulkan_hw:,broadcom,freedreno,panfrost,imagination-experimental}%{!?with_vulkan_hw:%{nil}}
|
2011-08-02 15:58:35 +00:00
|
|
|
%endif
|
2005-09-12 18:26:20 +00:00
|
|
|
|
2023-06-30 04:10:16 +00:00
|
|
|
%if !0%{?rhel}
|
|
|
|
%global with_libunwind 1
|
|
|
|
%global with_lmsensors 1
|
|
|
|
%endif
|
|
|
|
|
2018-12-04 14:30:12 +00:00
|
|
|
%ifarch %{valgrind_arches}
|
|
|
|
%bcond_without valgrind
|
|
|
|
%else
|
|
|
|
%bcond_with valgrind
|
|
|
|
%endif
|
|
|
|
|
2024-05-27 09:23:48 +00:00
|
|
|
%global vulkan_drivers swrast%{?base_vulkan}%{?intel_platform_vulkan}%{?extra_platform_vulkan}%{?with_nvk:,nouveau}
|
2013-05-14 21:33:42 +00:00
|
|
|
|
2016-08-14 11:01:59 +00:00
|
|
|
Name: mesa
|
|
|
|
Summary: Mesa graphics libraries
|
2024-11-12 08:45:06 +00:00
|
|
|
%global ver 24.2.6
|
2018-08-11 19:24:22 +00:00
|
|
|
Version: %{lua:ver = string.gsub(rpm.expand("%{ver}"), "-", "~"); print(ver)}
|
2021-08-19 20:47:13 +00:00
|
|
|
Release: %autorelease
|
2023-09-15 06:59:07 +00:00
|
|
|
License: MIT AND BSD-3-Clause AND SGI-B-2.0
|
2016-08-14 11:01:59 +00:00
|
|
|
URL: http://www.mesa3d.org
|
2018-06-16 13:57:19 +00:00
|
|
|
|
2022-06-02 08:07:29 +00:00
|
|
|
Source0: https://archive.mesa3d.org/mesa-%{ver}.tar.xz
|
2013-01-15 15:38:20 +00:00
|
|
|
# src/gallium/auxiliary/postprocess/pp_mlaa* have an ... interestingly worded license.
|
2019-04-14 09:14:27 +00:00
|
|
|
# Source1 contains email correspondence clarifying the license terms.
|
2013-01-15 15:38:20 +00:00
|
|
|
# Fedora opts to ignore the optional part of clause 2 and treat that code as 2 clause BSD.
|
2019-04-14 09:14:27 +00:00
|
|
|
Source1: Mesa-MLAA-License-Clarification-Email.txt
|
2021-08-19 14:42:10 +00:00
|
|
|
|
2024-11-12 08:45:06 +00:00
|
|
|
# libclc is not available in RHEL but it is required for Intel drivers since
|
2024-05-27 09:23:48 +00:00
|
|
|
# mesa >= 24.1.0
|
2024-11-12 08:45:06 +00:00
|
|
|
%global libclc_version 19.1.1
|
2024-05-27 09:23:48 +00:00
|
|
|
Source3: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{libclc_version}/libclc-%{libclc_version}.src.tar.xz
|
|
|
|
BuildRequires: libedit-devel
|
|
|
|
BuildRequires: clang-devel >= %{libclc_version}
|
|
|
|
# Build our own version
|
|
|
|
# BuildRequires: spirv-llvm-translator-tools
|
|
|
|
|
|
|
|
# spirv-llvm-translator is a dependency of libclc
|
2024-11-12 08:45:06 +00:00
|
|
|
%global spirv_llvm_trans_ver 19.1.1
|
|
|
|
%global spirv_llvm_trans_commit 90a976491d3847657396456e0e94d7dc48d35996
|
2024-05-27 09:23:48 +00:00
|
|
|
%global spirv_llvm_trans_shortcommit %(c=%{spirv_llvm_trans_commit}; echo ${c:0:7})
|
|
|
|
Source4: https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/%{spirv_llvm_trans_commit}/spirv-llvm-translator-%{spirv_llvm_trans_shortcommit}.tar.gz
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: ninja-build
|
|
|
|
BuildRequires: llvm-static
|
|
|
|
BuildRequires: spirv-headers-devel
|
|
|
|
BuildRequires: spirv-tools-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
2024-11-12 08:45:06 +00:00
|
|
|
# python3-pyyaml is not available in RHEL
|
|
|
|
%global pyyaml_version 6.0.1
|
|
|
|
Source5: https://github.com/yaml/pyyaml/archive/%{pyyaml_version}.tar.gz#/python3-pyyaml-%{pyyaml_version}.tar.gz
|
|
|
|
BuildRequires: libyaml-devel
|
|
|
|
BuildRequires: python3-cython
|
|
|
|
|
|
|
|
# Mesa patches (< 100)
|
2024-06-28 13:41:22 +00:00
|
|
|
Patch10: gnome-shell-glthread-disable.patch
|
|
|
|
|
2024-11-12 08:45:06 +00:00
|
|
|
# python3-pyyaml patches (>= 500 && < 600)
|
|
|
|
Patch500: 0001-pyyaml-731.patch
|
2022-12-06 19:27:54 +00:00
|
|
|
|
2024-05-27 09:23:48 +00:00
|
|
|
BuildRequires: meson
|
2016-08-14 11:01:59 +00:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
2018-12-04 14:30:12 +00:00
|
|
|
BuildRequires: gettext
|
|
|
|
%if 0%{?with_hardware}
|
2016-08-14 11:01:59 +00:00
|
|
|
BuildRequires: kernel-headers
|
|
|
|
%endif
|
2020-07-22 18:22:24 +00:00
|
|
|
# We only check for the minimum version of pkgconfig(libdrm) needed so that the
|
|
|
|
# SRPMs for each arch still have the same build dependencies. See:
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1859515
|
2024-11-12 08:45:06 +00:00
|
|
|
BuildRequires: pkgconfig(libdrm) >= 2.4.121
|
2023-06-30 04:10:16 +00:00
|
|
|
%if 0%{?with_libunwind}
|
2023-06-07 12:01:07 +00:00
|
|
|
BuildRequires: pkgconfig(libunwind)
|
2023-06-30 04:10:16 +00:00
|
|
|
%endif
|
2018-12-04 14:30:12 +00:00
|
|
|
BuildRequires: pkgconfig(expat)
|
|
|
|
BuildRequires: pkgconfig(zlib) >= 1.2.3
|
2023-06-07 12:01:07 +00:00
|
|
|
BuildRequires: pkgconfig(libzstd)
|
2018-12-04 14:30:12 +00:00
|
|
|
BuildRequires: pkgconfig(libselinux)
|
|
|
|
BuildRequires: pkgconfig(wayland-scanner)
|
2024-05-27 09:23:48 +00:00
|
|
|
BuildRequires: pkgconfig(wayland-protocols) >= 1.34
|
2018-12-04 14:30:12 +00:00
|
|
|
BuildRequires: pkgconfig(wayland-client) >= 1.11
|
|
|
|
BuildRequires: pkgconfig(wayland-server) >= 1.11
|
|
|
|
BuildRequires: pkgconfig(wayland-egl-backend) >= 3
|
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
BuildRequires: pkgconfig(xdamage) >= 1.1
|
|
|
|
BuildRequires: pkgconfig(xfixes)
|
|
|
|
BuildRequires: pkgconfig(xcb-glx) >= 1.8.1
|
|
|
|
BuildRequires: pkgconfig(xxf86vm)
|
|
|
|
BuildRequires: pkgconfig(xcb)
|
|
|
|
BuildRequires: pkgconfig(x11-xcb)
|
|
|
|
BuildRequires: pkgconfig(xcb-dri2) >= 1.8
|
|
|
|
BuildRequires: pkgconfig(xcb-dri3)
|
|
|
|
BuildRequires: pkgconfig(xcb-present)
|
|
|
|
BuildRequires: pkgconfig(xcb-sync)
|
|
|
|
BuildRequires: pkgconfig(xshmfence) >= 1.1
|
|
|
|
BuildRequires: pkgconfig(dri2proto) >= 2.8
|
|
|
|
BuildRequires: pkgconfig(glproto) >= 1.4.14
|
|
|
|
BuildRequires: pkgconfig(xcb-xfixes)
|
2019-02-14 10:18:33 +00:00
|
|
|
BuildRequires: pkgconfig(xcb-randr)
|
2018-12-04 14:30:12 +00:00
|
|
|
BuildRequires: pkgconfig(xrandr) >= 1.3
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
2023-06-30 04:10:16 +00:00
|
|
|
%if 0%{?with_lmsensors}
|
2023-06-07 12:01:07 +00:00
|
|
|
BuildRequires: lm_sensors-devel
|
2023-06-30 04:10:16 +00:00
|
|
|
%endif
|
2013-05-16 13:29:12 +00:00
|
|
|
%if 0%{?with_vdpau}
|
2018-12-04 14:30:12 +00:00
|
|
|
BuildRequires: pkgconfig(vdpau) >= 1.1
|
2013-05-16 13:29:12 +00:00
|
|
|
%endif
|
2022-10-02 16:16:54 +00:00
|
|
|
%if 0%{?with_va}
|
2018-12-04 14:30:12 +00:00
|
|
|
BuildRequires: pkgconfig(libva) >= 0.38.0
|
2014-12-14 17:58:38 +00:00
|
|
|
%endif
|
2018-12-04 14:30:12 +00:00
|
|
|
BuildRequires: pkgconfig(libelf)
|
2020-09-29 12:40:53 +00:00
|
|
|
BuildRequires: pkgconfig(libglvnd) >= 1.3.2
|
2024-05-27 09:23:48 +00:00
|
|
|
BuildRequires: llvm-devel >= %{libclc_version}
|
|
|
|
%if 0%{?with_teflon}
|
|
|
|
BuildRequires: flatbuffers-devel
|
|
|
|
BuildRequires: flatbuffers-compiler
|
|
|
|
BuildRequires: xtensor-devel
|
|
|
|
%endif
|
|
|
|
%if 0%{?with_opencl} || 0%{?with_nvk} || 0%{?with_intel_clc}
|
2018-12-04 14:30:12 +00:00
|
|
|
BuildRequires: clang-devel
|
2024-05-27 09:23:48 +00:00
|
|
|
# Build our own version
|
|
|
|
# BuildRequires: pkgconfig(libclc)
|
|
|
|
# BuildRequires: pkgconfig(LLVMSPIRVLib)
|
|
|
|
BuildRequires: pkgconfig(SPIRV-Tools)
|
|
|
|
%endif
|
|
|
|
%if 0%{?with_opencl} || 0%{?with_nvk}
|
2022-11-17 23:45:20 +00:00
|
|
|
BuildRequires: bindgen
|
|
|
|
BuildRequires: rust-packaging
|
2014-01-18 20:06:01 +00:00
|
|
|
%endif
|
2024-01-25 13:49:11 +00:00
|
|
|
%if 0%{?with_nvk}
|
2024-05-27 09:23:48 +00:00
|
|
|
BuildRequires: cbindgen
|
|
|
|
BuildRequires: (crate(paste) >= 1.0.14 with crate(paste) < 2)
|
2024-01-25 13:49:11 +00:00
|
|
|
BuildRequires: (crate(proc-macro2) >= 1.0.56 with crate(proc-macro2) < 2)
|
|
|
|
BuildRequires: (crate(quote) >= 1.0.25 with crate(quote) < 2)
|
|
|
|
BuildRequires: (crate(syn/clone-impls) >= 2.0.15 with crate(syn/clone-impls) < 3)
|
|
|
|
BuildRequires: (crate(unicode-ident) >= 1.0.6 with crate(unicode-ident) < 2)
|
|
|
|
%endif
|
2018-12-04 14:30:12 +00:00
|
|
|
%if %{with valgrind}
|
|
|
|
BuildRequires: pkgconfig(valgrind)
|
2016-11-02 12:37:57 +00:00
|
|
|
%endif
|
2018-12-04 14:30:12 +00:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-mako
|
2023-05-03 09:44:09 +00:00
|
|
|
%if 0%{?with_intel_clc}
|
2023-04-28 15:36:01 +00:00
|
|
|
BuildRequires: python3-ply
|
|
|
|
%endif
|
2024-05-27 09:23:48 +00:00
|
|
|
BuildRequires: python3-pycparser
|
2024-11-12 08:45:06 +00:00
|
|
|
# Build our own version
|
|
|
|
# BuildRequires: python3-pyyaml
|
2019-08-27 17:43:21 +00:00
|
|
|
BuildRequires: vulkan-headers
|
2021-05-05 19:47:58 +00:00
|
|
|
BuildRequires: glslang
|
2020-12-01 21:14:38 +00:00
|
|
|
%if 0%{?with_vulkan_hw}
|
|
|
|
BuildRequires: pkgconfig(vulkan)
|
2020-11-28 14:33:29 +00:00
|
|
|
%endif
|
2005-09-12 18:26:20 +00:00
|
|
|
|
|
|
|
%description
|
2016-08-14 11:01:59 +00:00
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%package filesystem
|
|
|
|
Summary: Mesa driver filesystem
|
2018-08-11 19:24:22 +00:00
|
|
|
Provides: mesa-dri-filesystem = %{?epoch:%{epoch}:}%{version}-%{release}
|
2024-11-12 08:45:06 +00:00
|
|
|
Obsoletes: mesa-omx-drivers < %{?epoch:%{epoch}:}%{version}-%{release}
|
2016-08-14 11:01:59 +00:00
|
|
|
|
|
|
|
%description filesystem
|
|
|
|
%{summary}.
|
2005-09-12 18:26:20 +00:00
|
|
|
|
2005-09-12 18:27:33 +00:00
|
|
|
%package libGL
|
2016-08-14 11:01:59 +00:00
|
|
|
Summary: Mesa libGL runtime libraries
|
2018-08-11 19:24:22 +00:00
|
|
|
Requires: %{name}-libglapi%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2020-09-29 12:40:53 +00:00
|
|
|
Requires: libglvnd-glx%{?_isa} >= 1:1.3.2
|
2022-09-25 20:56:09 +00:00
|
|
|
Recommends: %{name}-dri-drivers%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2005-09-12 18:26:20 +00:00
|
|
|
|
2005-09-12 18:27:33 +00:00
|
|
|
%description libGL
|
2016-08-14 11:01:59 +00:00
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%package libGL-devel
|
|
|
|
Summary: Mesa libGL development package
|
2018-08-11 19:24:22 +00:00
|
|
|
Requires: %{name}-libGL%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2020-09-29 12:40:53 +00:00
|
|
|
Requires: libglvnd-devel%{?_isa} >= 1:1.3.2
|
2016-08-14 11:01:59 +00:00
|
|
|
Provides: libGL-devel
|
|
|
|
Provides: libGL-devel%{?_isa}
|
2020-09-25 18:32:50 +00:00
|
|
|
Recommends: gl-manpages
|
2016-08-14 11:01:59 +00:00
|
|
|
|
|
|
|
%description libGL-devel
|
|
|
|
%{summary}.
|
2008-07-02 12:35:05 +00:00
|
|
|
|
2010-11-05 16:41:50 +00:00
|
|
|
%package libEGL
|
2016-08-14 11:01:59 +00:00
|
|
|
Summary: Mesa libEGL runtime libraries
|
2020-09-29 12:40:53 +00:00
|
|
|
Requires: libglvnd-egl%{?_isa} >= 1:1.3.2
|
2023-04-25 15:08:29 +00:00
|
|
|
Requires: %{name}-libgbm%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
Requires: %{name}-libglapi%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2022-09-25 20:56:09 +00:00
|
|
|
Recommends: %{name}-dri-drivers%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2010-11-05 16:41:50 +00:00
|
|
|
|
|
|
|
%description libEGL
|
2016-08-14 11:01:59 +00:00
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%package libEGL-devel
|
|
|
|
Summary: Mesa libEGL development package
|
2018-08-11 19:24:22 +00:00
|
|
|
Requires: %{name}-libEGL%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2020-09-29 12:40:53 +00:00
|
|
|
Requires: libglvnd-devel%{?_isa} >= 1:1.3.2
|
2019-10-25 12:59:09 +00:00
|
|
|
Requires: %{name}-khr-devel%{?_isa}
|
2016-08-14 11:01:59 +00:00
|
|
|
Provides: libEGL-devel
|
|
|
|
Provides: libEGL-devel%{?_isa}
|
|
|
|
|
|
|
|
%description libEGL-devel
|
|
|
|
%{summary}.
|
2010-11-05 18:27:39 +00:00
|
|
|
|
2008-07-02 12:35:05 +00:00
|
|
|
%package dri-drivers
|
2016-08-14 11:01:59 +00:00
|
|
|
Summary: Mesa-based DRI drivers
|
2018-08-11 19:24:22 +00:00
|
|
|
Requires: %{name}-filesystem%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2023-04-25 15:08:29 +00:00
|
|
|
Requires: %{name}-libglapi%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2022-10-10 18:57:21 +00:00
|
|
|
%if 0%{?with_va}
|
2023-04-18 07:33:39 +00:00
|
|
|
Recommends: %{name}-va-drivers%{?_isa}
|
2022-10-10 18:57:21 +00:00
|
|
|
%endif
|
2016-08-14 11:01:59 +00:00
|
|
|
|
2008-07-02 12:35:05 +00:00
|
|
|
%description dri-drivers
|
2016-08-14 11:01:59 +00:00
|
|
|
%{summary}.
|
2008-07-02 12:35:05 +00:00
|
|
|
|
2022-10-02 16:16:54 +00:00
|
|
|
%if 0%{?with_va}
|
|
|
|
%package va-drivers
|
|
|
|
Summary: Mesa-based VA-API video acceleration drivers
|
2022-09-28 23:34:51 +00:00
|
|
|
Requires: %{name}-filesystem%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2022-10-02 16:16:54 +00:00
|
|
|
Obsoletes: %{name}-vaapi-drivers < 22.2.0-5
|
2022-09-28 23:34:51 +00:00
|
|
|
|
2022-10-02 16:16:54 +00:00
|
|
|
%description va-drivers
|
2022-09-28 23:34:51 +00:00
|
|
|
%{summary}.
|
|
|
|
%endif
|
|
|
|
|
2013-05-16 13:29:12 +00:00
|
|
|
%if 0%{?with_vdpau}
|
2016-08-14 11:01:59 +00:00
|
|
|
%package vdpau-drivers
|
|
|
|
Summary: Mesa-based VDPAU drivers
|
2018-08-11 19:24:22 +00:00
|
|
|
Requires: %{name}-filesystem%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2016-08-14 11:01:59 +00:00
|
|
|
|
2013-05-08 22:03:21 +00:00
|
|
|
%description vdpau-drivers
|
2016-08-14 11:01:59 +00:00
|
|
|
%{summary}.
|
2013-05-16 13:29:12 +00:00
|
|
|
%endif
|
2013-05-08 22:03:21 +00:00
|
|
|
|
2006-08-18 19:52:19 +00:00
|
|
|
%package libOSMesa
|
2016-08-14 11:01:59 +00:00
|
|
|
Summary: Mesa offscreen rendering libraries
|
2018-08-11 19:24:22 +00:00
|
|
|
Requires: %{name}-libglapi%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2016-08-14 11:01:59 +00:00
|
|
|
Provides: libOSMesa
|
|
|
|
Provides: libOSMesa%{?_isa}
|
2006-08-18 19:52:19 +00:00
|
|
|
|
|
|
|
%description libOSMesa
|
2016-08-14 11:01:59 +00:00
|
|
|
%{summary}.
|
2007-02-20 17:56:21 +00:00
|
|
|
|
2006-08-18 19:52:19 +00:00
|
|
|
%package libOSMesa-devel
|
2016-08-14 11:01:59 +00:00
|
|
|
Summary: Mesa offscreen rendering development package
|
2018-08-11 19:24:22 +00:00
|
|
|
Requires: %{name}-libOSMesa%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2006-08-18 19:52:19 +00:00
|
|
|
|
|
|
|
%description libOSMesa-devel
|
2016-08-14 11:01:59 +00:00
|
|
|
%{summary}.
|
2007-02-20 17:56:21 +00:00
|
|
|
|
2012-02-23 19:14:04 +00:00
|
|
|
%package libgbm
|
2016-08-14 11:01:59 +00:00
|
|
|
Summary: Mesa gbm runtime library
|
|
|
|
Provides: libgbm
|
|
|
|
Provides: libgbm%{?_isa}
|
2022-09-25 20:56:09 +00:00
|
|
|
Recommends: %{name}-dri-drivers%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2023-05-05 11:43:34 +00:00
|
|
|
# If mesa-dri-drivers are installed, they must match in version. This is here to prevent using
|
|
|
|
# older mesa-dri-drivers together with a newer mesa-libgbm and its dependants.
|
|
|
|
# See https://bugzilla.redhat.com/show_bug.cgi?id=2193135 .
|
|
|
|
Requires: (%{name}-dri-drivers%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} if %{name}-dri-drivers%{?_isa})
|
2012-02-23 19:14:04 +00:00
|
|
|
|
|
|
|
%description libgbm
|
2016-08-14 11:01:59 +00:00
|
|
|
%{summary}.
|
2012-02-23 19:14:04 +00:00
|
|
|
|
|
|
|
%package libgbm-devel
|
2016-08-14 11:01:59 +00:00
|
|
|
Summary: Mesa libgbm development package
|
2018-08-11 19:24:22 +00:00
|
|
|
Requires: %{name}-libgbm%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2016-08-14 11:01:59 +00:00
|
|
|
Provides: libgbm-devel
|
|
|
|
Provides: libgbm-devel%{?_isa}
|
2012-02-23 19:14:04 +00:00
|
|
|
|
|
|
|
%description libgbm-devel
|
2016-08-14 11:01:59 +00:00
|
|
|
%{summary}.
|
2012-02-23 19:14:04 +00:00
|
|
|
|
2014-02-03 15:21:09 +00:00
|
|
|
%if 0%{?with_xa}
|
2012-03-15 13:39:24 +00:00
|
|
|
%package libxatracker
|
2016-08-14 11:01:59 +00:00
|
|
|
Summary: Mesa XA state tracker
|
|
|
|
Provides: libxatracker
|
|
|
|
Provides: libxatracker%{?_isa}
|
2012-03-15 13:39:24 +00:00
|
|
|
|
|
|
|
%description libxatracker
|
2016-08-14 11:01:59 +00:00
|
|
|
%{summary}.
|
2012-03-15 13:39:24 +00:00
|
|
|
|
|
|
|
%package libxatracker-devel
|
2016-08-14 11:01:59 +00:00
|
|
|
Summary: Mesa XA state tracker development package
|
|
|
|
Requires: %{name}-libxatracker%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
Provides: libxatracker-devel
|
|
|
|
Provides: libxatracker-devel%{?_isa}
|
2012-03-15 13:39:24 +00:00
|
|
|
|
|
|
|
%description libxatracker-devel
|
2016-08-14 11:01:59 +00:00
|
|
|
%{summary}.
|
2012-04-26 14:19:09 +00:00
|
|
|
%endif
|
2012-02-23 19:14:04 +00:00
|
|
|
|
2012-03-28 21:21:59 +00:00
|
|
|
%package libglapi
|
2016-08-14 11:01:59 +00:00
|
|
|
Summary: Mesa shared glapi
|
|
|
|
Provides: libglapi
|
|
|
|
Provides: libglapi%{?_isa}
|
2023-05-05 11:43:34 +00:00
|
|
|
# If mesa-dri-drivers are installed, they must match in version. This is here to prevent using
|
|
|
|
# older mesa-dri-drivers together with a newer mesa-libglapi or its dependants.
|
|
|
|
# See https://bugzilla.redhat.com/show_bug.cgi?id=2193135 .
|
|
|
|
Requires: (%{name}-dri-drivers%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} if %{name}-dri-drivers%{?_isa})
|
2012-03-28 21:21:59 +00:00
|
|
|
|
|
|
|
%description libglapi
|
2016-08-14 11:01:59 +00:00
|
|
|
%{summary}.
|
2014-01-18 20:06:01 +00:00
|
|
|
|
|
|
|
%if 0%{?with_opencl}
|
|
|
|
%package libOpenCL
|
2016-08-14 11:01:59 +00:00
|
|
|
Summary: Mesa OpenCL runtime library
|
|
|
|
Requires: ocl-icd%{?_isa}
|
|
|
|
Requires: libclc%{?_isa}
|
2018-08-11 19:24:22 +00:00
|
|
|
Requires: %{name}-libgbm%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2016-08-15 18:50:42 +00:00
|
|
|
Requires: opencl-filesystem
|
2016-04-08 16:49:59 +00:00
|
|
|
|
2014-01-18 20:06:01 +00:00
|
|
|
%description libOpenCL
|
2016-08-14 11:01:59 +00:00
|
|
|
%{summary}.
|
2014-01-18 20:06:01 +00:00
|
|
|
|
|
|
|
%package libOpenCL-devel
|
2016-08-14 11:01:59 +00:00
|
|
|
Summary: Mesa OpenCL development package
|
2018-08-11 19:24:22 +00:00
|
|
|
Requires: %{name}-libOpenCL%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2014-01-18 20:06:01 +00:00
|
|
|
|
|
|
|
%description libOpenCL-devel
|
2016-08-14 11:01:59 +00:00
|
|
|
%{summary}.
|
2014-01-18 20:06:01 +00:00
|
|
|
%endif
|
|
|
|
|
2024-05-27 09:23:48 +00:00
|
|
|
%if 0%{?with_teflon}
|
|
|
|
%package libTeflon
|
|
|
|
Summary: Mesa TensorFlow Lite delegate
|
|
|
|
|
|
|
|
%description libTeflon
|
|
|
|
%{summary}.
|
|
|
|
%endif
|
|
|
|
|
2014-12-14 18:15:35 +00:00
|
|
|
%if 0%{?with_nine}
|
|
|
|
%package libd3d
|
2016-08-14 11:01:59 +00:00
|
|
|
Summary: Mesa Direct3D9 state tracker
|
2014-12-14 18:15:35 +00:00
|
|
|
|
|
|
|
%description libd3d
|
2016-08-14 11:01:59 +00:00
|
|
|
%{summary}.
|
2014-12-14 18:15:35 +00:00
|
|
|
|
|
|
|
%package libd3d-devel
|
2016-08-14 11:01:59 +00:00
|
|
|
Summary: Mesa Direct3D9 state tracker development package
|
2018-08-11 19:24:22 +00:00
|
|
|
Requires: %{name}-libd3d%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2014-12-14 18:15:35 +00:00
|
|
|
|
|
|
|
%description libd3d-devel
|
2016-08-14 11:01:59 +00:00
|
|
|
%{summary}.
|
2014-12-14 18:15:35 +00:00
|
|
|
%endif
|
|
|
|
|
2016-11-02 12:37:57 +00:00
|
|
|
%package vulkan-drivers
|
|
|
|
Summary: Mesa Vulkan drivers
|
|
|
|
Requires: vulkan%{_isa}
|
2024-11-12 08:45:06 +00:00
|
|
|
Requires: %{name}-filesystem%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2022-03-21 07:22:52 +00:00
|
|
|
Obsoletes: mesa-vulkan-devel < %{?epoch:%{epoch}:}%{version}-%{release}
|
2016-11-02 12:37:57 +00:00
|
|
|
|
|
|
|
%description vulkan-drivers
|
|
|
|
The drivers with support for the Vulkan API.
|
|
|
|
|
2005-09-12 18:27:33 +00:00
|
|
|
%prep
|
2024-06-28 13:41:22 +00:00
|
|
|
%autosetup -n %{name}-%{ver} -N
|
|
|
|
%autopatch -p1 -M 99
|
2019-04-14 09:14:27 +00:00
|
|
|
cp %{SOURCE1} docs/
|
2019-05-14 20:54:35 +00:00
|
|
|
|
2024-05-27 09:23:48 +00:00
|
|
|
# Extract libclc
|
|
|
|
tar -xvf %{SOURCE3}
|
|
|
|
|
|
|
|
# Extract spirv-llvm-translator
|
|
|
|
tar -xvf %{SOURCE4}
|
|
|
|
|
2024-11-12 08:45:06 +00:00
|
|
|
# Extract python3-pyyaml
|
|
|
|
tar -xvf %{SOURCE5}
|
|
|
|
cd pyyaml-%{pyyaml_version}
|
|
|
|
%autopatch -p1 -m 500 -M 599
|
|
|
|
sed -i 's/Cython<3.0/Cython/' pyproject.toml
|
|
|
|
chmod a-x examples/yaml-highlight/yaml_hl.py
|
|
|
|
rm -rf ext/_yaml.c
|
|
|
|
cd -
|
|
|
|
|
2012-11-01 20:54:32 +00:00
|
|
|
%build
|
2024-05-27 09:23:48 +00:00
|
|
|
# Build spirv-llvm-translator
|
|
|
|
cd SPIRV-LLVM-Translator-%{spirv_llvm_trans_commit}
|
|
|
|
%cmake -GNinja \
|
|
|
|
-DLLVM_BUILD_TOOLS=ON \
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
-DCMAKE_INSTALL_RPATH:BOOL=";" \
|
|
|
|
-DLLVM_DIR="/usr/lib64/cmake/llvm/" \
|
|
|
|
%if 0%{?__isa_bits} == 64
|
|
|
|
-DLLVM_LIBDIR_SUFFIX=64 \
|
|
|
|
%else
|
|
|
|
-DLLVM_LIBDIR_SUFFIX= \
|
|
|
|
%endif
|
|
|
|
-DLLVM_EXTERNAL_PROJECTS="SPIRV-Headers" \
|
|
|
|
-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR="/usr/include/spirv/"
|
|
|
|
%cmake_build
|
|
|
|
%cmake_install
|
|
|
|
cd -
|
|
|
|
|
|
|
|
export LIBRARY_PATH=%{buildroot}%{_libdir}:$LIBRARY_PATH
|
|
|
|
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}:$LD_LIBRARY_PATH
|
|
|
|
export XDG_DATA_DIRS=%{buildroot}%{_datadir}:$XDG_DATA_DIRS
|
|
|
|
export CPATH=%{buildroot}%{_includedir}:$CPATH
|
|
|
|
export PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig:%{buildroot}%{_datadir}/pkgconfig:$PKG_CONFIG_PATH
|
|
|
|
export PATH=%{buildroot}%{_bindir}:$PATH
|
|
|
|
|
|
|
|
# Build libclc
|
|
|
|
cd libclc-%{libclc_version}.src
|
|
|
|
export CFLAGS="%{build_cflags} -D__extern_always_inline=inline"
|
|
|
|
%cmake -GNinja \
|
|
|
|
-DCMAKE_INSTALL_DATADIR:PATH=%{_lib} \
|
|
|
|
-DLIBCLC_TARGETS_TO_BUILD="spirv-mesa3d-;spirv64-mesa3d-" \
|
|
|
|
-DLLVM_SPIRV=%{buildroot}%{_bindir}/llvm-spirv
|
|
|
|
%cmake_build
|
|
|
|
%cmake_install
|
|
|
|
cd -
|
|
|
|
sed -e "s!libexecdir=!libexecdir=\/%{buildroot}!" -i %{buildroot}%{_libdir}/pkgconfig/libclc.pc
|
|
|
|
|
2024-11-12 08:45:06 +00:00
|
|
|
# Build python3-pyyaml
|
|
|
|
cd pyyaml-%{pyyaml_version}
|
|
|
|
%py3_build
|
|
|
|
%py3_install
|
|
|
|
cd -
|
|
|
|
export PYTHONPATH=%{buildroot}%{_libdir}/python%{python3_version}/site-packages
|
|
|
|
|
2023-02-05 19:33:19 +00:00
|
|
|
# ensure standard Rust compiler flags are set
|
|
|
|
export RUSTFLAGS="%build_rustflags"
|
|
|
|
|
2024-01-25 13:49:11 +00:00
|
|
|
%if 0%{?with_nvk}
|
|
|
|
export MESON_PACKAGE_CACHE_DIR="%{cargo_registry}/"
|
|
|
|
# So... Meson can't actually find them without tweaks
|
|
|
|
%define inst_crate_nameversion() %(basename %{cargo_registry}/%{1}-*)
|
|
|
|
%define rewrite_wrap_file() sed -e "/source.*/d" -e "s/%{1}-.*/%{inst_crate_nameversion %{1}}/" -i subprojects/%{1}.wrap
|
|
|
|
|
|
|
|
%rewrite_wrap_file proc-macro2
|
|
|
|
%rewrite_wrap_file quote
|
|
|
|
%rewrite_wrap_file syn
|
|
|
|
%rewrite_wrap_file unicode-ident
|
2024-05-27 09:23:48 +00:00
|
|
|
%rewrite_wrap_file paste
|
2024-01-25 13:49:11 +00:00
|
|
|
%endif
|
|
|
|
|
2024-01-31 09:17:10 +00:00
|
|
|
# We've gotten a report that enabling LTO for mesa breaks some games. See
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1862771 for details.
|
|
|
|
# Disable LTO for now
|
|
|
|
%define _lto_cflags %{nil}
|
|
|
|
|
2020-09-04 10:13:34 +00:00
|
|
|
%meson \
|
2020-11-28 14:46:08 +00:00
|
|
|
-Dplatforms=x11,wayland \
|
|
|
|
-Ddri3=enabled \
|
2021-01-29 08:25:20 +00:00
|
|
|
-Dosmesa=true \
|
2018-06-18 19:54:49 +00:00
|
|
|
%if 0%{?with_hardware}
|
2024-11-12 08:45:06 +00:00
|
|
|
-Dgallium-drivers=swrast,virgl,nouveau%{?with_r300:,r300}%{?with_crocus:,crocus}%{?with_iris:,iris}%{?with_vmware:,svga}%{?with_radeonsi:,radeonsi}%{?with_r600:,r600}%{?with_freedreno:,freedreno}%{?with_etnaviv:,etnaviv}%{?with_tegra:,tegra}%{?with_vc4:,vc4}%{?with_v3d:,v3d}%{?with_lima:,lima}%{?with_panfrost:,panfrost}%{?with_vulkan_hw:,zink} \
|
2012-07-25 06:56:27 +00:00
|
|
|
%else
|
2018-12-04 14:30:12 +00:00
|
|
|
-Dgallium-drivers=swrast,virgl \
|
|
|
|
%endif
|
2020-11-28 14:46:08 +00:00
|
|
|
-Dgallium-vdpau=%{?with_vdpau:enabled}%{!?with_vdpau:disabled} \
|
2022-10-02 16:16:54 +00:00
|
|
|
-Dgallium-va=%{?with_va:enabled}%{!?with_va:disabled} \
|
2020-11-28 14:46:08 +00:00
|
|
|
-Dgallium-xa=%{?with_xa:enabled}%{!?with_xa:disabled} \
|
2018-12-04 14:30:12 +00:00
|
|
|
-Dgallium-nine=%{?with_nine:true}%{!?with_nine:false} \
|
2024-05-27 09:23:48 +00:00
|
|
|
-Dteflon=%{?with_teflon:true}%{!?with_teflon:false} \
|
2018-12-04 14:30:12 +00:00
|
|
|
-Dgallium-opencl=%{?with_opencl:icd}%{!?with_opencl:disabled} \
|
2022-11-17 23:45:20 +00:00
|
|
|
%if 0%{?with_opencl}
|
2023-04-28 15:38:40 +00:00
|
|
|
-Dgallium-rusticl=true \
|
2022-11-17 23:45:20 +00:00
|
|
|
%endif
|
2018-12-04 14:30:12 +00:00
|
|
|
-Dvulkan-drivers=%{?vulkan_drivers} \
|
2021-05-05 19:47:58 +00:00
|
|
|
-Dvulkan-layers=device-select \
|
2020-11-28 14:46:08 +00:00
|
|
|
-Dshared-glapi=enabled \
|
2023-08-22 21:17:04 +00:00
|
|
|
-Dgles1=enabled \
|
2020-11-28 14:46:08 +00:00
|
|
|
-Dgles2=enabled \
|
2018-12-04 14:30:12 +00:00
|
|
|
-Dopengl=true \
|
2020-11-28 14:46:08 +00:00
|
|
|
-Dgbm=enabled \
|
2018-12-04 14:30:12 +00:00
|
|
|
-Dglx=dri \
|
2020-11-28 14:46:08 +00:00
|
|
|
-Degl=enabled \
|
2024-05-27 09:23:48 +00:00
|
|
|
-Dglvnd=enabled \
|
2023-05-03 09:44:09 +00:00
|
|
|
%if 0%{?with_intel_clc}
|
2023-04-28 15:36:01 +00:00
|
|
|
-Dintel-clc=enabled \
|
2023-05-03 09:44:09 +00:00
|
|
|
%endif
|
2024-05-27 09:23:48 +00:00
|
|
|
-Dintel-rt=%{?with_intel_vk_rt:enabled}%{!?with_intel_vk_rt:disabled} \
|
2021-01-29 08:25:20 +00:00
|
|
|
-Dmicrosoft-clc=disabled \
|
2020-11-28 14:46:08 +00:00
|
|
|
-Dllvm=enabled \
|
|
|
|
-Dshared-llvm=enabled \
|
|
|
|
-Dvalgrind=%{?with_valgrind:enabled}%{!?with_valgrind:disabled} \
|
2018-12-04 14:30:12 +00:00
|
|
|
-Dbuild-tests=false \
|
|
|
|
-Dselinux=true \
|
2023-06-30 04:10:16 +00:00
|
|
|
%if !0%{?with_libunwind}
|
|
|
|
-Dlibunwind=disabled \
|
|
|
|
%endif
|
|
|
|
%if !0%{?with_lmsensors}
|
|
|
|
-Dlmsensors=disabled \
|
|
|
|
%endif
|
2023-05-23 04:45:55 +00:00
|
|
|
-Dandroid-libbacktrace=disabled \
|
2023-11-23 13:35:01 +00:00
|
|
|
%ifarch %{ix86}
|
2024-05-27 09:23:48 +00:00
|
|
|
-Dglx-read-only-text=true \
|
2023-11-23 13:35:01 +00:00
|
|
|
%endif
|
2018-12-04 14:30:12 +00:00
|
|
|
%{nil}
|
|
|
|
%meson_build
|
2006-09-29 19:07:15 +00:00
|
|
|
|
2005-09-12 18:27:33 +00:00
|
|
|
%install
|
2018-12-04 14:30:12 +00:00
|
|
|
%meson_install
|
2011-09-08 21:33:52 +00:00
|
|
|
|
2024-05-27 09:23:48 +00:00
|
|
|
# Delete files installed by libclc
|
|
|
|
rm -fr %{buildroot}%{_libdir}/clc
|
|
|
|
rm -f %{buildroot}%{_libdir}/pkgconfig/libclc.pc
|
|
|
|
|
|
|
|
# Delete files installed by spirv-llvm-translator
|
|
|
|
rm -f %{buildroot}%{_bindir}/llvm-spirv
|
|
|
|
rm -fr %{buildroot}%{_includedir}/LLVMSPIRVLib
|
|
|
|
rm -f %{buildroot}%{_libdir}/libLLVMSPIRVLib.so
|
|
|
|
rm -f %{buildroot}%{_libdir}/libLLVMSPIRVLib.so.*
|
|
|
|
rm -f %{buildroot}%{_libdir}/pkgconfig/LLVMSPIRVLib.pc
|
|
|
|
|
2013-05-14 21:33:42 +00:00
|
|
|
# libvdpau opens the versioned name, don't bother including the unversioned
|
2018-12-04 14:30:12 +00:00
|
|
|
rm -vf %{buildroot}%{_libdir}/vdpau/*.so
|
2017-01-17 09:35:41 +00:00
|
|
|
# likewise glvnd
|
2018-12-04 14:30:12 +00:00
|
|
|
rm -vf %{buildroot}%{_libdir}/libGLX_mesa.so
|
|
|
|
rm -vf %{buildroot}%{_libdir}/libEGL_mesa.so
|
2017-01-17 09:35:41 +00:00
|
|
|
# XXX can we just not build this
|
2018-12-04 14:30:12 +00:00
|
|
|
rm -vf %{buildroot}%{_libdir}/libGLES*
|
2013-05-14 21:33:42 +00:00
|
|
|
|
2017-03-20 11:19:29 +00:00
|
|
|
# glvnd needs a default provider for indirect rendering where it cannot
|
|
|
|
# determine the vendor
|
2018-07-23 23:04:55 +00:00
|
|
|
ln -s %{_libdir}/libGLX_mesa.so.0 %{buildroot}%{_libdir}/libGLX_system.so.0
|
2017-03-20 11:19:29 +00:00
|
|
|
|
2009-02-23 20:25:07 +00:00
|
|
|
# this keeps breaking, check it early. note that the exit from eu-ftr is odd.
|
2016-03-20 13:48:31 +00:00
|
|
|
pushd %{buildroot}%{_libdir}
|
2009-08-06 18:04:05 +00:00
|
|
|
for i in libOSMesa*.so libGL.so ; do
|
2009-02-24 16:54:44 +00:00
|
|
|
eu-findtextrel $i && exit 1
|
|
|
|
done
|
2010-11-18 22:06:01 +00:00
|
|
|
popd
|
2009-02-23 20:25:07 +00:00
|
|
|
|
2013-05-14 21:33:42 +00:00
|
|
|
%files filesystem
|
2015-07-14 23:01:32 +00:00
|
|
|
%doc docs/Mesa-MLAA-License-Clarification-Email.txt
|
2005-09-12 18:36:48 +00:00
|
|
|
%dir %{_libdir}/dri
|
2024-11-12 08:45:06 +00:00
|
|
|
%dir %{_datadir}/drirc.d
|
2011-01-19 03:36:41 +00:00
|
|
|
|
2016-08-14 11:01:59 +00:00
|
|
|
%files libGL
|
2017-01-17 09:35:41 +00:00
|
|
|
%{_libdir}/libGLX_mesa.so.0*
|
2018-07-23 23:04:55 +00:00
|
|
|
%{_libdir}/libGLX_system.so.0*
|
2006-09-30 18:04:34 +00:00
|
|
|
%files libGL-devel
|
2024-11-12 08:45:06 +00:00
|
|
|
%dir %{_includedir}/GL
|
2007-07-24 19:56:47 +00:00
|
|
|
%dir %{_includedir}/GL/internal
|
|
|
|
%{_includedir}/GL/internal/dri_interface.h
|
2008-09-05 05:48:02 +00:00
|
|
|
%{_libdir}/pkgconfig/dri.pc
|
2012-03-19 18:05:34 +00:00
|
|
|
%{_libdir}/libglapi.so
|
2005-09-12 18:27:33 +00:00
|
|
|
|
2016-08-14 11:01:59 +00:00
|
|
|
%files libEGL
|
2017-01-17 09:35:41 +00:00
|
|
|
%{_datadir}/glvnd/egl_vendor.d/50_mesa.json
|
|
|
|
%{_libdir}/libEGL_mesa.so.0*
|
2010-11-05 16:41:50 +00:00
|
|
|
%files libEGL-devel
|
2011-07-05 20:28:52 +00:00
|
|
|
%dir %{_includedir}/EGL
|
2022-11-10 05:31:47 +00:00
|
|
|
%{_includedir}/EGL/eglext_angle.h
|
2022-11-21 13:12:00 +00:00
|
|
|
%{_includedir}/EGL/eglmesaext.h
|
2010-11-05 16:41:50 +00:00
|
|
|
|
2016-08-14 11:01:59 +00:00
|
|
|
%files libglapi
|
|
|
|
%{_libdir}/libglapi.so.0
|
|
|
|
%{_libdir}/libglapi.so.0.*
|
|
|
|
|
2006-08-18 19:52:19 +00:00
|
|
|
%files libOSMesa
|
2012-01-26 15:12:47 +00:00
|
|
|
%{_libdir}/libOSMesa.so.8*
|
2006-08-18 19:52:19 +00:00
|
|
|
%files libOSMesa-devel
|
2011-07-06 20:47:18 +00:00
|
|
|
%dir %{_includedir}/GL
|
2006-08-18 19:52:19 +00:00
|
|
|
%{_includedir}/GL/osmesa.h
|
|
|
|
%{_libdir}/libOSMesa.so
|
2011-05-10 00:17:06 +00:00
|
|
|
%{_libdir}/pkgconfig/osmesa.pc
|
2006-08-18 19:52:19 +00:00
|
|
|
|
2012-02-23 19:14:04 +00:00
|
|
|
%files libgbm
|
|
|
|
%{_libdir}/libgbm.so.1
|
|
|
|
%{_libdir}/libgbm.so.1.*
|
|
|
|
%files libgbm-devel
|
|
|
|
%{_libdir}/libgbm.so
|
|
|
|
%{_includedir}/gbm.h
|
|
|
|
%{_libdir}/pkgconfig/gbm.pc
|
|
|
|
|
2014-02-03 15:21:09 +00:00
|
|
|
%if 0%{?with_xa}
|
2012-03-15 13:39:24 +00:00
|
|
|
%files libxatracker
|
2018-12-04 14:30:12 +00:00
|
|
|
%if 0%{?with_hardware}
|
2013-12-01 12:51:48 +00:00
|
|
|
%{_libdir}/libxatracker.so.2
|
|
|
|
%{_libdir}/libxatracker.so.2.*
|
2012-03-15 13:39:24 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files libxatracker-devel
|
2018-12-04 14:30:12 +00:00
|
|
|
%if 0%{?with_hardware}
|
2012-03-15 13:39:24 +00:00
|
|
|
%{_libdir}/libxatracker.so
|
|
|
|
%{_includedir}/xa_tracker.h
|
|
|
|
%{_includedir}/xa_composite.h
|
|
|
|
%{_includedir}/xa_context.h
|
|
|
|
%{_libdir}/pkgconfig/xatracker.pc
|
|
|
|
%endif
|
2012-04-26 14:19:09 +00:00
|
|
|
%endif
|
2012-03-15 13:39:24 +00:00
|
|
|
|
2024-05-27 09:23:48 +00:00
|
|
|
%if 0%{?with_teflon}
|
|
|
|
%files libTeflon
|
|
|
|
%{_libdir}/libteflon.so
|
|
|
|
%endif
|
|
|
|
|
2014-01-18 20:06:01 +00:00
|
|
|
%if 0%{?with_opencl}
|
|
|
|
%files libOpenCL
|
|
|
|
%{_libdir}/libMesaOpenCL.so.*
|
2022-11-17 23:45:20 +00:00
|
|
|
%{_libdir}/libRusticlOpenCL.so.*
|
2014-01-18 20:06:01 +00:00
|
|
|
%{_sysconfdir}/OpenCL/vendors/mesa.icd
|
2022-11-17 23:45:20 +00:00
|
|
|
%{_sysconfdir}/OpenCL/vendors/rusticl.icd
|
2024-05-27 09:23:48 +00:00
|
|
|
|
2014-01-18 20:06:01 +00:00
|
|
|
%files libOpenCL-devel
|
|
|
|
%{_libdir}/libMesaOpenCL.so
|
2022-11-17 23:45:20 +00:00
|
|
|
%{_libdir}/libRusticlOpenCL.so
|
2014-01-18 20:06:01 +00:00
|
|
|
%endif
|
|
|
|
|
2014-12-14 18:15:35 +00:00
|
|
|
%if 0%{?with_nine}
|
|
|
|
%files libd3d
|
|
|
|
%dir %{_libdir}/d3d/
|
|
|
|
%{_libdir}/d3d/*.so.*
|
|
|
|
|
|
|
|
%files libd3d-devel
|
|
|
|
%{_libdir}/pkgconfig/d3d.pc
|
|
|
|
%{_includedir}/d3dadapter/
|
|
|
|
%{_libdir}/d3d/*.so
|
|
|
|
%endif
|
|
|
|
|
2016-08-14 11:01:59 +00:00
|
|
|
%files dri-drivers
|
2018-11-14 17:07:44 +00:00
|
|
|
%{_datadir}/drirc.d/00-mesa-defaults.conf
|
2024-11-12 08:45:06 +00:00
|
|
|
%{_libdir}/libgallium-*.so
|
2020-11-28 14:33:29 +00:00
|
|
|
%{_libdir}/dri/kms_swrast_dri.so
|
2024-11-12 08:45:06 +00:00
|
|
|
%{_libdir}/dri/libdril_dri.so
|
2020-11-28 14:33:29 +00:00
|
|
|
%{_libdir}/dri/swrast_dri.so
|
|
|
|
%{_libdir}/dri/virtio_gpu_dri.so
|
|
|
|
|
2018-12-04 14:30:12 +00:00
|
|
|
%if 0%{?with_hardware}
|
2021-03-26 15:30:08 +00:00
|
|
|
%if 0%{?with_r300}
|
2016-08-14 11:01:59 +00:00
|
|
|
%{_libdir}/dri/r300_dri.so
|
2021-03-26 15:30:08 +00:00
|
|
|
%endif
|
2018-06-05 19:31:07 +00:00
|
|
|
%if 0%{?with_radeonsi}
|
2021-03-26 15:30:08 +00:00
|
|
|
%if 0%{?with_r600}
|
2018-06-06 18:06:51 +00:00
|
|
|
%{_libdir}/dri/r600_dri.so
|
2021-03-26 15:30:08 +00:00
|
|
|
%endif
|
2016-08-14 11:01:59 +00:00
|
|
|
%{_libdir}/dri/radeonsi_dri.so
|
2018-06-05 18:52:02 +00:00
|
|
|
%endif
|
2016-08-14 11:01:59 +00:00
|
|
|
%ifarch %{ix86} x86_64
|
2021-08-05 12:39:43 +00:00
|
|
|
%{_libdir}/dri/crocus_dri.so
|
2019-09-17 19:38:37 +00:00
|
|
|
%{_libdir}/dri/iris_dri.so
|
2016-08-14 11:01:59 +00:00
|
|
|
%endif
|
2023-07-25 14:28:01 +00:00
|
|
|
%ifarch aarch64 x86_64 %{ix86}
|
2020-02-02 20:52:23 +00:00
|
|
|
%{_libdir}/dri/ingenic-drm_dri.so
|
2021-04-19 23:34:56 +00:00
|
|
|
%{_libdir}/dri/imx-drm_dri.so
|
2022-08-12 12:29:13 +00:00
|
|
|
%{_libdir}/dri/imx-lcdif_dri.so
|
2021-11-18 08:31:42 +00:00
|
|
|
%{_libdir}/dri/kirin_dri.so
|
2022-03-21 06:41:36 +00:00
|
|
|
%{_libdir}/dri/komeda_dri.so
|
2021-08-05 09:14:42 +00:00
|
|
|
%{_libdir}/dri/mali-dp_dri.so
|
2020-02-02 20:52:23 +00:00
|
|
|
%{_libdir}/dri/mcde_dri.so
|
2019-08-21 09:40:27 +00:00
|
|
|
%{_libdir}/dri/mxsfb-drm_dri.so
|
2022-03-21 06:41:36 +00:00
|
|
|
%{_libdir}/dri/rcar-du_dri.so
|
2019-08-21 09:40:27 +00:00
|
|
|
%{_libdir}/dri/stm_dri.so
|
|
|
|
%endif
|
2016-08-14 11:01:59 +00:00
|
|
|
%if 0%{?with_vc4}
|
|
|
|
%{_libdir}/dri/vc4_dri.so
|
|
|
|
%endif
|
2019-06-24 17:41:44 +00:00
|
|
|
%if 0%{?with_v3d}
|
|
|
|
%{_libdir}/dri/v3d_dri.so
|
|
|
|
%endif
|
2016-08-14 11:01:59 +00:00
|
|
|
%if 0%{?with_freedreno}
|
|
|
|
%{_libdir}/dri/kgsl_dri.so
|
|
|
|
%{_libdir}/dri/msm_dri.so
|
|
|
|
%endif
|
2017-01-21 13:48:46 +00:00
|
|
|
%if 0%{?with_etnaviv}
|
|
|
|
%{_libdir}/dri/etnaviv_dri.so
|
|
|
|
%endif
|
2018-06-15 16:21:16 +00:00
|
|
|
%if 0%{?with_tegra}
|
|
|
|
%{_libdir}/dri/tegra_dri.so
|
|
|
|
%endif
|
2019-05-09 16:42:44 +00:00
|
|
|
%if 0%{?with_lima}
|
|
|
|
%{_libdir}/dri/lima_dri.so
|
|
|
|
%endif
|
2019-05-11 19:53:40 +00:00
|
|
|
%if 0%{?with_panfrost}
|
|
|
|
%{_libdir}/dri/panfrost_dri.so
|
2024-05-27 09:23:48 +00:00
|
|
|
%{_libdir}/dri/panthor_dri.so
|
2019-05-11 19:53:40 +00:00
|
|
|
%endif
|
2016-08-14 11:01:59 +00:00
|
|
|
%{_libdir}/dri/nouveau_dri.so
|
|
|
|
%if 0%{?with_vmware}
|
|
|
|
%{_libdir}/dri/vmwgfx_dri.so
|
|
|
|
%endif
|
2018-06-05 18:52:02 +00:00
|
|
|
%endif
|
2021-02-19 18:27:27 +00:00
|
|
|
%if 0%{?with_opencl}
|
2016-08-14 11:01:59 +00:00
|
|
|
%dir %{_libdir}/gallium-pipe
|
|
|
|
%{_libdir}/gallium-pipe/*.so
|
|
|
|
%endif
|
2019-01-31 15:40:55 +00:00
|
|
|
%if 0%{?with_kmsro}
|
2019-05-08 01:36:56 +00:00
|
|
|
%{_libdir}/dri/armada-drm_dri.so
|
2019-05-08 03:55:24 +00:00
|
|
|
%{_libdir}/dri/exynos_dri.so
|
2024-01-15 15:12:15 +00:00
|
|
|
%{_libdir}/dri/gm12u320_dri.so
|
2023-11-02 08:55:15 +00:00
|
|
|
%{_libdir}/dri/hdlcd_dri.so
|
2019-01-31 15:40:55 +00:00
|
|
|
%{_libdir}/dri/hx8357d_dri.so
|
2024-01-15 15:12:15 +00:00
|
|
|
%{_libdir}/dri/ili9163_dri.so
|
2019-05-08 01:36:56 +00:00
|
|
|
%{_libdir}/dri/ili9225_dri.so
|
|
|
|
%{_libdir}/dri/ili9341_dri.so
|
2024-01-15 15:12:15 +00:00
|
|
|
%{_libdir}/dri/ili9486_dri.so
|
2020-11-30 02:28:41 +00:00
|
|
|
%{_libdir}/dri/imx-dcss_dri.so
|
|
|
|
%{_libdir}/dri/mediatek_dri.so
|
2019-05-08 01:36:56 +00:00
|
|
|
%{_libdir}/dri/meson_dri.so
|
2019-05-08 02:39:48 +00:00
|
|
|
%{_libdir}/dri/mi0283qt_dri.so
|
2024-01-15 15:12:15 +00:00
|
|
|
%{_libdir}/dri/panel-mipi-dbi_dri.so
|
2019-01-31 15:40:55 +00:00
|
|
|
%{_libdir}/dri/pl111_dri.so
|
2019-05-08 01:36:56 +00:00
|
|
|
%{_libdir}/dri/repaper_dri.so
|
|
|
|
%{_libdir}/dri/rockchip_dri.so
|
2024-05-27 09:23:48 +00:00
|
|
|
%{_libdir}/dri/rzg2l-du_dri.so
|
|
|
|
%{_libdir}/dri/ssd130x_dri.so
|
2019-05-08 02:39:48 +00:00
|
|
|
%{_libdir}/dri/st7586_dri.so
|
2019-05-08 01:36:56 +00:00
|
|
|
%{_libdir}/dri/st7735r_dri.so
|
2024-01-15 15:12:15 +00:00
|
|
|
%{_libdir}/dri/sti_dri.so
|
2019-05-08 01:36:56 +00:00
|
|
|
%{_libdir}/dri/sun4i-drm_dri.so
|
2024-01-15 15:12:15 +00:00
|
|
|
%{_libdir}/dri/udl_dri.so
|
2024-11-12 08:45:06 +00:00
|
|
|
%{_libdir}/dri/vkms_dri.so
|
2024-05-27 09:23:48 +00:00
|
|
|
%{_libdir}/dri/zynqmp-dpsub_dri.so
|
2019-01-31 15:40:55 +00:00
|
|
|
%endif
|
2020-12-01 21:14:38 +00:00
|
|
|
%if 0%{?with_vulkan_hw}
|
|
|
|
%{_libdir}/dri/zink_dri.so
|
|
|
|
%endif
|
2016-08-14 11:01:59 +00:00
|
|
|
|
2022-10-02 16:16:54 +00:00
|
|
|
%if 0%{?with_va}
|
|
|
|
%files va-drivers
|
2022-09-28 23:34:51 +00:00
|
|
|
%{_libdir}/dri/nouveau_drv_video.so
|
|
|
|
%if 0%{?with_r600}
|
|
|
|
%{_libdir}/dri/r600_drv_video.so
|
|
|
|
%endif
|
|
|
|
%if 0%{?with_radeonsi}
|
|
|
|
%{_libdir}/dri/radeonsi_drv_video.so
|
|
|
|
%endif
|
2022-11-21 13:12:00 +00:00
|
|
|
%{_libdir}/dri/virtio_gpu_drv_video.so
|
2022-09-28 23:34:51 +00:00
|
|
|
%endif
|
|
|
|
|
2016-08-14 11:01:59 +00:00
|
|
|
%if 0%{?with_vdpau}
|
|
|
|
%files vdpau-drivers
|
2024-11-12 08:45:06 +00:00
|
|
|
%dir %{_libdir}/vdpau
|
2016-08-14 11:01:59 +00:00
|
|
|
%{_libdir}/vdpau/libvdpau_nouveau.so.1*
|
2021-03-26 15:30:08 +00:00
|
|
|
%if 0%{?with_r600}
|
2018-06-06 18:06:51 +00:00
|
|
|
%{_libdir}/vdpau/libvdpau_r600.so.1*
|
2016-08-14 11:01:59 +00:00
|
|
|
%endif
|
2021-03-26 15:30:08 +00:00
|
|
|
%if 0%{?with_radeonsi}
|
|
|
|
%{_libdir}/vdpau/libvdpau_radeonsi.so.1*
|
2016-08-14 11:01:59 +00:00
|
|
|
%endif
|
2022-11-21 13:12:00 +00:00
|
|
|
%{_libdir}/vdpau/libvdpau_virtio_gpu.so.1*
|
2018-06-05 18:52:02 +00:00
|
|
|
%endif
|
2016-08-14 11:01:59 +00:00
|
|
|
|
2016-11-02 12:37:57 +00:00
|
|
|
%files vulkan-drivers
|
2020-12-01 21:14:38 +00:00
|
|
|
%{_libdir}/libvulkan_lvp.so
|
|
|
|
%{_datadir}/vulkan/icd.d/lvp_icd.*.json
|
|
|
|
%{_libdir}/libVkLayer_MESA_device_select.so
|
|
|
|
%{_datadir}/vulkan/implicit_layer.d/VkLayer_MESA_device_select.json
|
2020-11-30 02:28:41 +00:00
|
|
|
%if 0%{?with_vulkan_hw}
|
2020-12-01 21:14:38 +00:00
|
|
|
%{_libdir}/libvulkan_radeon.so
|
2022-03-19 22:54:53 +00:00
|
|
|
%{_datadir}/drirc.d/00-radv-defaults.conf
|
2020-12-01 21:14:38 +00:00
|
|
|
%{_datadir}/vulkan/icd.d/radeon_icd.*.json
|
2024-01-25 13:49:11 +00:00
|
|
|
%if 0%{?with_nvk}
|
|
|
|
%{_libdir}/libvulkan_nouveau.so
|
|
|
|
%{_datadir}/vulkan/icd.d/nouveau_icd.*.json
|
|
|
|
%endif
|
2018-06-18 19:52:47 +00:00
|
|
|
%ifarch %{ix86} x86_64
|
2016-11-02 12:37:57 +00:00
|
|
|
%{_libdir}/libvulkan_intel.so
|
2018-06-18 19:52:47 +00:00
|
|
|
%{_datadir}/vulkan/icd.d/intel_icd.*.json
|
2022-11-22 22:07:43 +00:00
|
|
|
%{_libdir}/libvulkan_intel_hasvk.so
|
|
|
|
%{_datadir}/vulkan/icd.d/intel_hasvk_icd.*.json
|
2018-06-18 19:52:47 +00:00
|
|
|
%endif
|
2023-07-25 14:28:01 +00:00
|
|
|
%ifarch aarch64 x86_64 %{ix86}
|
2020-12-01 21:14:38 +00:00
|
|
|
%{_libdir}/libvulkan_broadcom.so
|
|
|
|
%{_datadir}/vulkan/icd.d/broadcom_icd.*.json
|
|
|
|
%{_libdir}/libvulkan_freedreno.so
|
|
|
|
%{_datadir}/vulkan/icd.d/freedreno_icd.*.json
|
2021-08-20 17:10:01 +00:00
|
|
|
%{_libdir}/libvulkan_panfrost.so
|
2021-08-21 11:47:06 +00:00
|
|
|
%{_datadir}/vulkan/icd.d/panfrost_icd.*.json
|
2024-01-19 07:56:16 +00:00
|
|
|
%{_libdir}/libpowervr_rogue.so
|
|
|
|
%{_libdir}/libvulkan_powervr_mesa.so
|
|
|
|
%{_datadir}/vulkan/icd.d/powervr_mesa_icd.*.json
|
2020-12-01 21:14:38 +00:00
|
|
|
%endif
|
2020-11-30 02:28:41 +00:00
|
|
|
%endif
|
2016-11-02 12:37:57 +00:00
|
|
|
|
2005-09-12 18:26:20 +00:00
|
|
|
%changelog
|
2021-08-19 20:47:13 +00:00
|
|
|
%autochangelog
|