16 |
|
|
17 |
# http://cgit.freedesktop.org/mesa/mesa/commit/?h=9.1&id=38e728498b8ef63bb7dce77c64af11c98ec2efa4 |
# http://cgit.freedesktop.org/mesa/mesa/commit/?h=9.1&id=38e728498b8ef63bb7dce77c64af11c98ec2efa4 |
18 |
%define git 0 |
%define git 0 |
19 |
%define 0it_branch 9.2 |
%define git_branch 9.2 |
20 |
%define with_hardware 1 |
%define with_hardware 1 |
21 |
|
|
22 |
%define opengl_ver 3.0 |
%define opengl_ver 3.0 |
25 |
%define name mesa |
%define name mesa |
26 |
%define fversion 10.2.1 |
%define fversion 10.2.1 |
27 |
%define version 10.2.1 |
%define version 10.2.1 |
28 |
%define rel 0.1 |
%define rel 1 |
29 |
|
|
30 |
%define release %mkrel %{rel} |
%define release %mkrel %{rel} |
31 |
%define src_type tar.bz2 |
%define src_type tar.bz2 |
57 |
%define glapiname glapi |
%define glapiname glapi |
58 |
%define gbmname gbm |
%define gbmname gbm |
59 |
%define waylandeglname wayland-egl |
%define waylandeglname wayland-egl |
60 |
|
%define xaname xatracker |
61 |
|
|
62 |
%define eglmajor 1 |
%define eglmajor 1 |
63 |
%define glmajor 1 |
%define glmajor 1 |
69 |
%define gbmmajor 1 |
%define gbmmajor 1 |
70 |
%define waylandeglmajor 1 |
%define waylandeglmajor 1 |
71 |
%define osmesamajor 8 |
%define osmesamajor 8 |
72 |
|
%define xamajor 2 |
73 |
|
|
74 |
%define libeglname %mklibname %{eglname} %{eglmajor} |
%define libeglname %mklibname %{eglname} %{eglmajor} |
75 |
%define libglname %mklibname %{glname} %{glmajor} |
%define libglname %mklibname %{glname} %{glmajor} |
81 |
%define libgbmname %mklibname %{gbmname} %{gbmmajor} |
%define libgbmname %mklibname %{gbmname} %{gbmmajor} |
82 |
%define libwaylandeglname %mklibname %{waylandeglname} %{waylandeglmajor} |
%define libwaylandeglname %mklibname %{waylandeglname} %{waylandeglmajor} |
83 |
%define libosmesaname %mklibname osmesa %{osmesamajor} |
%define libosmesaname %mklibname osmesa %{osmesamajor} |
84 |
|
%define libxaname %mklibname %{xaname} %{xamajor} |
85 |
|
|
86 |
%define dridrivers %mklibname dri-drivers |
%define dridrivers %mklibname dri-drivers |
87 |
|
|
97 |
%define libglapiname_virt lib%{glapiname} |
%define libglapiname_virt lib%{glapiname} |
98 |
%define libgbmname_virt lib%{gbmname} |
%define libgbmname_virt lib%{gbmname} |
99 |
%define libwaylandeglname_virt lib%{waylandeglname} |
%define libwaylandeglname_virt lib%{waylandeglname} |
100 |
|
%define libxaname_virt lib%{xaname} |
101 |
|
|
102 |
%define oldlibglname %mklibname MesaGL 1 |
%define oldlibglname %mklibname MesaGL 1 |
103 |
|
|
372 |
# temporary: |
# temporary: |
373 |
%rename vdpau-driver-radeonsi |
%rename vdpau-driver-radeonsi |
374 |
|
|
375 |
|
%package -n %{libxaname} |
376 |
|
Summary: Files for Mesa XA state tracker |
377 |
|
Group: System/Libraries |
378 |
|
Provides: %{libxaname_virt} = %{version}-%{release} |
379 |
|
|
380 |
|
%package -n %{libxaname}-devel |
381 |
|
Summary: Development files for XA libs |
382 |
|
Group: Development/C |
383 |
|
Requires: %{libxaname_virt} = %{version}-%{release} |
384 |
|
Provides: lib%{xaname}-devel |
385 |
|
Provides: %{libxaname}-devel |
386 |
|
|
387 |
%package common-devel |
%package common-devel |
388 |
Summary: Meta package for mesa devel |
Summary: Meta package for mesa devel |
389 |
Group: Development/C |
Group: Development/C |
496 |
Wayland EGL platform development parts. |
Wayland EGL platform development parts. |
497 |
%endif |
%endif |
498 |
|
|
499 |
|
%description -n %{libxaname} |
500 |
|
This packages provides the xa shared library used by gallium. |
501 |
|
|
502 |
|
%description -n %{libxaname}-devel |
503 |
|
This package contains the headers needed to compile programes against xa shared library. |
504 |
|
|
505 |
%description -n %{_lib}vdpau-driver-nouveau |
%description -n %{_lib}vdpau-driver-nouveau |
506 |
This packages provides a VPDAU plugin to enable video acceleration |
This packages provides a VPDAU plugin to enable video acceleration |
507 |
with the nouveau driver. |
with the nouveau driver. |
566 |
%if %{with_hardware} |
%if %{with_hardware} |
567 |
--with-gallium-drivers=r300,r600,radeonsi,nouveau,swrast \ |
--with-gallium-drivers=r300,r600,radeonsi,nouveau,swrast \ |
568 |
--enable-gallium-llvm \ |
--enable-gallium-llvm \ |
569 |
|
--enable-xa \ |
570 |
%else |
%else |
571 |
--disable-gallium-llvm \ |
--disable-gallium-llvm \ |
572 |
--with-gallium-drivers=swrast \ |
--with-gallium-drivers=swrast \ |
693 |
%{_libdir}/libwayland-egl.so.%{waylandeglmajor}.* |
%{_libdir}/libwayland-egl.so.%{waylandeglmajor}.* |
694 |
%endif |
%endif |
695 |
|
|
696 |
|
%files -n %{libxaname} |
697 |
|
%defattr(-,root,root) |
698 |
|
%{_libdir}/libxatracker.so.%{xamajor}* |
699 |
|
|
700 |
%files -n %{libglname}-devel |
%files -n %{libglname}-devel |
701 |
%defattr(-,root,root) |
%defattr(-,root,root) |
772 |
%{_libdir}/pkgconfig/wayland-egl.pc |
%{_libdir}/pkgconfig/wayland-egl.pc |
773 |
%endif |
%endif |
774 |
|
|
775 |
|
%files -n %{libxaname}-devel |
776 |
|
%defattr(-,root,root) |
777 |
|
%{_libdir}/libxatracker.so |
778 |
|
%{_includedir}/xa_tracker.h |
779 |
|
%{_includedir}/xa_composite.h |
780 |
|
%{_includedir}/xa_context.h |
781 |
|
%{_libdir}/pkgconfig/xatracker.pc |
782 |
|
|
783 |
%files -n %{_lib}vdpau-driver-nouveau |
%files -n %{_lib}vdpau-driver-nouveau |
784 |
%{_libdir}/vdpau/libvdpau_nouveau.so.* |
%{_libdir}/vdpau/libvdpau_nouveau.so.* |
785 |
|
|