12 |
|
|
13 |
# https://cgit.freedesktop.org/mesa/mesa/commit/?h=13.0&id=3bb0415ab96f74183f7aa58c1a543448653ccb3e |
# https://cgit.freedesktop.org/mesa/mesa/commit/?h=13.0&id=3bb0415ab96f74183f7aa58c1a543448653ccb3e |
14 |
%define git 0 |
%define git 0 |
15 |
%define git_branch 17.1 |
%define git_branch 17.3 |
16 |
|
|
17 |
%define opengl_ver 4.5 |
%define opengl_ver 4.5 |
18 |
|
|
19 |
# define version, RC & release |
# define version, RC & release |
20 |
%define main_version 17.2.2 |
%define main_version 17.3.0 |
21 |
#define relc 5 |
%define relc 4 |
22 |
%define rel 2 |
%define rel 2 |
23 |
|
|
24 |
%define release %mkrel %{?relc:0.rc%{relc}.}%{rel} |
%define release %mkrel %{?relc:0.rc%{relc}.}%{rel} |
99 |
%define base_drivers swrast,nouveau,radeon,r200 |
%define base_drivers swrast,nouveau,radeon,r200 |
100 |
%ifarch %{ix86} x86_64 |
%ifarch %{ix86} x86_64 |
101 |
%define platform_drivers ,i915,i965 |
%define platform_drivers ,i915,i965 |
102 |
|
%define gallium_platform_drivers ,svga |
103 |
%endif |
%endif |
104 |
%define dri_drivers --with-dri-drivers=%{?base_drivers}%{?platform_drivers} |
%define dri_drivers --with-dri-drivers=%{?base_drivers}%{?platform_drivers} |
105 |
|
|
166 |
# In order to update to the branch via patches, issue this command: |
# In order to update to the branch via patches, issue this command: |
167 |
# git format-patch --start-number 100 mesa_7_5_1..mesa_7_5_branch | sed 's/^0\([0-9]\+\)-/Patch\1: 0\1-/' |
# git format-patch --start-number 100 mesa_7_5_1..mesa_7_5_branch | sed 's/^0\([0-9]\+\)-/Patch\1: 0\1-/' |
168 |
|
|
169 |
|
# from mesa master: https://cgit.freedesktop.org/mesa/mesa/commit/?id=c591b1e59454db2e8854e36852e0d413ce38b2f2 |
170 |
|
Patch100: i965-expose-SRGB-visuals-and-turn-on-EGL_KHR_gl-colorspace.patch |
171 |
|
|
172 |
# Cherry picks |
# Cherry picks |
173 |
# git format-patch --start-number 200 mesa_7_5_branch..mdv-cherry-picks |
# git format-patch --start-number 200 mesa_7_5_branch..mdv-cherry-picks |
174 |
|
|
176 |
# http://pkgs.fedoraproject.org/cgit/rpms/mesa.git/ |
# http://pkgs.fedoraproject.org/cgit/rpms/mesa.git/ |
177 |
# git format-patch --start-number 300 mdv-cherry-picks..mdv-redhat |
# git format-patch --start-number 300 mdv-cherry-picks..mdv-redhat |
178 |
|
|
179 |
|
# https://cgit.freedesktop.org/~ajax/mesa/log/?h=mesa-17.2-s3tc |
180 |
|
|
181 |
# Patches from ChromiumOS |
# Patches from ChromiumOS |
182 |
# http://git.chromium.org/gitweb/?p=chromiumos/overlays/chromiumos-overlay.git;a=tree;f=media-libs/mesa/files;hb=HEAD |
# http://git.chromium.org/gitweb/?p=chromiumos/overlays/chromiumos-overlay.git;a=tree;f=media-libs/mesa/files;hb=HEAD |
183 |
|
|
201 |
Provides: %{oldlibglname} = %{version}-%{release} |
Provides: %{oldlibglname} = %{version}-%{release} |
202 |
Provides: %{libglname_virt} = %{version}-%{release} |
Provides: %{libglname_virt} = %{version}-%{release} |
203 |
Requires: %{dridrivers} >= %{version}-%{release} |
Requires: %{dridrivers} >= %{version}-%{release} |
|
%if %{build_plf} |
|
|
Requires: %mklibname txc-dxtn |
|
|
%endif |
|
204 |
|
|
205 |
# (anssi) Forces the upgrade of x11-server-common to happen before |
# (anssi) Forces the upgrade of x11-server-common to happen before |
206 |
# alternatives removal, which allows x11-server-common to grab the symlink. |
# alternatives removal, which allows x11-server-common to grab the symlink. |
401 |
|
|
402 |
%description |
%description |
403 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
|
%if %{build_plf} |
|
|
|
|
|
This package is in the "tainted" section because it enables some |
|
|
OpenGL extentions that are covered by software patents. |
|
|
%endif |
|
404 |
|
|
405 |
%description common-devel |
%description common-devel |
406 |
Mesa common metapackage devel |
Mesa common metapackage devel |
417 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
418 |
GL and GLX parts. |
GL and GLX parts. |
419 |
|
|
|
%if %{build_plf} |
|
|
This package is in the "tainted" section because it enables some |
|
|
OpenGL extentions that are covered by software patents. |
|
|
%endif |
|
|
|
|
420 |
%description -n %{dridrivers} |
%description -n %{dridrivers} |
421 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
422 |
DRI drivers. |
DRI drivers. |
518 |
%prep |
%prep |
519 |
%autosetup -n %{name}-%{version}%{?relc:-rc%{relc}} -p1 |
%autosetup -n %{name}-%{version}%{?relc:-rc%{relc}} -p1 |
520 |
|
|
521 |
|
# this is a hack for S3TC support. r200_screen.c is symlinked to |
522 |
|
# radeon_screen.c in git, but is its own file in the tarball. |
523 |
|
cp -f src/mesa/drivers/dri/{radeon,r200}/radeon_screen.c |
524 |
|
|
525 |
%build |
%build |
526 |
# (re)generate auto* generated files using our autotools and libtoolize |
# (re)generate auto* generated files using our autotools and libtoolize |
527 |
autoreconf -vfi |
autoreconf -vfi |
546 |
--enable-gbm \ |
--enable-gbm \ |
547 |
--enable-glx \ |
--enable-glx \ |
548 |
--enable-glx-tls \ |
--enable-glx-tls \ |
|
%if %{build_plf} |
|
549 |
--enable-texture-float=yes \ |
--enable-texture-float=yes \ |
|
%endif |
|
550 |
--enable-llvm \ |
--enable-llvm \ |
551 |
--enable-dri \ |
--enable-dri \ |
552 |
--enable-xa \ |
--enable-xa \ |
553 |
--enable-nine \ |
--enable-nine \ |
554 |
--with-gallium-drivers=r300,r600,radeonsi,nouveau,svga,swrast,virgl \ |
--with-gallium-drivers=r300,r600,radeonsi,nouveau,swrast,virgl%{?gallium_platform_drivers} \ |
555 |
%{?dri_drivers} |
%{?dri_drivers} |
556 |
# end of configure options |
# end of configure options |
557 |
|
|