Репозиторий Sisyphus
Последнее обновление: 27 апреля 2017 | Пакетов: 17871 | Посещений: 9136064
en ru br
Репозитории ALT
5.1: 7.6.1-alt1.M51.1
4.1: 7.0.4-alt9.M41.1
4.0: 7.0.3-alt2.M40.2
3.0: 6.2.1-alt2

Группа :: Система/Библиотеки
Пакет: Mesa

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_enable egl
%def_enable gles2
%def_enable wayland_egl
%def_enable xa

Name: Mesa
Version: 17.0.4
Release: alt1
Epoch: 4
License: MIT
Summary: OpenGL compatible 3D graphics library
Group: System/Libraries
Url: http://www.mesa3d.org

Packager: Valery Inozemtsev <shrek at altlinux.ru>

Source: %name-%version.tar
Patch: %name-%version-%release.patch

BuildRequires: llvm-devel >= 3.4.2 llvm-devel-static >= 3.4.2
BuildRequires: gcc-c++ indent flex libXdamage-devel libXext-devel libXft-devel libXmu-devel libXi-devel libXrender-devel libXxf86vm-devel
BuildRequires: libdrm-devel libexpat-devel xorg-glproto-devel xorg-dri2proto-devel python-modules libselinux-devel libxcb-devel libSM-devel
BuildRequires: python-module-libxml2 libudev-devel libXdmcp-devel libwayland-client-devel libwayland-server-devel libffi-devel libelf-devel
BuildRequires: libva-devel libvdpau-devel libXvMC-devel xorg-dri3proto-devel xorg-presentproto-devel libxshmfence-devel libnettle-devel
BuildRequires: libelf-devel python-module-mako python-module-argparse

Mesa is an OpenGL compatible 3D graphics library

%package -n libGL
Summary: OpenGL 1.3 compatible 3D graphics library for X Window server
Group: System/Libraries
Requires(post): coreutils

%description -n libGL
Mesa is an OpenGL compatible 3D graphics library

%package -n libGL-devel
Summary: Development files for Mesa Library
Group: Development/C
Requires: libGL = %epoch:%version-%release

%description -n libGL-devel
libGL-devel contains the libraries and header files needed to
develop programs which make use of Mesa

%package -n libEGL
Summary: Mesa EGL library
Group: System/Libraries
Requires: libGL = %epoch:%version-%release

%description -n libEGL
Mesa EGL library

%package -n libEGL-devel
Summary: Mesa libEGL development package
Group: Development/C
Requires: libEGL = %epoch:%version-%release

%description -n libEGL-devel
Mesa libEGL development package

%package -n libGLES
Summary: Mesa OpenGL ES library
Group: System/Libraries

%description -n libGLES
Mesa OpenGL ES library

%package -n libGLES-devel
Summary: Mesa libGLES development package
Group: Development/C
Requires: libGLES = %epoch:%version-%release
Requires: libEGL-devel = %epoch:%version-%release

%description -n libGLES-devel
Mesa libGLES development package

%package -n libgbm
Summary: GBM buffer management library
Group: System/Libraries

%description -n libgbm
GBM buffer management library

%package -n libgbm-devel
Summary: GBM buffer management development package
Group: Development/C
Requires: libgbm = %epoch:%version-%release

%description -n libgbm-devel
GBM buffer management development package

%package -n libwayland-egl
Summary: Mesa Wayland-EGL library
Group: System/Libraries
Requires: libGL = %epoch:%version-%release

%description -n libwayland-egl
Mesa EGL library for Wayland

%package -n libwayland-egl-devel
Summary: Mesa Wayland-EGL development package
Group: Development/C
Requires: libwayland-egl = %epoch:%version-%release

%description -n libwayland-egl-devel
Mesa Wayland-EGL development package

%package -n libxatracker
Summary: Mesa XA state tracker
Group: System/Libraries
Requires: libxatracker = %epoch:%version-%release

%description -n libxatracker
Xorg Gallium3D acceleration library

%package -n libxatracker-devel
Summary: Mesa XA state tracker development package
Group: Development/C

%description -n libxatracker-devel
Xorg Gallium3D acceleration development package

%package -n xorg-dri-swrast
Summary: Mesa software rendering libraries
Group: System/X11
Requires: libGL = %epoch:%version-%release

%description -n xorg-dri-swrast
Mesa software rendering libraries

%package -n xorg-dri-intel
Summary: Intel DRI driver
Group: System/X11
Requires: libGL = %epoch:%version-%release

%description -n xorg-dri-intel
DRI driver for Intel i8xx, i9xx

%package -n xorg-dri-radeon
Summary: ATI RADEON DRI driver
Group: System/X11
Requires: libGL = %epoch:%version-%release
%ifarch %ix86 x86_64
Requires: libvdpau

%description -n xorg-dri-radeon
DRI driver for ATI R100, R200, R300, R400, R500

%package -n xorg-dri-nouveau
Summary: nVidia DRI driver
Group: System/X11
Requires: libGL = %epoch:%version-%release
%ifarch %ix86 x86_64
Requires: libvdpau

%description -n xorg-dri-nouveau
DRI driver for nVidia

%package -n glxinfo
Summary: display info about a GLX extension and OpenGL renderer
Group: System/X11
Requires: libGL = %epoch:%version-%release

%description -n glxinfo
glxinfo lists information about the GLX extension, OpenGL capable visu-
als, and the OpenGL renderer on an X server. The GLX and renderer  info
includes  the  version  and extension attributes. The visual info lists
the GLX visual attributes available  for  each  OpenGL  capable  visual
(e.g.  whether  the  visual is double buffered, the component sizes, Z-
buffering depth, etc)

%package -n glxgears
Summary: GLX version of the infamous "gears" GL demo
Group: System/X11
Requires: libGL = %epoch:%version-%release

%description -n glxgears
glxgears  is a GLX demo that draws three rotating gears, and prints out
framerate information to stdout

%set_verify_elf_method unresolved=relaxed

%define dri_common r200,radeon
%define dri_ix86 %dri_common,i915,i965,nouveau
%define dri_ppc %dri_common,i915,i965

%setup -q
%patch -p1

%configure \
%ifarch %ix86
--with-dri-drivers=%dri_ix86 \
%ifarch x86_64
--with-dri-drivers=%dri_ix86 \
%ifarch ppc
--with-dri-drivers=%dri_ppc \
%ifarch %arm
--with-dri-drivers=swrast \
--with-dri-drivers=%dri_common \
%ifarch %ix86 x86_64
--with-gallium-drivers=swrast,r300,r600,nouveau,radeonsi \
--enable-llvm-shared-libs=no \
--enable-vdpau \
--enable-xvmc \
--enable-dri3 \
--enable-texture-float \
--enable-shared-glapi \
%{subst_enable egl} \
%{subst_enable gles2} \
--disable-gles1 \
--enable-texture-float \
--enable-glx-tls \
--enable-selinux \
--with-dri-driverdir=%_libdir/X11/modules/dri \
%if_enabled wayland_egl
--with-egl-platforms=x11,wayland,drm \
--enable-gbm \
%{subst_enable xa}


%make DESTDIR=%buildroot install

mkdir -p %buildroot%_sysconfdir/X11/%_lib
# moved libGL
mv %buildroot%_libdir/libGL.so.1.2.0 %buildroot%_libdir/X11/libGL.so.1.2
ln -sf ../../..%_libdir/X11/libGL.so.1.2 %buildroot%_sysconfdir/X11/%_lib/libGL.so.1
ln -sf ../..%_sysconfdir/X11/%_lib/libGL.so.1 %buildroot%_libdir/
ln -sf X11/libGL.so.1.2 %buildroot%_libdir/libGL.so
# moved libEGL
%if_enabled egl
mv %buildroot%_libdir/libEGL.so.1.0.0 %buildroot%_libdir/X11/libEGL.so.1.0.0
ln -sf ../../..%_libdir/X11/libEGL.so.1.0.0 %buildroot%_sysconfdir/X11/%_lib/libEGL.so.1
ln -sf ../..%_sysconfdir/X11/%_lib/libEGL.so.1 %buildroot%_libdir/
ln -sf X11/libEGL.so.1.0.0 %buildroot%_libdir/libEGL.so
# moved libGLESv2
%if_enabled gles2
mv %buildroot%_libdir/libGLESv2.so.2.0.0 %buildroot%_libdir/X11/libGLESv2.so.2.0.0
ln -sf ../../..%_libdir/X11/libGLESv2.so.2.0.0 %buildroot%_sysconfdir/X11/%_lib/libGLESv2.so.2
ln -sf ../..%_sysconfdir/X11/%_lib/libGLESv2.so.2 %buildroot%_libdir/
ln -sf X11/libGLESv2.so.2.0.0 %buildroot%_libdir/libGLESv2.so
/sbin/ldconfig -Nn %buildroot%_libdir/X11/

%post -n libGL
[ -r %_sysconfdir/X11/%_lib/libGL.so.1 ] || \
ln -sf ../../..%_libdir/X11/libGL.so.1.2 %_sysconfdir/X11/%_lib/libGL.so.1
ln -sf ../..%_sysconfdir/X11/%_lib/libGL.so.1 %_libdir/

%if_enabled egl
%post -n libEGL
[ -r %_sysconfdir/X11/%_lib/libEGL.so.1 ] || \
ln -sf ../../..%_libdir/X11/libEGL.so.1.0.0 %_sysconfdir/X11/%_lib/libEGL.so.1
ln -sf ../..%_sysconfdir/X11/%_lib/libEGL.so.1 %_libdir/

%if_enabled gles2
%post -n libGLES
[ -r %_sysconfdir/X11/%_lib/libGLESv2.so.2 ] || \
ln -sf ../../..%_libdir/X11/libGLESv2.so.2.0.0 %_sysconfdir/X11/%_lib/libGLESv2.so.2
ln -sf ../..%_sysconfdir/X11/%_lib/libGLESv2.so.2 %_libdir/

%files -n libGL
%doc docs/relnotes/%version.html
%dir %_sysconfdir/X11/%_lib
%ghost %_sysconfdir/X11/%_lib/libGL.so.1
%dir %_libdir/X11
%dir %_libdir/X11/modules
%dir %_libdir/X11/modules/dri

%files -n libGL-devel
%dir %_includedir/GL

%if_enabled egl
%files -n libEGL
%dir %_sysconfdir/X11/%_lib
%ghost %_sysconfdir/X11/%_lib/libEGL.so.1

%files -n libEGL-devel

%if_enabled gles2
%files -n libGLES
%dir %_sysconfdir/X11/%_lib
%ghost %_sysconfdir/X11/%_lib/libGLESv2.so.2

%files -n libGLES-devel

%if_enabled wayland_egl
%files -n libgbm

%files -n libgbm-devel

%files -n libwayland-egl

%files -n libwayland-egl-devel

%if_enabled xa
%files -n libxatracker

%files -n libxatracker-devel

%files -n xorg-dri-swrast

%ifarch ppc %ix86 x86_64
%files -n xorg-dri-intel
%config(noreplace) %_sysconfdir/drirc

%files -n xorg-dri-nouveau
%ifarch %ix86 x86_64

%files -n xorg-dri-radeon
%ifarch %ix86 x86_64

%files -n glxinfo

%files -n glxgears


Полный changelog можно просмотреть здесь

дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin