23 |
|
|
24 |
%define relc 0 |
%define relc 0 |
25 |
%define name mesa |
%define name mesa |
26 |
%define fversion 9.2.4 |
%define fversion 10.0.0 |
27 |
%define version 9.2.4 |
%define version 10.0.0 |
28 |
%define rel 1 |
%define rel 1 |
29 |
|
|
30 |
%define release %mkrel %{rel} |
%define release %mkrel %{rel} |
48 |
|
|
49 |
%define makedepend %{_bindir}/gccmakedep |
%define makedepend %{_bindir}/gccmakedep |
50 |
|
|
|
%define dricorename dricore |
|
51 |
%define eglname mesaegl |
%define eglname mesaegl |
52 |
%define glname mesagl |
%define glname mesagl |
53 |
%define glwname mesaglw |
%define glwname mesaglw |
58 |
%define gbmname gbm |
%define gbmname gbm |
59 |
%define waylandeglname wayland-egl |
%define waylandeglname wayland-egl |
60 |
|
|
|
%define dricoremajor 1 |
|
61 |
%define eglmajor 1 |
%define eglmajor 1 |
62 |
%define glmajor 1 |
%define glmajor 1 |
63 |
%define glwmajor 1 |
%define glwmajor 1 |
69 |
%define waylandeglmajor 1 |
%define waylandeglmajor 1 |
70 |
%define osmesamajor 8 |
%define osmesamajor 8 |
71 |
|
|
|
%define libdricorename %mklibname %{dricorename} %{dricoremajor} |
|
72 |
%define libeglname %mklibname %{eglname} %{eglmajor} |
%define libeglname %mklibname %{eglname} %{eglmajor} |
73 |
%define libglname %mklibname %{glname} %{glmajor} |
%define libglname %mklibname %{glname} %{glmajor} |
74 |
%define libglwname %mklibname %{glwname} %{glwmajor} |
%define libglwname %mklibname %{glwname} %{glwmajor} |
85 |
%define osmesadevel %mklibname osmesa -d |
%define osmesadevel %mklibname osmesa -d |
86 |
|
|
87 |
# Architecture-independent Virtual provides: |
# Architecture-independent Virtual provides: |
|
%define libdricorename_virt lib%{dricorename} |
|
88 |
%define libeglname_virt lib%{eglname} |
%define libeglname_virt lib%{eglname} |
89 |
%define libglname_virt lib%{glname} |
%define libglname_virt lib%{glname} |
90 |
%define libglwname_virt lib%{glwname} |
%define libglwname_virt lib%{glwname} |
131 |
BuildRequires: libexpat-devel >= 2.0.1 |
BuildRequires: libexpat-devel >= 2.0.1 |
132 |
BuildRequires: gccmakedep |
BuildRequires: gccmakedep |
133 |
BuildRequires: x11-proto-devel >= 7.3 |
BuildRequires: x11-proto-devel >= 7.3 |
134 |
BuildRequires: pkgconfig(libdrm) >= 2.4.21 |
BuildRequires: pkgconfig(libdrm) >= 2.4.49 |
135 |
|
|
136 |
BuildRequires: pkgconfig(xext) >= 1.1.1 |
BuildRequires: pkgconfig(xext) >= 1.1.1 |
137 |
BuildRequires: pkgconfig(xxf86vm) >= 1.1.0 |
BuildRequires: pkgconfig(xxf86vm) >= 1.1.0 |
202 |
Provides: Mesa = %{version} |
Provides: Mesa = %{version} |
203 |
Obsoletes: Mesa < %{version} |
Obsoletes: Mesa < %{version} |
204 |
|
|
|
%package -n %{libdricorename} |
|
|
Summary: Shared library for DRI drivers |
|
|
Group: System/Libraries |
|
|
Provides: %{libdricorename_virt} = %{version}-%{release} |
|
|
|
|
|
%package -n %{libdricorename}-devel |
|
|
Summary: Development files for DRI core |
|
|
Group: Development/C |
|
|
Requires: %{libdricorename} = %{version}-%{release} |
|
|
Provides: lib%{dricorename}-devel = %{version}-%{release} |
|
|
Provides: %{dricorename}-devel = %{version}-%{release} |
|
|
|
|
205 |
%package -n %{libglname} |
%package -n %{libglname} |
206 |
Summary: Files for Mesa (GL and GLX libs) |
Summary: Files for Mesa (GL and GLX libs) |
207 |
Group: System/Libraries |
Group: System/Libraries |
351 |
# temporary: |
# temporary: |
352 |
%rename vdpau-driver-nouveau |
%rename vdpau-driver-nouveau |
353 |
|
|
|
%package -n %{_lib}vdpau-driver-r300 |
|
|
Summary: VDPAU plugin for r300 driver |
|
|
Group: System/Libraries |
|
|
# temporary: |
|
|
%rename vdpau-driver-r300 |
|
|
|
|
354 |
%package -n %{_lib}vdpau-driver-r600 |
%package -n %{_lib}vdpau-driver-r600 |
355 |
Summary: VDPAU plugin for r600 driver |
Summary: VDPAU plugin for r600 driver |
356 |
Group: System/Libraries |
Group: System/Libraries |
363 |
# temporary: |
# temporary: |
364 |
%rename vdpau-driver-radeonsi |
%rename vdpau-driver-radeonsi |
365 |
|
|
|
%package -n %{_lib}vdpau-driver-softpipe |
|
|
Summary: VDPAU plugin for softpipe driver |
|
|
Group: System/Libraries |
|
|
# temporary: |
|
|
%rename vdpau-driver-softpipe |
|
|
|
|
366 |
%package common-devel |
%package common-devel |
367 |
Summary: Meta package for mesa devel |
Summary: Meta package for mesa devel |
368 |
Group: Development/C |
Group: Development/C |
400 |
EGL development parts. |
EGL development parts. |
401 |
%endif |
%endif |
402 |
|
|
|
%description -n %{libdricorename} |
|
|
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
|
|
DRI core part. |
|
|
|
|
403 |
%description -n %{libglname} |
%description -n %{libglname} |
404 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
405 |
GL and GLX parts. |
GL and GLX parts. |
413 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
414 |
DRI drivers. |
DRI drivers. |
415 |
|
|
|
%description -n %{libdricorename}-devel |
|
|
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
|
|
|
|
|
This package contains the headers needed to compile DRI drivers. |
|
|
|
|
416 |
%description -n %{libglname}-devel |
%description -n %{libglname}-devel |
417 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
418 |
|
|
479 |
This packages provides a VPDAU plugin to enable video acceleration |
This packages provides a VPDAU plugin to enable video acceleration |
480 |
with the nouveau driver. |
with the nouveau driver. |
481 |
|
|
|
%description -n %{_lib}vdpau-driver-r300 |
|
|
This packages provides a VPDAU plugin to enable video acceleration |
|
|
with the r300 driver. |
|
|
|
|
482 |
%description -n %{_lib}vdpau-driver-r600 |
%description -n %{_lib}vdpau-driver-r600 |
483 |
This packages provides a VPDAU plugin to enable video acceleration |
This packages provides a VPDAU plugin to enable video acceleration |
484 |
with the r600 driver. |
with the r600 driver. |
487 |
This packages provides a VPDAU plugin to enable video acceleration |
This packages provides a VPDAU plugin to enable video acceleration |
488 |
with the radeonsi driver. |
with the radeonsi driver. |
489 |
|
|
|
%description -n %{_lib}vdpau-driver-softpipe |
|
|
This packages provides a VPDAU plugin to enable video acceleration |
|
|
with the softpipe driver. |
|
|
|
|
490 |
#------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------ |
491 |
|
|
492 |
%prep |
%prep |
600 |
%doc docs/COPYING |
%doc docs/COPYING |
601 |
%config(noreplace) %{_sysconfdir}/drirc |
%config(noreplace) %{_sysconfdir}/drirc |
602 |
|
|
|
%files -n %{libdricorename} |
|
|
%{_libdir}/libdricore%{version}%{vsuffix}.so.%{dricoremajor} |
|
|
%{_libdir}/libdricore%{version}%{vsuffix}.so.%{dricoremajor}.* |
|
|
|
|
|
%files -n %{libdricorename}-devel |
|
|
%{_libdir}/libdricore%{version}%{vsuffix}.so |
|
|
|
|
603 |
%files -n %{dridrivers} |
%files -n %{dridrivers} |
604 |
%defattr(-,root,root) |
%defattr(-,root,root) |
605 |
%doc docs/COPYING |
%doc docs/COPYING |
744 |
%files -n %{_lib}vdpau-driver-nouveau |
%files -n %{_lib}vdpau-driver-nouveau |
745 |
%{_libdir}/vdpau/libvdpau_nouveau.so.* |
%{_libdir}/vdpau/libvdpau_nouveau.so.* |
746 |
|
|
|
%files -n %{_lib}vdpau-driver-r300 |
|
|
%{_libdir}/vdpau/libvdpau_r300.so.* |
|
|
|
|
747 |
%files -n %{_lib}vdpau-driver-r600 |
%files -n %{_lib}vdpau-driver-r600 |
748 |
%{_libdir}/vdpau/libvdpau_r600.so.* |
%{_libdir}/vdpau/libvdpau_r600.so.* |
749 |
|
|
750 |
%files -n %{_lib}vdpau-driver-radeonsi |
%files -n %{_lib}vdpau-driver-radeonsi |
751 |
%{_libdir}/vdpau/libvdpau_radeonsi.so.* |
%{_libdir}/vdpau/libvdpau_radeonsi.so.* |
752 |
|
|
|
%files -n %{_lib}vdpau-driver-softpipe |
|
|
%{_libdir}/vdpau/libvdpau_softpipe.so.* |
|