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.1 |
%define main_version 17.3.0 |
21 |
#define relc 5 |
%define relc 3 |
22 |
%define rel 2 |
%define rel 1 |
23 |
|
|
24 |
%define release %mkrel %{?relc:0.rc%{relc}.}%{rel} |
%define release %mkrel %{?relc:0.rc%{relc}.}%{rel} |
25 |
|
|
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 |
|
|
173 |
# http://pkgs.fedoraproject.org/cgit/rpms/mesa.git/ |
# http://pkgs.fedoraproject.org/cgit/rpms/mesa.git/ |
174 |
# git format-patch --start-number 300 mdv-cherry-picks..mdv-redhat |
# git format-patch --start-number 300 mdv-cherry-picks..mdv-redhat |
175 |
|
|
176 |
|
# https://cgit.freedesktop.org/~ajax/mesa/log/?h=mesa-17.2-s3tc |
177 |
|
|
178 |
# Patches from ChromiumOS |
# Patches from ChromiumOS |
179 |
# 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 |
180 |
|
|
198 |
Provides: %{oldlibglname} = %{version}-%{release} |
Provides: %{oldlibglname} = %{version}-%{release} |
199 |
Provides: %{libglname_virt} = %{version}-%{release} |
Provides: %{libglname_virt} = %{version}-%{release} |
200 |
Requires: %{dridrivers} >= %{version}-%{release} |
Requires: %{dridrivers} >= %{version}-%{release} |
|
%if %{build_plf} |
|
|
Requires: %mklibname txc-dxtn |
|
|
%endif |
|
201 |
|
|
202 |
# (anssi) Forces the upgrade of x11-server-common to happen before |
# (anssi) Forces the upgrade of x11-server-common to happen before |
203 |
# alternatives removal, which allows x11-server-common to grab the symlink. |
# alternatives removal, which allows x11-server-common to grab the symlink. |
398 |
|
|
399 |
%description |
%description |
400 |
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 |
|
401 |
|
|
402 |
%description common-devel |
%description common-devel |
403 |
Mesa common metapackage devel |
Mesa common metapackage devel |
414 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
415 |
GL and GLX parts. |
GL and GLX parts. |
416 |
|
|
|
%if %{build_plf} |
|
|
This package is in the "tainted" section because it enables some |
|
|
OpenGL extentions that are covered by software patents. |
|
|
%endif |
|
|
|
|
417 |
%description -n %{dridrivers} |
%description -n %{dridrivers} |
418 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
419 |
DRI drivers. |
DRI drivers. |
515 |
%prep |
%prep |
516 |
%autosetup -n %{name}-%{version}%{?relc:-rc%{relc}} -p1 |
%autosetup -n %{name}-%{version}%{?relc:-rc%{relc}} -p1 |
517 |
|
|
518 |
|
# this is a hack for S3TC support. r200_screen.c is symlinked to |
519 |
|
# radeon_screen.c in git, but is its own file in the tarball. |
520 |
|
cp -f src/mesa/drivers/dri/{radeon,r200}/radeon_screen.c |
521 |
|
|
522 |
%build |
%build |
523 |
# (re)generate auto* generated files using our autotools and libtoolize |
# (re)generate auto* generated files using our autotools and libtoolize |
524 |
autoreconf -vfi |
autoreconf -vfi |
543 |
--enable-gbm \ |
--enable-gbm \ |
544 |
--enable-glx \ |
--enable-glx \ |
545 |
--enable-glx-tls \ |
--enable-glx-tls \ |
|
%if %{build_plf} |
|
546 |
--enable-texture-float=yes \ |
--enable-texture-float=yes \ |
|
%endif |
|
547 |
--enable-llvm \ |
--enable-llvm \ |
548 |
--enable-dri \ |
--enable-dri \ |
549 |
--enable-xa \ |
--enable-xa \ |
550 |
--enable-nine \ |
--enable-nine \ |
551 |
--with-gallium-drivers=r300,r600,radeonsi,nouveau,svga,swrast,virgl \ |
--with-gallium-drivers=r300,r600,radeonsi,nouveau,swrast,virgl%{?gallium_platform_drivers} \ |
552 |
%{?dri_drivers} |
%{?dri_drivers} |
553 |
# end of configure options |
# end of configure options |
554 |
|
|