22 |
%define opengl_ver 3.0 |
%define opengl_ver 3.0 |
23 |
|
|
24 |
%define relc 0 |
%define relc 0 |
|
%define name mesa |
|
25 |
%define fversion 10.2.2 |
%define fversion 10.2.2 |
|
%define version 10.2.2 |
|
26 |
%define rel 1 |
%define rel 1 |
27 |
|
|
28 |
%define release %mkrel %{rel} |
%define release %mkrel %{rel} |
119 |
%define dri_drivers_arm "nouveau,r200,radeon,swrast" |
%define dri_drivers_arm "nouveau,r200,radeon,swrast" |
120 |
%define dri_drivers %{expand:%{dri_drivers_%{_arch}}} |
%define dri_drivers %{expand:%{dri_drivers_%{_arch}}} |
121 |
|
|
122 |
Name: %{name} |
Name: mesa |
123 |
Version: %{version} |
Version: 10.2.2 |
124 |
Release: %{release} |
Release: %{release} |
125 |
Summary: OpenGL %{opengl_ver} compatible 3D graphics library |
Summary: OpenGL %{opengl_ver} compatible 3D graphics library |
126 |
Group: System/Libraries |
Group: System/Libraries |
144 |
BuildRequires: pkgconfig(talloc) |
BuildRequires: pkgconfig(talloc) |
145 |
BuildRequires: libxml2-python |
BuildRequires: libxml2-python |
146 |
BuildRequires: makedepend |
BuildRequires: makedepend |
147 |
BuildRequires: bison flex |
BuildRequires: bison |
148 |
|
BuildRequires: flex |
149 |
BuildRequires: libelf-devel |
BuildRequires: libelf-devel |
150 |
BuildRequires: llvm-devel >= 3.4.2-1 |
BuildRequires: llvm-devel >= 3.4.2-1 |
151 |
BuildRequires: pkgconfig(libudev) |
BuildRequires: pkgconfig(libudev) |
623 |
#------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------ |
624 |
|
|
625 |
%files |
%files |
|
%defattr(-,root,root) |
|
626 |
%doc docs/COPYING |
%doc docs/COPYING |
627 |
%config(noreplace) %{_sysconfdir}/drirc |
%config(noreplace) %{_sysconfdir}/drirc |
628 |
|
|
629 |
%files -n %{dridrivers} |
%files -n %{dridrivers} |
|
%defattr(-,root,root) |
|
630 |
%doc docs/COPYING |
%doc docs/COPYING |
631 |
%ifnarch ppc64 |
%ifnarch ppc64 |
632 |
%dir %{_libdir}/dri |
%dir %{_libdir}/dri |
636 |
%endif |
%endif |
637 |
|
|
638 |
%files -n %{libglname} |
%files -n %{libglname} |
|
%defattr(-,root,root) |
|
639 |
%doc docs/COPYING |
%doc docs/COPYING |
640 |
%{_libdir}/libGL.so.* |
%{_libdir}/libGL.so.* |
641 |
%dir %{_libdir}/mesa |
%dir %{_libdir}/mesa |
643 |
|
|
644 |
%if %{enable_egl} |
%if %{enable_egl} |
645 |
%files -n %{libeglname} |
%files -n %{libeglname} |
|
%defattr(-,root,root) |
|
646 |
%doc docs/COPYING |
%doc docs/COPYING |
647 |
%{_libdir}/libEGL.so.%{eglmajor}* |
%{_libdir}/libEGL.so.%{eglmajor}* |
648 |
%dir %{_libdir}/egl |
%dir %{_libdir}/egl |
654 |
%endif |
%endif |
655 |
|
|
656 |
%files -n %{libosmesaname} |
%files -n %{libosmesaname} |
|
%defattr(-,root,root) |
|
657 |
%{_libdir}/libOSMesa.so.%{osmesamajor}* |
%{_libdir}/libOSMesa.so.%{osmesamajor}* |
658 |
|
|
659 |
%files -n %{libglapiname} |
%files -n %{libglapiname} |
|
%defattr(-,root,root) |
|
660 |
%{_libdir}/libglapi.so.%{glapimajor}* |
%{_libdir}/libglapi.so.%{glapimajor}* |
661 |
|
|
662 |
%files -n %{libglesv1name} |
%files -n %{libglesv1name} |
|
%defattr(-,root,root) |
|
663 |
%doc docs/COPYING |
%doc docs/COPYING |
664 |
%{_libdir}/libGLESv1_CM.so.%{glesv1major}* |
%{_libdir}/libGLESv1_CM.so.%{glesv1major}* |
665 |
|
|
666 |
%files -n %{libglesv2name} |
%files -n %{libglesv2name} |
|
%defattr(-,root,root) |
|
667 |
%doc docs/COPYING |
%doc docs/COPYING |
668 |
%{_libdir}/libGLESv2.so.%{glesv2major}* |
%{_libdir}/libGLESv2.so.%{glesv2major}* |
669 |
|
|
670 |
%files -n %{libopenvgname} |
%files -n %{libopenvgname} |
|
%defattr(-,root,root) |
|
671 |
%doc docs/COPYING |
%doc docs/COPYING |
672 |
%{_libdir}/libOpenVG.so.%{openvgmajor}* |
%{_libdir}/libOpenVG.so.%{openvgmajor}* |
673 |
|
|
684 |
%endif |
%endif |
685 |
|
|
686 |
%files -n %{libxaname} |
%files -n %{libxaname} |
|
%defattr(-,root,root) |
|
687 |
%{_libdir}/libxatracker.so.%{xamajor}* |
%{_libdir}/libxatracker.so.%{xamajor}* |
688 |
|
|
689 |
%files -n %{libglname}-devel |
%files -n %{libglname}-devel |
|
%defattr(-,root,root) |
|
690 |
%doc docs/COPYING |
%doc docs/COPYING |
691 |
%dir %{_includedir}/GL |
%dir %{_includedir}/GL |
692 |
%{_includedir}/GL/gl.h |
%{_includedir}/GL/gl.h |
707 |
%{_includedir}/GL/internal/dri_interface.h |
%{_includedir}/GL/internal/dri_interface.h |
708 |
|
|
709 |
%files common-devel |
%files common-devel |
|
%defattr(-,root,root) |
|
|
|
|
710 |
%if %{enable_egl} |
%if %{enable_egl} |
711 |
%files -n %{libeglname}-devel |
%files -n %{libeglname}-devel |
|
%defattr(-,root,root) |
|
712 |
%doc docs/COPYING |
%doc docs/COPYING |
713 |
%{_includedir}/EGL |
%{_includedir}/EGL |
714 |
%{_includedir}/KHR |
%{_includedir}/KHR |
717 |
%endif |
%endif |
718 |
|
|
719 |
%files -n %{osmesadevel} |
%files -n %{osmesadevel} |
|
%defattr(-,root,root) |
|
720 |
%dir %{_includedir}/GL |
%dir %{_includedir}/GL |
721 |
%{_includedir}/GL/osmesa.h |
%{_includedir}/GL/osmesa.h |
722 |
%{_libdir}/libOSMesa.so |
%{_libdir}/libOSMesa.so |
723 |
%{_libdir}/pkgconfig/osmesa.pc |
%{_libdir}/pkgconfig/osmesa.pc |
724 |
|
|
725 |
%files -n %{libglapiname}-devel |
%files -n %{libglapiname}-devel |
|
%defattr(-,root,root) |
|
726 |
%{_libdir}/libglapi.so |
%{_libdir}/libglapi.so |
727 |
|
|
728 |
%files -n %{libglesv1name}-devel |
%files -n %{libglesv1name}-devel |
|
%defattr(-,root,root) |
|
729 |
%{_includedir}/GLES |
%{_includedir}/GLES |
730 |
%{_libdir}/libGLESv1_CM.so |
%{_libdir}/libGLESv1_CM.so |
731 |
%{_libdir}/pkgconfig/glesv1_cm.pc |
%{_libdir}/pkgconfig/glesv1_cm.pc |
732 |
|
|
733 |
%files -n %{libglesv2name}-devel |
%files -n %{libglesv2name}-devel |
|
%defattr(-,root,root) |
|
734 |
%{_includedir}/GLES2 |
%{_includedir}/GLES2 |
735 |
%{_includedir}/GLES3 |
%{_includedir}/GLES3 |
736 |
%{_libdir}/libGLESv2.so |
%{_libdir}/libGLESv2.so |
737 |
%{_libdir}/pkgconfig/glesv2.pc |
%{_libdir}/pkgconfig/glesv2.pc |
738 |
|
|
739 |
%files -n %{libopenvgname}-devel |
%files -n %{libopenvgname}-devel |
|
%defattr(-,root,root) |
|
740 |
%{_includedir}/VG |
%{_includedir}/VG |
741 |
%{_libdir}/libOpenVG.so |
%{_libdir}/libOpenVG.so |
742 |
%{_libdir}/pkgconfig/vg.pc |
%{_libdir}/pkgconfig/vg.pc |
753 |
%endif |
%endif |
754 |
|
|
755 |
%files -n %{libxaname}-devel |
%files -n %{libxaname}-devel |
|
%defattr(-,root,root) |
|
756 |
%{_libdir}/libxatracker.so |
%{_libdir}/libxatracker.so |
757 |
%{_includedir}/xa_tracker.h |
%{_includedir}/xa_tracker.h |
758 |
%{_includedir}/xa_composite.h |
%{_includedir}/xa_composite.h |