Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3e48b86206 |
10
.gitignore
vendored
10
.gitignore
vendored
@ -1,8 +1,2 @@
|
|||||||
*.jx
|
SOURCES/mesa-25.0.7.tar.xz
|
||||||
*.src.rpm
|
SOURCES/meson-1.7.0.tar.gz
|
||||||
.build*
|
|
||||||
/mesa-*.tar.bz2
|
|
||||||
/mesa-*.tar.xz
|
|
||||||
x86_64/
|
|
||||||
results_mesa/
|
|
||||||
mesa-*/
|
|
||||||
|
|||||||
2
.mesa-compat.metadata
Normal file
2
.mesa-compat.metadata
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
7f98eca4670fe20cebb327a0d78f01d76332f861 SOURCES/mesa-25.0.7.tar.xz
|
||||||
|
df69d7e60fd4d502d2b717b35d35924c017f3068 SOURCES/meson-1.7.0.tar.gz
|
||||||
@ -1,3 +1,13 @@
|
|||||||
|
## START: Set by rpmautospec
|
||||||
|
## (rpmautospec version 0.6.5)
|
||||||
|
## RPMAUTOSPEC: autorelease, autochangelog
|
||||||
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
||||||
|
release_number = 2;
|
||||||
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
||||||
|
print(release_number + base_release_number - 1);
|
||||||
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
||||||
|
## END: Set by rpmautospec
|
||||||
|
|
||||||
%global origname mesa
|
%global origname mesa
|
||||||
|
|
||||||
# We've gotten a report that enabling LTO for mesa breaks some games. See
|
# We've gotten a report that enabling LTO for mesa breaks some games. See
|
||||||
@ -8,7 +18,7 @@
|
|||||||
Name: %{origname}-compat
|
Name: %{origname}-compat
|
||||||
Summary: Mesa graphics libraries - legacy compatibility libraries
|
Summary: Mesa graphics libraries - legacy compatibility libraries
|
||||||
%global ver 25.0.7
|
%global ver 25.0.7
|
||||||
Version: %{gsub %ver - ~}
|
Version: %{lua:ver = string.gsub(rpm.expand("%{ver}"), "-", "~"); print(ver)}
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
License: MIT AND BSD-3-Clause AND SGI-B-2.0
|
License: MIT AND BSD-3-Clause AND SGI-B-2.0
|
||||||
URL: http://www.mesa3d.org
|
URL: http://www.mesa3d.org
|
||||||
@ -19,10 +29,14 @@ Source0: https://archive.mesa3d.org/mesa-%{ver}.tar.xz
|
|||||||
# Fedora opts to ignore the optional part of clause 2 and treat that code as 2 clause BSD.
|
# 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
|
Source1: Mesa-MLAA-License-Clarification-Email.txt
|
||||||
|
|
||||||
|
# meson >= 1.3.0 is required
|
||||||
|
%global meson_ver 1.7.0
|
||||||
|
Source2: https://github.com/mesonbuild/meson/releases/download/%{meson_ver}/meson-%{meson_ver}.tar.gz
|
||||||
|
|
||||||
# fix c11/threads builds problem on f44
|
# fix c11/threads builds problem on f44
|
||||||
Patch01: 0001-c11-threads-fix-build-on-fedora-44.patch
|
Patch01: 0001-c11-threads-fix-build-on-fedora-44.patch
|
||||||
|
|
||||||
BuildRequires: meson >= 1.3.0
|
BuildRequires: meson
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
@ -82,10 +96,25 @@ Provides: deprecated()
|
|||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
|
||||||
|
# Extract mesa
|
||||||
%autosetup -n %{origname}-%{ver} -p1
|
%autosetup -n %{origname}-%{ver} -p1
|
||||||
cp %{SOURCE1} docs/
|
cp %{SOURCE1} docs/
|
||||||
|
|
||||||
|
# Extract meson
|
||||||
|
tar -xvf %{SOURCE2}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
|
# Build meson
|
||||||
|
cd meson-%{meson_ver}
|
||||||
|
%py3_build
|
||||||
|
%py3_install
|
||||||
|
%global __meson %{buildroot}%{_bindir}/meson
|
||||||
|
export PYTHONPATH=%{buildroot}%{python3_sitelib}:%{python3_sitelib}
|
||||||
|
cd -
|
||||||
|
|
||||||
|
# Build mesa
|
||||||
%meson \
|
%meson \
|
||||||
-Dplatforms= \
|
-Dplatforms= \
|
||||||
-Dosmesa=true \
|
-Dosmesa=true \
|
||||||
@ -122,8 +151,22 @@ cp %{SOURCE1} docs/
|
|||||||
%meson_build
|
%meson_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
cd meson-%{meson_ver}
|
||||||
|
%py3_install
|
||||||
|
%global __meson %{buildroot}%{_bindir}/meson
|
||||||
|
export PYTHONPATH=%{buildroot}%{python3_sitelib}:%{python3_sitelib}
|
||||||
|
cd -
|
||||||
|
|
||||||
%meson_install
|
%meson_install
|
||||||
|
|
||||||
|
# Delete files installed by meson
|
||||||
|
rm -f %{buildroot}%{_bindir}/meson
|
||||||
|
rm -rf %{buildroot}%{_mandir}/man1/meson.1*
|
||||||
|
rm -f %{buildroot}%{_datadir}/polkit-1/actions/com.mesonbuild.install.policy
|
||||||
|
rm -f %{buildroot}%{_datadir}/bash-completion/completions/meson
|
||||||
|
rm -f %{buildroot}%{_datadir}/zsh/site-functions/_meson
|
||||||
|
rm -rf %{buildroot}%{python3_sitelib}
|
||||||
|
|
||||||
# trim some garbage, the mesa base package handles these
|
# trim some garbage, the mesa base package handles these
|
||||||
rm -rf %{buildroot}%{_datadir}/drirc.d
|
rm -rf %{buildroot}%{_datadir}/drirc.d
|
||||||
rm -rf %{buildroot}%{_includedir}/GL/gl*.h
|
rm -rf %{buildroot}%{_includedir}/GL/gl*.h
|
||||||
@ -149,4 +192,11 @@ rm -rf %{buildroot}%{_includedir}/KHR
|
|||||||
%{_libdir}/pkgconfig/xatracker.pc
|
%{_libdir}/pkgconfig/xatracker.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
%autochangelog
|
## START: Generated by rpmautospec
|
||||||
|
* Fri Jan 09 2026 José Expósito <jexposit@redhat.com> - 25.0.7-2
|
||||||
|
- Enable gating
|
||||||
|
|
||||||
|
* Fri Jan 09 2026 José Expósito <jexposit@redhat.com> - 25.0.7-1
|
||||||
|
- Initial commit on c9s Resolves:
|
||||||
|
https://issues.redhat.com/browse/RHEL-132415
|
||||||
|
## END: Generated by rpmautospec
|
||||||
@ -1,6 +0,0 @@
|
|||||||
--- !Policy
|
|
||||||
product_versions:
|
|
||||||
- rhel-10
|
|
||||||
decision_context: osci_compose_gate
|
|
||||||
rules:
|
|
||||||
- !PassingTestCaseRule {test_case_name: desktop-qe.desktop-ci.tier1-gating.functional}
|
|
||||||
Loading…
Reference in New Issue
Block a user