SHA256
1
0
forked from pool/Mesa
OBS User unknown 2008-07-11 20:03:53 +00:00 committed by Git OBS Bridge
parent 033285b7f7
commit 65e55f7133
2 changed files with 14 additions and 26 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jul 10 23:10:25 CEST 2008 - sndirsch@suse.de
- even s390(x) needs swrast DRI driver now
- specfile cleanup
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jul 9 09:50:25 CEST 2008 - sndirsch@suse.de Wed Jul 9 09:50:25 CEST 2008 - sndirsch@suse.de

View File

@ -20,7 +20,7 @@ Provides: xorg-x11-Mesa
Obsoletes: xorg-x11-Mesa Obsoletes: xorg-x11-Mesa
AutoReqProv: on AutoReqProv: on
Version: 7.1 Version: 7.1
Release: 3 Release: 5
Summary: Mesa is a 3-D graphics library with an API which is very similar to that of OpenGL Summary: Mesa is a 3-D graphics library with an API which is very similar to that of OpenGL
Source: MesaLib-6befdca.tar.bz2 Source: MesaLib-6befdca.tar.bz2
Source1: MesaDemos-%{version}-rc1.tar.bz2 Source1: MesaDemos-%{version}-rc1.tar.bz2
@ -115,10 +115,8 @@ rm -f include/GL/{glut.h,uglglutshapes.h,glutf90.h}
%patch1 %patch1
sed -i 's/REPLACE/%_lib/g' src/glx/x11/Makefile sed -i 's/REPLACE/%_lib/g' src/glx/x11/Makefile
%patch2 %patch2
%ifarch %ix86 x86_64 ppc
### FIXME ### FIXME
#%patch6 #%patch6
%endif
%patch7 -p1 %patch7 -p1
%build %build
@ -127,16 +125,16 @@ sed -i 's/REPLACE/%_lib/g' src/glx/x11/Makefile
#autoreconf -fi #autoreconf -fi
### libGL (disable savage/mga, bnc #402132/#403071) ### libGL (disable savage/mga, bnc #402132/#403071)
%configure --disable-glw \ %configure --disable-glw \
%ifarch ia64
--with-driver=dri \ --with-driver=dri \
%endif %ifarch %ix86 x86_64 ppc
%ifnarch s390 s390x ppc64
--with-dri-drivers=i915,i965,mach64,r128,r200,r300,radeon,tdfx,unichrome,swrast \ --with-dri-drivers=i915,i965,mach64,r128,r200,r300,radeon,tdfx,unichrome,swrast \
%endif
%ifarch s390 s390x
--with-dri-drivers=swrast \
%endif %endif
--disable-glut --disable-glut
gmake gmake
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
%ifnarch s390 s390x ppc64
# build and install Indirect Rendering only libGL # build and install Indirect Rendering only libGL
make realclean make realclean
%configure --with-driver=xlib \ %configure --with-driver=xlib \
@ -147,7 +145,6 @@ sed -i 's/GL_LIB = .*/GL_LIB = IndirectGL/g' configs/autoconf
gmake gmake
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
rm $RPM_BUILD_ROOT/usr/%{_lib}/libIndirectGL.so rm $RPM_BUILD_ROOT/usr/%{_lib}/libIndirectGL.so
%endif
### static libGL ### static libGL
make realclean make realclean
%configure --with-driver=xlib \ %configure --with-driver=xlib \
@ -157,7 +154,6 @@ make realclean
--disable-glut --disable-glut
gmake gmake
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
%ifnarch s390
for dir in ../xc/doc/man/{GL/gl,GL/glx,GLU}; do for dir in ../xc/doc/man/{GL/gl,GL/glx,GLU}; do
pushd $dir pushd $dir
xmkmf -a xmkmf -a
@ -165,19 +161,10 @@ pushd $dir
make install.man DESTDIR=$RPM_BUILD_ROOT MANPATH=%{_mandir} LIBMANSUFFIX=3gl make install.man DESTDIR=$RPM_BUILD_ROOT MANPATH=%{_mandir} LIBMANSUFFIX=3gl
popd popd
done done
%endif
%ifnarch s390 s390x ppc64
# DRI driver update mechanism # DRI driver update mechanism
mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/dri/updates mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/dri/updates
install -m 644 $RPM_SOURCE_DIR/README.updates \ install -m 644 $RPM_SOURCE_DIR/README.updates \
$RPM_BUILD_ROOT/usr/%{_lib}/dri/updates $RPM_BUILD_ROOT/usr/%{_lib}/dri/updates
%endif
# required for building Xserver glx extension later
%ifarch s390 s390x
mkdir -p $RPM_BUILD_ROOT//usr/include/GL/internal/
install -m 644 include/GL/internal/{dri_interface.h,dri_sarea.h} \
$RPM_BUILD_ROOT//usr/include/GL/internal/
%endif
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -195,9 +182,7 @@ rm -rf $RPM_BUILD_ROOT
/usr/include/GL/glxext.h /usr/include/GL/glxext.h
/usr/%{_lib}/libGL.so /usr/%{_lib}/libGL.so
/usr/%{_lib}/lib*.so.* /usr/%{_lib}/lib*.so.*
%ifnarch s390 s390x
/usr/%{_lib}/dri/ /usr/%{_lib}/dri/
%endif
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
@ -226,17 +211,11 @@ rm -rf $RPM_BUILD_ROOT
/usr/include/GL/directfbgl.h /usr/include/GL/directfbgl.h
/usr/include/GL/miniglx.h /usr/include/GL/miniglx.h
/usr/%{_lib}/libGLU.so /usr/%{_lib}/libGLU.so
%ifnarch ppc64
/usr/%{_lib}/libOSMesa.so /usr/%{_lib}/libOSMesa.so
%endif
%ifnarch s390 s390x
/usr/%{_lib}/pkgconfig/dri.pc /usr/%{_lib}/pkgconfig/dri.pc
%endif
/usr/%{_lib}/pkgconfig/gl.pc /usr/%{_lib}/pkgconfig/gl.pc
/usr/%{_lib}/pkgconfig/glu.pc /usr/%{_lib}/pkgconfig/glu.pc
%ifnarch s390
%{_mandir}/man3/* %{_mandir}/man3/*
%endif
%files devel-static %files devel-static
%defattr(-,root,root) %defattr(-,root,root)
@ -245,6 +224,9 @@ rm -rf $RPM_BUILD_ROOT
/usr/%{_lib}/libOSMesa.a /usr/%{_lib}/libOSMesa.a
%changelog %changelog
* Fri Jul 11 2008 sndirsch@suse.de
- even s390(x) needs swrast DRI driver now
- specfile cleanup
* Wed Jul 09 2008 sndirsch@suse.de * Wed Jul 09 2008 sndirsch@suse.de
- no dri.pc for s390/s390x - no dri.pc for s390/s390x
* Wed Jul 09 2008 sndirsch@suse.de * Wed Jul 09 2008 sndirsch@suse.de