42 |
%define gluname mesaglu |
%define gluname mesaglu |
43 |
%define glutname mesaglut |
%define glutname mesaglut |
44 |
%define glwname mesaglw |
%define glwname mesaglw |
45 |
|
%define glesv1name mesaglesv1 |
46 |
|
%define glesv2name mesaglesv2 |
47 |
|
|
48 |
%define eglmajor 1 |
%define eglmajor 1 |
49 |
%define glmajor 1 |
%define glmajor 1 |
50 |
%define glumajor 1 |
%define glumajor 1 |
51 |
%define glutmajor 3 |
%define glutmajor 3 |
52 |
%define glwmajor 1 |
%define glwmajor 1 |
53 |
|
%define glesv1major 1 |
54 |
|
%define glesv2major 2 |
55 |
|
|
56 |
%define libeglname %mklibname %{eglname} %{eglmajor} |
%define libeglname %mklibname %{eglname} %{eglmajor} |
57 |
%define libglname %mklibname %{glname} %{glmajor} |
%define libglname %mklibname %{glname} %{glmajor} |
58 |
%define libgluname %mklibname %{gluname} %{glumajor} |
%define libgluname %mklibname %{gluname} %{glumajor} |
59 |
%define libglutname %mklibname %{glutname} %{glutmajor} |
%define libglutname %mklibname %{glutname} %{glutmajor} |
60 |
%define libglwname %mklibname %{glwname} %{glwmajor} |
%define libglwname %mklibname %{glwname} %{glwmajor} |
61 |
|
%define libglesv1name %mklibname %{glesv1name}_ %{glesv1major} |
62 |
|
%define libglesv2name %mklibname %{glesv2name}_ %{glesv2major} |
63 |
|
|
64 |
%define dridrivers %mklibname dri-drivers |
%define dridrivers %mklibname dri-drivers |
65 |
|
|
69 |
%define libgluname_virt lib%{gluname} |
%define libgluname_virt lib%{gluname} |
70 |
%define libglutname_virt lib%{glutname} |
%define libglutname_virt lib%{glutname} |
71 |
%define libglwname_virt lib%{glwname} |
%define libglwname_virt lib%{glwname} |
72 |
|
%define libglesv1name_virt lib%{glesv1name} |
73 |
|
%define libglesv2name_virt lib%{glesv2name} |
74 |
|
|
75 |
%define oldlibglname %mklibname MesaGL 1 |
%define oldlibglname %mklibname MesaGL 1 |
76 |
%define oldlibgluname %mklibname MesaGLU 1 |
%define oldlibgluname %mklibname MesaGLU 1 |
297 |
Provides: libegl-devel |
Provides: libegl-devel |
298 |
%endif |
%endif |
299 |
|
|
300 |
|
|
301 |
|
%package -n %{libglesv1name} |
302 |
|
Summary: Files for Mesa (glesv1 libs) |
303 |
|
Group: System/Libraries |
304 |
|
Provides: %{libglesv1name_virt} = %{version}-%{release} |
305 |
|
|
306 |
|
%package -n %{libglesv1name}-devel |
307 |
|
Summary: Development files for glesv1 libs |
308 |
|
Group: Development/C |
309 |
|
Requires: %{libglesv1name} = %{version}-%{release} |
310 |
|
Provides: lib%{glesv1name}-devel |
311 |
|
Provides: %{glesv1name}-devel |
312 |
|
Provides: libglesv1-devel |
313 |
|
|
314 |
|
%package -n %{libglesv2name} |
315 |
|
Summary: Files for Mesa (glesv2 libs) |
316 |
|
Group: System/Libraries |
317 |
|
Provides: %{libglesv2name_virt} = %{version}-%{release} |
318 |
|
|
319 |
|
%package -n %{libglesv2name}-devel |
320 |
|
Summary: Development files for glesv2 libs |
321 |
|
Group: Development/C |
322 |
|
Requires: %{libglesv2name} = %{version}-%{release} |
323 |
|
Provides: lib%{glesv2name}-devel |
324 |
|
Provides: %{glesv2name}-devel |
325 |
|
Provides: libglesv2-devel |
326 |
|
|
327 |
%package common-devel |
%package common-devel |
328 |
Summary: Meta package for mesa devel |
Summary: Meta package for mesa devel |
329 |
Group: Development/C |
Group: Development/C |
339 |
%else |
%else |
340 |
Requires: libglut-devel |
Requires: libglut-devel |
341 |
%endif |
%endif |
342 |
|
Requires: %{libeglname}-devel = %{version} |
343 |
|
Requires: %{libglesv1name}-devel = %{version} |
344 |
|
Requires: %{libglesv2name}-devel = %{version} |
345 |
|
|
346 |
#------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------ |
347 |
|
|
415 |
|
|
416 |
This package contains the headers needed to compile Mesa programs. |
This package contains the headers needed to compile Mesa programs. |
417 |
|
|
418 |
|
%description -n %{libglesv1name} |
419 |
|
OpenGL ES is a low-level, lightweight API for advanced embedded graphics using |
420 |
|
well-defined subset profiles of OpenGL. |
421 |
|
|
422 |
|
This package provides the OpenGL ES library version 1. |
423 |
|
|
424 |
|
%description -n %{libglesv1name}-devel |
425 |
|
This package contains the headers needed to compile OpenGL ES 1 programs. |
426 |
|
|
427 |
|
%description -n %{libglesv2name} |
428 |
|
OpenGL ES is a low-level, lightweight API for advanced embedded graphics using |
429 |
|
well-defined subset profiles of OpenGL. |
430 |
|
|
431 |
|
This package provides the OpenGL ES library version 2. |
432 |
|
|
433 |
|
%description -n %{libglesv2name}-devel |
434 |
|
This package contains the headers needed to compile OpenGL ES 2 programs. |
435 |
|
|
436 |
#------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------ |
437 |
|
|
438 |
%prep |
%prep |
486 |
%else |
%else |
487 |
--disable-egl \ |
--disable-egl \ |
488 |
%endif |
%endif |
489 |
|
--enable-gles1 \ |
490 |
|
--enable-gles2 \ |
491 |
%if %{with_mesaglut} |
%if %{with_mesaglut} |
492 |
--enable-glut |
--enable-glut |
493 |
%else |
%else |
575 |
%if %{enable_egl} |
%if %{enable_egl} |
576 |
%files -n %{libeglname} |
%files -n %{libeglname} |
577 |
%defattr(-,root,root) |
%defattr(-,root,root) |
578 |
|
%doc docs/COPYING |
579 |
%{_libdir}/libEGL.so.%{eglmajor}* |
%{_libdir}/libEGL.so.%{eglmajor}* |
580 |
%{_libdir}/libegldri.so.1* |
%dir %{_libdir}/egl |
581 |
|
%{_libdir}/egl/egl_dri2.so |
582 |
|
%{_libdir}/egl/egl_glx.so |
583 |
%endif |
%endif |
584 |
|
|
585 |
|
%files -n %{libglesv1name} |
586 |
|
%defattr(-,root,root) |
587 |
|
%doc docs/COPYING |
588 |
|
%{_libdir}/libGLESv1_CM.so.%{glesv1major}* |
589 |
|
|
590 |
|
%files -n %{libglesv2name} |
591 |
|
%defattr(-,root,root) |
592 |
|
%doc docs/COPYING |
593 |
|
%{_libdir}/libGLESv2.so.%{glesv2major}* |
594 |
|
|
595 |
%files -n %{libglname}-devel |
%files -n %{libglname}-devel |
596 |
%defattr(-,root,root) |
%defattr(-,root,root) |
597 |
%doc docs/COPYING |
%doc docs/COPYING |
649 |
%if %{enable_egl} |
%if %{enable_egl} |
650 |
%files -n %{libeglname}-devel |
%files -n %{libeglname}-devel |
651 |
%defattr(-,root,root) |
%defattr(-,root,root) |
652 |
|
%doc docs/COPYING |
653 |
|
%{_includedir}/EGL |
654 |
|
%{_includedir}/KHR |
655 |
%{_libdir}/libEGL.so |
%{_libdir}/libEGL.so |
|
%{_libdir}/libegldri.so |
|
|
%{_includedir}/gles/egl*.h |
|
656 |
%{_libdir}/pkgconfig/egl.pc |
%{_libdir}/pkgconfig/egl.pc |
657 |
%endif |
%endif |
658 |
|
|
659 |
|
|
660 |
|
%files -n %{libglesv1name}-devel |
661 |
|
%defattr(-,root,root) |
662 |
|
%{_includedir}/GLES |
663 |
|
%{_libdir}/libGLESv1_CM.so |
664 |
|
%{_libdir}/pkgconfig/glesv1_cm.pc |
665 |
|
|
666 |
|
%files -n %{libglesv2name}-devel |
667 |
|
%defattr(-,root,root) |
668 |
|
%{_includedir}/GLES2 |
669 |
|
%{_libdir}/libGLESv2.so |
670 |
|
%{_libdir}/pkgconfig/glesv2.pc |