|
%if "%distro_section" == "tainted" |
|
|
%global build_plf 1 |
|
|
%else |
|
|
%global build_plf 0 |
|
|
%endif |
|
|
|
|
1 |
# (cg) Cheater... |
# (cg) Cheater... |
2 |
%define Werror_cflags %nil |
%define Werror_cflags %nil |
3 |
|
|
6 |
|
|
7 |
# https://cgit.freedesktop.org/mesa/mesa/commit/?h=13.0&id=3bb0415ab96f74183f7aa58c1a543448653ccb3e |
# https://cgit.freedesktop.org/mesa/mesa/commit/?h=13.0&id=3bb0415ab96f74183f7aa58c1a543448653ccb3e |
8 |
%define git 0 |
%define git 0 |
9 |
%define git_branch 17.1 |
%define git_branch 18.0 |
10 |
|
|
11 |
%define opengl_ver 4.5 |
%define opengl_ver 4.5 |
12 |
|
|
13 |
# define version, RC & release |
# define version, RC & release |
14 |
%define main_version 17.2.1 |
%define main_version 18.0.0 |
15 |
#define relc 5 |
%define relc 5 |
16 |
%define rel 3 |
%define rel 2 |
17 |
|
|
18 |
%define release %mkrel %{?relc:0.rc%{relc}.}%{rel} |
%define release %mkrel %{?relc:0.rc%{relc}.}%{rel} |
19 |
|
|
93 |
%define base_drivers swrast,nouveau,radeon,r200 |
%define base_drivers swrast,nouveau,radeon,r200 |
94 |
%ifarch %{ix86} x86_64 |
%ifarch %{ix86} x86_64 |
95 |
%define platform_drivers ,i915,i965 |
%define platform_drivers ,i915,i965 |
96 |
|
%define gallium_platform_drivers ,svga |
97 |
%endif |
%endif |
98 |
%define dri_drivers --with-dri-drivers=%{?base_drivers}%{?platform_drivers} |
%define dri_drivers --with-dri-drivers=%{?base_drivers}%{?platform_drivers} |
99 |
|
|
115 |
BuildRequires: pkgconfig(expat) >= 2.0.1 |
BuildRequires: pkgconfig(expat) >= 2.0.1 |
116 |
BuildRequires: gccmakedep |
BuildRequires: gccmakedep |
117 |
BuildRequires: x11-proto-devel >= 7.3 |
BuildRequires: x11-proto-devel >= 7.3 |
118 |
BuildRequires: pkgconfig(libdrm) >= 2.4.60 |
BuildRequires: pkgconfig(libdrm) >= 2.4.91 |
119 |
BuildRequires: pkgconfig(xcb-dri3) |
BuildRequires: pkgconfig(xcb-dri3) |
120 |
BuildRequires: pkgconfig(xcb-present) >= 1.11 |
BuildRequires: pkgconfig(xcb-present) >= 1.11 |
121 |
BuildRequires: pkgconfig(xext) >= 1.1.1 |
BuildRequires: pkgconfig(xext) >= 1.1.1 |
167 |
# http://pkgs.fedoraproject.org/cgit/rpms/mesa.git/ |
# http://pkgs.fedoraproject.org/cgit/rpms/mesa.git/ |
168 |
# git format-patch --start-number 300 mdv-cherry-picks..mdv-redhat |
# git format-patch --start-number 300 mdv-cherry-picks..mdv-redhat |
169 |
|
|
170 |
|
# https://cgit.freedesktop.org/~ajax/mesa/log/?h=mesa-17.2-s3tc |
171 |
|
|
172 |
# Patches from ChromiumOS |
# Patches from ChromiumOS |
173 |
# 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 |
174 |
|
|
192 |
Provides: %{oldlibglname} = %{version}-%{release} |
Provides: %{oldlibglname} = %{version}-%{release} |
193 |
Provides: %{libglname_virt} = %{version}-%{release} |
Provides: %{libglname_virt} = %{version}-%{release} |
194 |
Requires: %{dridrivers} >= %{version}-%{release} |
Requires: %{dridrivers} >= %{version}-%{release} |
|
%if %{build_plf} |
|
|
Requires: %mklibname txc-dxtn |
|
|
%endif |
|
195 |
|
|
196 |
# (anssi) Forces the upgrade of x11-server-common to happen before |
# (anssi) Forces the upgrade of x11-server-common to happen before |
197 |
# alternatives removal, which allows x11-server-common to grab the symlink. |
# alternatives removal, which allows x11-server-common to grab the symlink. |
392 |
|
|
393 |
%description |
%description |
394 |
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 |
|
395 |
|
|
396 |
%description common-devel |
%description common-devel |
397 |
Mesa common metapackage devel |
Mesa common metapackage devel |
408 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
409 |
GL and GLX parts. |
GL and GLX parts. |
410 |
|
|
|
%if %{build_plf} |
|
|
This package is in the "tainted" section because it enables some |
|
|
OpenGL extentions that are covered by software patents. |
|
|
%endif |
|
|
|
|
411 |
%description -n %{dridrivers} |
%description -n %{dridrivers} |
412 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
413 |
DRI drivers. |
DRI drivers. |
509 |
%prep |
%prep |
510 |
%autosetup -n %{name}-%{version}%{?relc:-rc%{relc}} -p1 |
%autosetup -n %{name}-%{version}%{?relc:-rc%{relc}} -p1 |
511 |
|
|
512 |
|
# this is a hack for S3TC support. r200_screen.c is symlinked to |
513 |
|
# radeon_screen.c in git, but is its own file in the tarball. |
514 |
|
cp -f src/mesa/drivers/dri/{radeon,r200}/radeon_screen.c |
515 |
|
|
516 |
%build |
%build |
517 |
# (re)generate auto* generated files using our autotools and libtoolize |
# (re)generate auto* generated files using our autotools and libtoolize |
518 |
autoreconf -vfi |
autoreconf -vfi |
537 |
--enable-gbm \ |
--enable-gbm \ |
538 |
--enable-glx \ |
--enable-glx \ |
539 |
--enable-glx-tls \ |
--enable-glx-tls \ |
|
%if %{build_plf} |
|
540 |
--enable-texture-float=yes \ |
--enable-texture-float=yes \ |
|
%endif |
|
541 |
--enable-llvm \ |
--enable-llvm \ |
542 |
--enable-dri \ |
--enable-dri \ |
543 |
--enable-xa \ |
--enable-xa \ |
544 |
--enable-nine \ |
--enable-nine \ |
545 |
--with-gallium-drivers=r300,r600,radeonsi,nouveau,svga,swrast,virgl \ |
--with-gallium-drivers=r300,r600,radeonsi,nouveau,swrast,virgl%{?gallium_platform_drivers} \ |
546 |
%{?dri_drivers} |
%{?dri_drivers} |
547 |
# end of configure options |
# end of configure options |
548 |
|
|