- Disable u_mesa-8.0-llvmpipe-shmget.patch,

u_mesa-8.0.1-fix-16bpp.patch since these are considered wrong by
  the author
- remove libIndirectGL (packages), since it is most likely no
  longer used by anyone ...
- use --enable-osmesa, since we no longer have this extra build
  for libIndirectGL

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=328
This commit is contained in:
Stefan Dirsch 2013-09-20 11:57:54 +00:00 committed by Git OBS Bridge
parent 34c3675d67
commit 2e1e887734
3 changed files with 24 additions and 57 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Fri Sep 20 10:42:36 UTC 2013 - sndirsch@suse.com
- Disable u_mesa-8.0-llvmpipe-shmget.patch,
u_mesa-8.0.1-fix-16bpp.patch since these are considered wrong by
the author
- remove libIndirectGL (packages), since it is most likely no
longer used by anyone ...
- use --enable-osmesa, since we no longer have this extra build
for libIndirectGL
-------------------------------------------------------------------
Tue Sep 17 17:50:56 UTC 2013 - hrvoje.senjan@gmail.com

View File

@ -83,6 +83,8 @@ Provides: Mesa7 = %{version}
Obsoletes: Mesa7 < %{version}
Provides: intel-i810-Mesa = %{version}
Obsoletes: intel-i810-Mesa < %{version}
Provides: Mesa-libIndirectGL1 = %{version}
Obsoletes: Mesa-libIndirectGL1 < %{version}
Provides: xorg-x11-Mesa = %{version}
Obsoletes: Mesa-nouveau3d
Obsoletes: xorg-x11-Mesa < %{version}
@ -139,7 +141,6 @@ Requires: Mesa-libEGL-devel = %version
Requires: Mesa-libGL-devel = %version
Requires: Mesa-libGLESv1_CM-devel = %version
Requires: Mesa-libGLESv2-devel = %version
Requires: Mesa-libIndirectGL-devel = %version
Requires: Mesa-libglapi-devel = %version
Requires: libOSMesa-devel = %version
Requires: libgbm-devel
@ -158,6 +159,8 @@ Provides: Mesa-devel-static = %{version}
Provides: xorg-x11-Mesa-devel = %{version}
Obsoletes: Mesa-devel-static < %{version}
Obsoletes: xorg-x11-Mesa-devel < %{version}
Provides: Mesa-libIndirectGL-devel = %{version}
Obsoletes: Mesa-libIndirectGL-devel < %{version}
%description devel
Mesa is a 3-D graphics library with an API which is very similar to
@ -309,26 +312,6 @@ extensions for the special needs of embedded systems.
This package provides a development environment for building
applications using the OpenGL|ES 3.x APIs.
%package -n Mesa-libIndirectGL1
# This is the equivalent to Debian's libgl1-mesa-swx11
Summary: Free implementation of the OpenGL API
Group: System/Libraries
%description -n Mesa-libIndirectGL1
This library provides a pure software rasterizer; it does not provide
a direct rendering capable library, or one which uses GLX. For that,
please see Mesa-libGL1.
%package -n Mesa-libIndirectGL-devel
Summary: Development Files for the free implementation of the OpenGL API
Group: Development/Libraries/C and C++
Requires: Mesa-libIndirectGL1 = %version
%description -n Mesa-libIndirectGL-devel
This library provides a pure software rasterizer; it does not provide
a direct rendering capable library, or one which uses GLX. For that,
please see Mesa-libGL1.
%package -n libOSMesa9
Summary: Mesa Off-screen rendering extension
Group: System/Libraries
@ -530,8 +513,9 @@ poor video quality, choppy videos and artefacts all over.
# remove some docs
rm -rf docs/README.{VMS,WIN32,OS2}
#%patch11 -p1
%patch15 -p1
%patch13 -p1
# Both patches are considered wrong by the author -> disable them
#%patch15 -p1
#%patch13 -p1
%if %egl_gallium
%patch16 -p1
%endif
@ -559,6 +543,7 @@ autoreconf -fi
--with-egl-platforms=$egl_platforms \
--enable-shared-glapi \
--enable-texture-float \
--enable-osmesa \
%if %glamor
--enable-gbm \
--enable-glx-tls \
@ -612,25 +597,6 @@ find $RPM_BUILD_ROOT -name "*.la" -exec rm {} \;
test -f $RPM_BUILD_ROOT%{_libdir}/libGL.so.1.2 || \
ln -s `readlink $RPM_BUILD_ROOT%{_libdir}/libGL.so.1` $RPM_BUILD_ROOT%{_libdir}/libGL.so.1.2
# build and install Indirect Rendering only libGL
####
make distclean-generic
%configure --enable-xlib-glx \
--disable-dri \
--enable-osmesa \
--with-egl-platforms=x11 \
--with-gallium-drivers="" \
--with-gl-lib-name=IndirectGL \
CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
make %{?_smp_mflags}
cp -a \
src/mesa/drivers/x11/.libs/libIndirectGL.so* \
src/mesa/drivers/osmesa/.libs/libOSMesa.so* \
$RPM_BUILD_ROOT/usr/%{_lib}
install -m 644 src/mesa/drivers/osmesa/osmesa.pc \
$RPM_BUILD_ROOT/usr/%{_lib}/pkgconfig
for dir in ../xc/doc/man/{GL/gl,GL/glx}; do
pushd $dir
xmkmf -a
@ -669,10 +635,6 @@ install -m 644 $RPM_SOURCE_DIR/README.updates \
%postun -n Mesa-libGLESv2-2 -p /sbin/ldconfig
%post -n Mesa-libIndirectGL1 -p /sbin/ldconfig
%postun -n Mesa-libIndirectGL1 -p /sbin/ldconfig
%post -n libOSMesa9 -p /sbin/ldconfig
%postun -n libOSMesa9 -p /sbin/ldconfig
@ -792,14 +754,6 @@ install -m 644 $RPM_SOURCE_DIR/README.updates \
#%_libdir/libGLESv3.so
#%_libdir/pkgconfig/glesv3.pc
%files -n Mesa-libIndirectGL1
%defattr(-,root,root)
%_libdir/libIndirectGL.so.1*
%files -n Mesa-libIndirectGL-devel
%defattr(-,root,root)
%_libdir/libIndirectGL.so
%files -n libOSMesa9
%defattr(-,root,root)
%_libdir/libOSMesa.so.8.0.0

View File

@ -2,6 +2,8 @@ Mesa
+/usr/X11R6/lib(64)?/modules/dri/updates/README.updates
obsoletes "XFree86-Mesa-<targettype> xorg-x11-Mesa-<targettype>"
provides "XFree86-Mesa-<targettype> xorg-x11-Mesa-<targettype>"
provides "Mesa-libIndirectGL1-<targettype> = <version>"
obsoletes "Mesa-libIndirectGL1-<targettype> < <version>"
Mesa-devel
#We need Mesa-<targettype>!, do not put requires -Mesa-<targettype>.
requires "Mesa-<targettype> = <version>"
@ -17,6 +19,9 @@ Mesa-devel
#requires "libwayland-egl-devel-<targettype> = <version>"
obsoletes "XFree86-Mesa-devel-<targettype> xorg-x11-Mesa-devel-<targettype>"
provides "XFree86-Mesa-devel-<targettype> xorg-x11-Mesa-devel-<targettype>"
obsoletes "Mesa-libIndirectGL-devel-<targettype> < <version>"
provides "Mesa-libIndirectGL-devel-<targettype> = <version>"
Mesa-libEGL1
Mesa-libEGL-devel
requires "Mesa-libEGL1-<targettype> = <version>"
@ -34,9 +39,6 @@ Mesa-libGLESv2-devel
requires "Mesa-libGLESv2-2-<targettype> = <version>"
Mesa-libGLESv3-devel
requires "Mesa-libEGL-devel-<targettype> = <version>"
Mesa-libIndirectGL1
Mesa-libIndirectGL-devel
requires "Mesa-libIndirectGL1-<targettype> = <version>"
libOSMesa9
libOSMesa-devel
requires "libOSMesa9-<targettype> = <version>"