14 |
# (aco) Needed for the dri drivers |
# (aco) Needed for the dri drivers |
15 |
%define _disable_ld_no_undefined 1 |
%define _disable_ld_no_undefined 1 |
16 |
|
|
17 |
|
# e3e1ffb2520498584ef402213d0c8aa4303a46a3 |
18 |
%define git 20121228 |
%define git 20130114 |
19 |
%define git_branch 9.1 |
%define git_branch 9.1 |
20 |
%define with_hardware 1 |
%define with_hardware 1 |
21 |
|
|
25 |
%define name mesa |
%define name mesa |
26 |
%define fversion 9.1.0 |
%define fversion 9.1.0 |
27 |
%define version 9.1.0 |
%define version 9.1.0 |
28 |
%define rel 3 |
%define rel 1 |
29 |
|
|
30 |
%define release %mkrel %{rel} |
%define release %mkrel %{rel} |
31 |
%define src_type tar.bz2 |
%define src_type tar.bz2 |
70 |
%define gbmmajor 1 |
%define gbmmajor 1 |
71 |
%define waylandeglmajor 1 |
%define waylandeglmajor 1 |
72 |
%define osmesamajor 8 |
%define osmesamajor 8 |
73 |
|
%define llvmradeonmajor 9.1.0 |
74 |
|
|
75 |
%define libdricorename %mklibname %{dricorename} %{dricoremajor} |
%define libdricorename %mklibname %{dricorename} %{dricoremajor} |
76 |
%define libeglname %mklibname %{eglname} %{eglmajor} |
%define libeglname %mklibname %{eglname} %{eglmajor} |
83 |
%define libgbmname %mklibname %{gbmname} %{gbmmajor} |
%define libgbmname %mklibname %{gbmname} %{gbmmajor} |
84 |
%define libwaylandeglname %mklibname %{waylandeglname} %{waylandeglmajor} |
%define libwaylandeglname %mklibname %{waylandeglname} %{waylandeglmajor} |
85 |
%define libosmesaname %mklibname osmesa %{osmesamajor} |
%define libosmesaname %mklibname osmesa %{osmesamajor} |
86 |
|
%define libllvmradeonname %mklibname llvmradeon %{llvmradeonmajor} |
87 |
|
|
88 |
%define dridrivers %mklibname dri-drivers |
%define dridrivers %mklibname dri-drivers |
89 |
|
|
192 |
# Mageia/Mandriva patches |
# Mageia/Mandriva patches |
193 |
# git format-patch --start-number 900 mdv-redhat..mdv-patches |
# git format-patch --start-number 900 mdv-redhat..mdv-patches |
194 |
# (blino) llvmpipe test programs link fails when ld --as-needed option is used, reported as fdo #52167 |
# (blino) llvmpipe test programs link fails when ld --as-needed option is used, reported as fdo #52167 |
195 |
Patch901: 0901-gallium-only-link-static-archives-between-ld-start-e.patch |
#Patch901: 0901-gallium-only-link-static-archives-between-ld-start-e.patch |
196 |
|
|
197 |
#------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------ |
198 |
|
|
333 |
Provides: %{openvgname}-devel |
Provides: %{openvgname}-devel |
334 |
Provides: libopenvg-devel |
Provides: libopenvg-devel |
335 |
|
|
336 |
|
%package -n %{libllvmradeonname} |
337 |
|
Summary: Files for MESA (LLVM radeon library) |
338 |
|
Group: System/Libraries |
339 |
|
|
340 |
%if %{enable_wayland} |
%if %{enable_wayland} |
341 |
%package -n %{libgbmname} |
%package -n %{libgbmname} |
342 |
Summary: Files for Mesa (gbm libs) |
Summary: Files for Mesa (gbm libs) |
496 |
%description -n %{libopenvgname}-devel |
%description -n %{libopenvgname}-devel |
497 |
Development files for OpenVG library. |
Development files for OpenVG library. |
498 |
|
|
499 |
|
%description -n %{libllvmradeonname} |
500 |
|
Gallium LLVM Radeon driver. |
501 |
|
|
502 |
%if %{enable_wayland} |
%if %{enable_wayland} |
503 |
%description -n %{libgbmname} |
%description -n %{libgbmname} |
504 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
614 |
popd |
popd |
615 |
|
|
616 |
%make |
%make |
617 |
%make -C build-osmesa || %make -C build-osmesa/src/mesa/program libprogram.la |
%make -C build-osmesa || ( %make -C build-osmesa/src/mesa/program libprogram.la && %make -C build-osmesa ) |
|
%make -C build-osmesa |
|
618 |
|
|
619 |
%install |
%install |
620 |
%makeinstall_std -C build-osmesa |
%makeinstall_std -C build-osmesa |
708 |
%doc docs/COPYING |
%doc docs/COPYING |
709 |
%{_libdir}/libOpenVG.so.%{openvgmajor}* |
%{_libdir}/libOpenVG.so.%{openvgmajor}* |
710 |
|
|
711 |
|
%files -n %{libllvmradeonname} |
712 |
|
%defattr(-,root,root) |
713 |
|
%{_libdir}/libllvmradeon9.1.0.so |
714 |
|
|
715 |
%if %{enable_wayland} |
%if %{enable_wayland} |
716 |
%files -n %{libgbmname} |
%files -n %{libgbmname} |
717 |
%{_libdir}/libgbm.so.%{gbmmajor} |
%{_libdir}/libgbm.so.%{gbmmajor} |
718 |
%{_libdir}/libgbm.so.%{gbmmajor}.* |
%{_libdir}/libgbm.so.%{gbmmajor}.* |
719 |
%{_libdir}/gbm/gbm_*.so |
%{_libdir}/gbm/gbm_*.so |
720 |
%{_libdir}/gbm/pipe_*.so |
%{_libdir}/gallium-pipe/pipe_*.so |
721 |
|
|
722 |
%files -n %{libwaylandeglname} |
%files -n %{libwaylandeglname} |
723 |
%{_libdir}/libwayland-egl.so.%{waylandeglmajor} |
%{_libdir}/libwayland-egl.so.%{waylandeglmajor} |