Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[frawhide] fix: terra-mesa provides (#1568) #1583

Merged
merged 3 commits into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions anda/lib/terra-mesa/anda.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ project pkg {
rpm {
spec = "terra-mesa.spec"
}
labels {
multilib = 1
}
}
60 changes: 35 additions & 25 deletions anda/lib/terra-mesa/terra-mesa.spec
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,25 @@ Release: %autorelease
License: MIT AND BSD-3-Clause AND SGI-B-2.0
URL: http://www.mesa3d.org

# define macro for providing srcname and ver
# %replace_pkg subpackage
%define replace_pkg() \
Provides: %{srcname}-%1 = %{?epoch:%{epoch}:}%{version}-%{release} \
Provides: %{srcname}-%1%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} \
Conflicts: %{srcname}-%1 < %{?epoch:%{epoch}:}%{version}-%{release} \
Conflicts: %{srcname}-%1%{?_isa} < %{?epoch:%{epoch}:}%{version}-%{release}



Source0: https://archive.mesa3d.org/%{srcname}-%{ver}.tar.xz
# src/gallium/auxiliary/postprocess/pp_mlaa* have an ... interestingly worded license.
# Source1 contains email correspondence clarifying the license terms.
# Fedora opts to ignore the optional part of clause 2 and treat that code as 2 clause BSD.
Source1: Mesa-MLAA-License-Clarification-Email.txt

Patch10: https://src.fedoraproject.org/rpms/mesa/raw/e89544b7a4d811a64ca23b402add29524cc6f704/f/gnome-shell-glthread-disable.patch
#Patch10: https://src.fedoraproject.org/rpms/mesa/raw/e89544b7a4d811a64ca23b402add29524cc6f704/f/gnome-shell-glthread-disable.patch
# Patch11: https://src.fedoraproject.org/rpms/mesa/raw/e89544b7a4d811a64ca23b402add29524cc6f704/f/0001-llvmpipe-Init-eglQueryDmaBufModifiersEXT-num_modifie.patch
Patch12: https://src.fedoraproject.org/rpms/mesa/raw/e89544b7a4d811a64ca23b402add29524cc6f704/f/0001-Revert-ac-radeonsi-remove-has_syncobj-has_fence_to_h.patch
#Patch12: https://src.fedoraproject.org/rpms/mesa/raw/e89544b7a4d811a64ca23b402add29524cc6f704/f/0001-Revert-ac-radeonsi-remove-has_syncobj-has_fence_to_h.patch
# s390x: fix build
# Patch100: https://src.fedoraproject.org/rpms/mesa/raw/e89544b7a4d811a64ca23b402add29524cc6f704/f/fix-egl-on-s390x.patch

Expand Down Expand Up @@ -191,15 +201,15 @@ BuildRequires: pkgconfig(vulkan)
%{summary}.

%package filesystem
Provides: %{srcname}-filesystem = %{?epoch:%{epoch}:}%{version}-%{release}
%replace_pkg filesystem
Summary: Mesa driver filesystem
Provides: mesa-dri-filesystem = %{?epoch:%{epoch}:}%{version}-%{release}

%description filesystem
%{summary}.

%package libGL
Provides: %{srcname}-libGL = %{?epoch:%{epoch}:}%{version}-%{release}
%replace_pkg libGL
Summary: Mesa libGL runtime libraries
Requires: %{name}-libglapi%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: libglvnd-glx%{?_isa} >= 1:1.3.2
Expand All @@ -209,10 +219,9 @@ Recommends: %{name}-dri-drivers%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{re
%{summary}.

%package libGL-devel
Provides: %{srcname}-libGL-devel = %{?epoch:%{epoch}:}%{version}-%{release}
%replace_pkg libGL-devel
Summary: Mesa libGL development package
Requires: %{name}-libGL%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Provides: %{srcname}-libGL-devel%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: libglvnd-devel%{?_isa} >= 1:1.3.2
Provides: libGL-devel
Provides: libGL-devel%{?_isa}
Expand All @@ -222,7 +231,7 @@ Recommends: gl-manpages
%{summary}.

%package libEGL
Provides: %{srcname}-libEGL = %{?epoch:%{epoch}:}%{version}-%{release}
%replace_pkg libEGL
Summary: Mesa libEGL runtime libraries
Requires: libglvnd-egl%{?_isa} >= 1:1.3.2
Requires: %{name}-libgbm%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Expand All @@ -232,7 +241,7 @@ Recommends: %{name}-dri-drivers%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{re
%{summary}.

%package libEGL-devel
Provides: %{srcname}-libEGL-devel = %{?epoch:%{epoch}:}%{version}-%{release}
%replace_pkg libEGL-devel
Summary: Mesa libEGL development package
Requires: %{name}-libEGL%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: libglvnd-devel%{?_isa} >= 1:1.3.2
Expand All @@ -244,7 +253,7 @@ Provides: libEGL-devel%{?_isa}
%{summary}.

%package dri-drivers
Provides: %{srcname}-dri-drivers = %{?epoch:%{epoch}:}%{version}-%{release}
%replace_pkg dri-drivers
Summary: Mesa-based DRI drivers
Requires: %{name}-filesystem%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: %{name}-libglapi%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Expand All @@ -257,7 +266,7 @@ Recommends: %{name}-va-drivers%{?_isa}

%if 0%{?with_omx}
%package omx-drivers
Provides: %{srcname}-omx-drivers = %{?epoch:%{epoch}:}%{version}-%{release}
%replace_pkg omx-drivers
Summary: Mesa-based OMX drivers
Requires: %{name}-filesystem%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}

Expand All @@ -267,6 +276,7 @@ Requires: %{name}-filesystem%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{rel

%if 0%{?with_va}
%package va-drivers
%replace_pkg va-drivers
Provides: %{srcname}-va-drivers = %{?epoch:%{epoch}:}%{version}-%{release}
Summary: Mesa-based VA-API video acceleration drivers
Requires: %{name}-filesystem%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Expand All @@ -278,7 +288,7 @@ Obsoletes: %{name}-vaapi-drivers < 22.2.0-5

%if 0%{?with_vdpau}
%package vdpau-drivers
Provides: %{srcname}-vdpau-drivers = %{?epoch:%{epoch}:}%{version}-%{release}
%replace_pkg vdpau-drivers
Summary: Mesa-based VDPAU drivers
Requires: %{name}-filesystem%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}

Expand All @@ -287,7 +297,7 @@ Requires: %{name}-filesystem%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{rel
%endif

%package libOSMesa
Provides: %{srcname}-libOSMesa = %{?epoch:%{epoch}:}%{version}-%{release}
%replace_pkg libOSMesa
Summary: Mesa offscreen rendering libraries
Requires: %{name}-libglapi%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Provides: libOSMesa
Expand All @@ -297,15 +307,15 @@ Provides: libOSMesa%{?_isa}
%{summary}.

%package libOSMesa-devel
Provides: %{srcname}-libOSMesa-devel = %{?epoch:%{epoch}:}%{version}-%{release}
%replace_pkg libOSMesa-devel
Summary: Mesa offscreen rendering development package
Requires: %{name}-libOSMesa%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}

%description libOSMesa-devel
%{summary}.

%package libgbm
Provides: %{srcname}-libgbm = %{?epoch:%{epoch}:}%{version}-%{release}
%replace_pkg libgbm
Summary: Mesa gbm runtime library
Provides: libgbm
Provides: libgbm%{?_isa}
Expand All @@ -319,7 +329,7 @@ Requires: (%{name}-dri-drivers%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{r
%{summary}.

%package libgbm-devel
Provides: %{srcname}-libgbm-devel = %{?epoch:%{epoch}:}%{version}-%{release}
%replace_pkg libgbm-devel
Summary: Mesa libgbm development package
Requires: %{name}-libgbm%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Provides: libgbm-devel
Expand All @@ -330,7 +340,7 @@ Provides: libgbm-devel%{?_isa}

%if 0%{?with_xa}
%package libxatracker
Provides: %{srcname}-libxatracker = %{?epoch:%{epoch}:}%{version}-%{release}
%replace_pkg libxatracker
Summary: Mesa XA state tracker
Provides: libxatracker
Provides: libxatracker%{?_isa}
Expand All @@ -339,7 +349,7 @@ Provides: libxatracker%{?_isa}
%{summary}.

%package libxatracker-devel
Provides: %{srcname}-libxatracker-devel = %{?epoch:%{epoch}:}%{version}-%{release}
%replace_pkg libxatracker-devel
Summary: Mesa XA state tracker development package
Requires: %{name}-libxatracker%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Provides: libxatracker-devel
Expand All @@ -350,7 +360,7 @@ Provides: libxatracker-devel%{?_isa}
%endif

%package libglapi
Provides: %{srcname}-libglapi = %{?epoch:%{epoch}:}%{version}-%{release}
%replace_pkg libglapi
Summary: Mesa shared glapi
Provides: libglapi
Provides: libglapi%{?_isa}
Expand All @@ -364,7 +374,7 @@ Requires: (%{name}-dri-drivers%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{r

%if 0%{?with_opencl}
%package libOpenCL
Provides: %{srcname}-libOpenCL = %{?epoch:%{epoch}:}%{version}-%{release}
%replace_pkg libOpenCL
Summary: Mesa OpenCL runtime library
Requires: ocl-icd%{?_isa}
Requires: libclc%{?_isa}
Expand All @@ -375,7 +385,7 @@ Requires: opencl-filesystem
%{summary}.

%package libOpenCL-devel
Provides: %{srcname}-libOpenCL-devel = %{?epoch:%{epoch}:}%{version}-%{release}
%replace_pkg libOpenCL-devel
Summary: Mesa OpenCL development package
Requires: %{name}-libOpenCL%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}

Expand All @@ -385,8 +395,8 @@ Requires: %{name}-libOpenCL%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{rele

%if 0%{?with_teflon}
%package libTeflon
%replace_pkg libTeflon
Summary: Mesa TensorFlow Lite delegate
Provides: %{srcname}-libTeflon = %{?epoch:%{epoch}:}%{version}-%{release}


%description libTeflon
Expand All @@ -395,14 +405,14 @@ Provides: %{srcname}-libTeflon = %{?epoch:%{epoch}:}%{version}-%{release}

%if 0%{?with_nine}
%package libd3d
Provides: %{srcname}-libd3d = %{?epoch:%{epoch}:}%{version}-%{release}
%replace_pkg libd3d
Summary: Mesa Direct3D9 state tracker

%description libd3d
%{summary}.

%package libd3d-devel
Provides: %{srcname}-libd3d-devel = %{?epoch:%{epoch}:}%{version}-%{release}
%replace_pkg libd3d-devel
Summary: Mesa Direct3D9 state tracker development package
Requires: %{name}-libd3d%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}

Expand All @@ -411,7 +421,7 @@ Requires: %{name}-libd3d%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release
%endif

%package vulkan-drivers
Provides: %{srcname}-vulkan-drivers = %{?epoch:%{epoch}:}%{version}-%{release}
%replace_pkg vulkan-drivers
Summary: Mesa Vulkan drivers
Requires: vulkan%{_isa}
Obsoletes: mesa-vulkan-devel < %{?epoch:%{epoch}:}%{version}-%{release}
Expand Down Expand Up @@ -771,4 +781,4 @@ popd
%endif

%changelog
%autochangelog
%autochangelog
Loading