- rebase to a git snapshot - disable vmwgfx

This commit is contained in:
Dave Airlie 2010-05-29 22:52:50 +00:00
parent 2574f3f6f6
commit df0934e477

View File

@ -13,15 +13,16 @@
%define manpages gl-manpages-1.0.1 %define manpages gl-manpages-1.0.1
%define xdriinfo xdriinfo-1.0.3 %define xdriinfo xdriinfo-1.0.3
%define gitdate 20100208 %define gitdate 20100529
#% define snapshot #% define snapshot
%global demopkg %{name}-demos-%{gitdate}
%define demodir %{_libdir}/mesa %define demodir %{_libdir}/mesa
Summary: Mesa graphics libraries Summary: Mesa graphics libraries
Name: mesa Name: mesa
Version: 7.8 Version: 7.9
Release: 0.16%{?dist} Release: 0.1%{?dist}
License: MIT License: MIT
Group: System Environment/Libraries Group: System Environment/Libraries
URL: http://www.mesa3d.org URL: http://www.mesa3d.org
@ -31,9 +32,11 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
#Source0: http://www.mesa3d.org/beta/MesaLib-%{version}%{?snapshot}.tar.bz2 #Source0: http://www.mesa3d.org/beta/MesaLib-%{version}%{?snapshot}.tar.bz2
#Source1: http://www.mesa3d.org/beta/MesaDemos-%{version}%{?snapshot}.tar.bz2 #Source1: http://www.mesa3d.org/beta/MesaDemos-%{version}%{?snapshot}.tar.bz2
Source0: %{name}-%{gitdate}.tar.bz2 Source0: %{name}-%{gitdate}.tar.bz2
Source1: %{name}-demos-%{gitdate}.tar.bz2
#Source1: http://downloads.sf.net/mesa3d/MesaDemos-%{version}.tar.bz2 #Source1: http://downloads.sf.net/mesa3d/MesaDemos-%{version}.tar.bz2
Source2: %{manpages}.tar.bz2 Source2: %{manpages}.tar.bz2
Source3: make-git-snapshot.sh Source3: make-git-snapshot.sh
Source4: make-demo-snapshot.sh
Source5: http://www.x.org/pub/individual/app/%{xdriinfo}.tar.bz2 Source5: http://www.x.org/pub/individual/app/%{xdriinfo}.tar.bz2
@ -63,6 +66,7 @@ BuildRequires: libXfixes-devel
BuildRequires: libXdamage-devel BuildRequires: libXdamage-devel
BuildRequires: libXi-devel BuildRequires: libXi-devel
BuildRequires: libXmu-devel BuildRequires: libXmu-devel
BuildRequires: glew-devel
BuildRequires: elfutils BuildRequires: elfutils
BuildRequires: python BuildRequires: python
@ -164,6 +168,7 @@ The glx-utils package provides the glxinfo and glxgears utilities.
%package demos %package demos
Summary: Mesa demos Summary: Mesa demos
Group: Development/Libraries Group: Development/Libraries
Requires: glew
%description demos %description demos
This package provides some demo applications for testing Mesa. This package provides some demo applications for testing Mesa.
@ -177,19 +182,21 @@ Group: User Interface/X Hardware Support
%prep %prep
#setup -q -n mesa-%{version}%{?snapshot} -b0 -b2 -b5 #setup -q -n mesa-%{version}%{?snapshot} -b0 -b2 -b5
%setup -q -n mesa-%{gitdate} -b2 -b5 %setup -q -n mesa-%{gitdate} -b1 -b2 -b5
%patch1 -p1 -b .osmesa %patch1 -p1 -b .osmesa
%patch2 -p1 -b .intel-glthread #patch2 -p1 -b .intel-glthread
%patch3 -p1 -b .no-mach64 %patch3 -p1 -b .no-mach64
%patch4 -p1 -b .nouveau-legacy %patch4 -p1 -b .nouveau
#%patch7 -p1 -b .dricore #%patch7 -p1 -b .dricore
%patch30 -p1 -b .vblank-warning %patch30 -p1 -b .vblank-warning
# Hack the demos to use installed data files # Hack the demos to use installed data files
sed -i 's,../images,%{_libdir}/mesa,' progs/demos/*.c cd ../%{demopkg}
sed -i 's,geartrain.dat,%{_libdir}/mesa/&,' progs/demos/geartrain.c sed -i 's,../images,%{_libdir}/mesa,' src/demos/*.c
sed -i 's,isosurf.dat,%{_libdir}/mesa/&,' progs/demos/isosurf.c sed -i 's,geartrain.dat,%{_libdir}/mesa/&,' src/demos/geartrain.c
sed -i 's,terrain.dat,%{_libdir}/mesa/&,' progs/demos/terrain.c sed -i 's,isosurf.dat,%{_libdir}/mesa/&,' src/demos/isosurf.c
sed -i 's,terrain.dat,%{_libdir}/mesa/&,' src/demos/terrain.c
cd -
%build %build
@ -238,15 +245,21 @@ export CXXFLAGS="$RPM_OPT_FLAGS -Os"
--disable-gl-osmesa \ --disable-gl-osmesa \
--with-driver=dri \ --with-driver=dri \
--with-dri-driverdir=%{_libdir}/dri \ --with-dri-driverdir=%{_libdir}/dri \
--with-state-trackers=dri,xorg,glx \ --with-state-trackers=dri,glx \
--enable-gallium-svga \ --disable-gallium-intel \
--disable-gallium-svga \
--enable-gallium-radeon \
--enable-gallium-nouveau \ --enable-gallium-nouveau \
--disable-egl \
%{?dri_drivers} %{?dri_drivers}
make #{?_smp_mflags} make %{?_smp_mflags}
make -C progs/xdemos glxgears glxinfo pushd ../%{demopkg}
make %{?_smp_mflags} -C progs/demos autoreconf -v --install
%configure --bindir=%{demodir}
make %{?_smp_mflags}
popd
pushd ../%{xdriinfo} pushd ../%{xdriinfo}
%configure %configure
@ -275,26 +288,24 @@ done | xargs install -m 0755 -t $RPM_BUILD_ROOT%{_libdir}/dri >& /dev/null || :
# strip out undesirable headers # strip out undesirable headers
pushd $RPM_BUILD_ROOT%{_includedir}/GL pushd $RPM_BUILD_ROOT%{_includedir}/GL
rm [a-fh-np-wyz]*.h gg*.h glf*.h glew.h glut*.h glxew.h rm [a-fh-np-wyz]*.h glf*.h glew.h glut*.h glxew.h
popd
pushd $RPM_BUILD_ROOT%{_includedir}/
rm -rf EGL KHR
popd popd
pushd $RPM_BUILD_ROOT%{_libdir} pushd $RPM_BUILD_ROOT%{_libdir}
rm -f libEGL* dri/EGL* egl/egl_glx* egl/egl_dri2* xorg/modules/drivers/modesetting_drv.so rm -f xorg/modules/drivers/modesetting_drv.so
popd popd
pushd ../%{demopkg}
# XXX demos, since they don't install automatically. should fix that. # XXX demos, since they don't install automatically. should fix that.
install -d $RPM_BUILD_ROOT%{_bindir} install -d $RPM_BUILD_ROOT%{_bindir}
install -m 0755 progs/xdemos/glxgears $RPM_BUILD_ROOT%{_bindir} install -m 0755 src/xdemos/glxgears $RPM_BUILD_ROOT%{_bindir}
install -m 0755 progs/xdemos/glxinfo $RPM_BUILD_ROOT%{_bindir} install -m 0755 src/xdemos/glxinfo $RPM_BUILD_ROOT%{_bindir}
install -d $RPM_BUILD_ROOT%{demodir} install -d $RPM_BUILD_ROOT%{demodir}
find progs/demos/ -type f -perm /0111 | find src/demos/ -type f -perm /0111 |
xargs install -m 0755 -t $RPM_BUILD_ROOT/%{demodir} xargs install -m 0755 -t $RPM_BUILD_ROOT/%{demodir}
install -m 0644 progs/images/*.rgb $RPM_BUILD_ROOT/%{demodir} install -m 0644 src/images/*.rgb $RPM_BUILD_ROOT/%{demodir}
install -m 0644 progs/demos/*.dat $RPM_BUILD_ROOT/%{demodir} install -m 0644 src/demos/*.dat $RPM_BUILD_ROOT/%{demodir}
popd
# and osmesa # and osmesa
mv osmesa*/libOS* $RPM_BUILD_ROOT%{_libdir} mv osmesa*/libOS* $RPM_BUILD_ROOT%{_libdir}
@ -336,13 +347,13 @@ rm -rf $RPM_BUILD_ROOT
%dir %{_libdir}/dri %dir %{_libdir}/dri
#%{_libdir}/dri/libdricore.so #%{_libdir}/dri/libdricore.so
%{_libdir}/dri/*_dri.so %{_libdir}/dri/*_dri.so
%exclude %{_libdir}/dri/vmwgfx_dri.so #exclude %{_libdir}/dri/vmwgfx_dri.so
%exclude %{_libdir}/dri/nouveau_dri.so %exclude %{_libdir}/dri/nouveau_dri.so
%exclude %{_libdir}/dri/nouveau_vieux_dri.so %exclude %{_libdir}/dri/nouveau_vieux_dri.so
%files dri-drivers-experimental %files dri-drivers-experimental
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/dri/vmwgfx_dri.so #{_libdir}/dri/vmwgfx_dri.so
%{_libdir}/dri/nouveau_dri.so %{_libdir}/dri/nouveau_dri.so
%{_libdir}/dri/nouveau_vieux_dri.so %{_libdir}/dri/nouveau_vieux_dri.so
@ -399,11 +410,10 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{demodir} %{demodir}
%files -n xorg-x11-drv-vmwgfx
%defattr(-,root,root,-)
%{_libdir}/xorg/modules/drivers/vmwgfx_drv.so
%changelog %changelog
* Sun May 30 2010 Dave Airlie <airlied@redhat.com> 7.9-0.1
- rebase to a git snapshot - disable vmwgfx
* Mon Feb 08 2010 Ben Skeggs <bskeggs@redhat.com> 7.8-0.16 * Mon Feb 08 2010 Ben Skeggs <bskeggs@redhat.com> 7.8-0.16
- patch mesa to enable legacy nouveau driver build on i386 - patch mesa to enable legacy nouveau driver build on i386