sync with F11
This commit is contained in:
parent
317e057245
commit
e0b8e0d91a
134
mesa.spec
134
mesa.spec
@ -1,26 +1,27 @@
|
|||||||
|
|
||||||
# When bootstrapping an arch, omit the -demos subpackage.
|
# When bootstrapping an arch, omit the -demos subpackage.
|
||||||
|
|
||||||
# S390 doesn't have video cards, so it's not much use building DRI there.
|
# S390 doesn't have video cards, but we need swrast for xserver's GLX
|
||||||
%ifarch s390 s390x
|
%ifarch s390 s390x
|
||||||
%define with_dri 0
|
%define with_hardware 0
|
||||||
%define driver xlib
|
%define dri_drivers --with-dri-drivers=swrast
|
||||||
%else
|
%else
|
||||||
%define with_dri 1
|
%define with_hardware 1
|
||||||
%define driver dri
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%define _default_patch_fuzz 2
|
%define _default_patch_fuzz 2
|
||||||
|
|
||||||
%define manpages gl-manpages-1.0.1
|
%define manpages gl-manpages-1.0.1
|
||||||
%define xdriinfo xdriinfo-1.0.2
|
%define xdriinfo xdriinfo-1.0.2
|
||||||
%define gitdate 20090428
|
%define gitdate 20090612
|
||||||
#% define snapshot
|
#% define snapshot
|
||||||
|
|
||||||
|
%define demodir %{_libdir}/mesa
|
||||||
|
|
||||||
Summary: Mesa graphics libraries
|
Summary: Mesa graphics libraries
|
||||||
Name: mesa
|
Name: mesa
|
||||||
Version: 7.5
|
Version: 7.6
|
||||||
Release: 0.15%{?dist}
|
Release: 0.3%{?dist}
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
URL: http://www.mesa3d.org
|
URL: http://www.mesa3d.org
|
||||||
@ -40,22 +41,17 @@ Patch1: mesa-7.1-osmesa-version.patch
|
|||||||
Patch2: mesa-7.1-nukeglthread-debug.patch
|
Patch2: mesa-7.1-nukeglthread-debug.patch
|
||||||
Patch3: mesa-no-mach64.patch
|
Patch3: mesa-no-mach64.patch
|
||||||
|
|
||||||
Patch6: radeon-rewrite.patch
|
|
||||||
|
|
||||||
Patch7: mesa-7.1-link-shared.patch
|
Patch7: mesa-7.1-link-shared.patch
|
||||||
Patch9: intel-revert-vbl.patch
|
Patch9: intel-revert-vbl.patch
|
||||||
|
|
||||||
Patch12: mesa-7.1-disable-intel-classic-warn.patch
|
Patch12: mesa-7.1-disable-intel-classic-warn.patch
|
||||||
Patch13: mesa-7.5-sparc64.patch
|
Patch13: mesa-7.5-sparc64.patch
|
||||||
|
|
||||||
Patch15: radeon-rewrite-emit1clip.patch
|
|
||||||
Patch16: mesa-7.5-r300-batch-accounting.patch
|
|
||||||
|
|
||||||
BuildRequires: pkgconfig autoconf automake
|
BuildRequires: pkgconfig autoconf automake
|
||||||
%if %{with_dri}
|
%if %{with_hardware}
|
||||||
BuildRequires: libdrm-devel >= 2.4.5-1
|
|
||||||
BuildRequires: kernel-headers >= 2.6.27-0.305.rc5.git6
|
BuildRequires: kernel-headers >= 2.6.27-0.305.rc5.git6
|
||||||
%endif
|
%endif
|
||||||
|
BuildRequires: libdrm-devel >= 2.4.5-1
|
||||||
BuildRequires: libXxf86vm-devel
|
BuildRequires: libXxf86vm-devel
|
||||||
BuildRequires: expat-devel >= 2.0
|
BuildRequires: expat-devel >= 2.0
|
||||||
BuildRequires: xorg-x11-proto-devel >= 7.1-10
|
BuildRequires: xorg-x11-proto-devel >= 7.1-10
|
||||||
@ -78,9 +74,9 @@ Group: System Environment/Libraries
|
|||||||
Requires(post): /sbin/ldconfig
|
Requires(post): /sbin/ldconfig
|
||||||
Requires(postun): /sbin/ldconfig
|
Requires(postun): /sbin/ldconfig
|
||||||
Provides: libGL
|
Provides: libGL
|
||||||
%if %{with_dri}
|
|
||||||
Requires: libdrm >= 2.4.5-1
|
|
||||||
Requires: mesa-dri-drivers%{?_isa} = %{version}-%{release}
|
Requires: mesa-dri-drivers%{?_isa} = %{version}-%{release}
|
||||||
|
Requires: libdrm >= 2.4.5-1
|
||||||
|
%if %{with_hardware}
|
||||||
Conflicts: xorg-x11-server-Xorg < 1.4.99.901-14
|
Conflicts: xorg-x11-server-Xorg < 1.4.99.901-14
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -88,13 +84,11 @@ Conflicts: xorg-x11-server-Xorg < 1.4.99.901-14
|
|||||||
Mesa libGL runtime library.
|
Mesa libGL runtime library.
|
||||||
|
|
||||||
|
|
||||||
%if %{with_dri}
|
|
||||||
%package dri-drivers
|
%package dri-drivers
|
||||||
Summary: Mesa-based DRI drivers
|
Summary: Mesa-based DRI drivers
|
||||||
Group: User Interface/X Hardware Support
|
Group: User Interface/X Hardware Support
|
||||||
%description dri-drivers
|
%description dri-drivers
|
||||||
Mesa-based DRI drivers.
|
Mesa-based DRI drivers.
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%package libGL-devel
|
%package libGL-devel
|
||||||
@ -168,24 +162,21 @@ This package provides some demo applications for testing Mesa.
|
|||||||
|
|
||||||
|
|
||||||
%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} -b2 -b5
|
||||||
%patch1 -p1 -b .osmesa
|
%patch1 -p1 -b .osmesa
|
||||||
%patch2 -p1 -b .intel-glthread
|
%patch2 -p1 -b .intel-glthread
|
||||||
%patch3 -p0 -b .no-mach64
|
%patch3 -p0 -b .no-mach64
|
||||||
%patch6 -p1 -b .radeon-rewrite
|
|
||||||
%patch7 -p1 -b .dricore
|
%patch7 -p1 -b .dricore
|
||||||
%patch9 -p1 -b .intel-vbl
|
%patch9 -p1 -b .intel-vbl
|
||||||
%patch12 -p1 -b .intel-nowarn
|
%patch12 -p1 -b .intel-nowarn
|
||||||
%patch13 -p1 -b .sparc64
|
%patch13 -p1 -b .sparc64
|
||||||
%patch15 -p1 -b .fix-clip
|
|
||||||
%patch16 -p1 -b .r300-accounting
|
|
||||||
|
|
||||||
# Hack the demos to use installed data files
|
# Hack the demos to use installed data files
|
||||||
sed -i 's,../images,%{_libdir}/mesa-demos-data,' progs/demos/*.c
|
sed -i 's,../images,%{_libdir}/mesa,' progs/demos/*.c
|
||||||
sed -i 's,geartrain.dat,%{_libdir}/mesa-demos-data/&,' progs/demos/geartrain.c
|
sed -i 's,geartrain.dat,%{_libdir}/mesa/&,' progs/demos/geartrain.c
|
||||||
sed -i 's,isosurf.dat,%{_libdir}/mesa-demos-data/&,' progs/demos/isosurf.c
|
sed -i 's,isosurf.dat,%{_libdir}/mesa/&,' progs/demos/isosurf.c
|
||||||
sed -i 's,terrain.dat,%{_libdir}/mesa-demos-data/&,' progs/demos/terrain.c
|
sed -i 's,terrain.dat,%{_libdir}/mesa/&,' progs/demos/terrain.c
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
@ -228,8 +219,9 @@ export CXXFLAGS="$RPM_OPT_FLAGS -Os"
|
|||||||
--disable-glut \
|
--disable-glut \
|
||||||
--disable-gallium \
|
--disable-gallium \
|
||||||
--disable-gl-osmesa \
|
--disable-gl-osmesa \
|
||||||
--with-driver=%{driver} \
|
--with-driver=dri \
|
||||||
--with-dri-driverdir=%{_libdir}/dri
|
--with-dri-driverdir=%{_libdir}/dri \
|
||||||
|
%{dri_drivers}
|
||||||
|
|
||||||
make #{?_smp_mflags}
|
make #{?_smp_mflags}
|
||||||
|
|
||||||
@ -253,14 +245,12 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
make install DESTDIR=$RPM_BUILD_ROOT DRI_DIRS=
|
make install DESTDIR=$RPM_BUILD_ROOT DRI_DIRS=
|
||||||
|
|
||||||
# just the DRI drivers that are sane
|
# just the DRI drivers that are sane
|
||||||
%if %{with_dri}
|
|
||||||
install -d $RPM_BUILD_ROOT%{_libdir}/dri
|
install -d $RPM_BUILD_ROOT%{_libdir}/dri
|
||||||
install -m 0755 -t $RPM_BUILD_ROOT%{_libdir}/dri %{_lib}/libdricore.so >& /dev/null
|
install -m 0755 -t $RPM_BUILD_ROOT%{_libdir}/dri %{_lib}/libdricore.so >& /dev/null
|
||||||
for f in i810 i915 i965 mach64 mga r128 r200 r300 radeon savage sis swrast tdfx unichrome; do
|
for f in i810 i915 i965 mach64 mga r128 r200 r300 radeon savage sis swrast tdfx unichrome; do
|
||||||
so=%{_lib}/${f}_dri.so
|
so=%{_lib}/${f}_dri.so
|
||||||
test -e $so && echo $so
|
test -e $so && echo $so
|
||||||
done | xargs install -m 0755 -t $RPM_BUILD_ROOT%{_libdir}/dri >& /dev/null || :
|
done | xargs install -m 0755 -t $RPM_BUILD_ROOT%{_libdir}/dri >& /dev/null || :
|
||||||
%endif
|
|
||||||
|
|
||||||
# strip out undesirable headers
|
# strip out undesirable headers
|
||||||
pushd $RPM_BUILD_ROOT%{_includedir}/GL
|
pushd $RPM_BUILD_ROOT%{_includedir}/GL
|
||||||
@ -268,20 +258,18 @@ rm [a-fh-np-wyz]*.h gg*.h glf*.h glew.h glut*.h glxew.h
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
pushd $RPM_BUILD_ROOT%{_libdir}
|
pushd $RPM_BUILD_ROOT%{_libdir}
|
||||||
rm libEGL* demodriver.so
|
rm -f libEGL*
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# 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 progs/xdemos/glxgears $RPM_BUILD_ROOT%{_bindir}
|
||||||
install -m 0755 progs/xdemos/glxinfo $RPM_BUILD_ROOT%{_bindir}
|
install -m 0755 progs/xdemos/glxinfo $RPM_BUILD_ROOT%{_bindir}
|
||||||
|
install -d $RPM_BUILD_ROOT%{demodir}
|
||||||
find progs/demos/ -type f -perm /0111 |
|
find progs/demos/ -type f -perm /0111 |
|
||||||
xargs install -m 0755 -t $RPM_BUILD_ROOT/%{_bindir}
|
xargs install -m 0755 -t $RPM_BUILD_ROOT/%{demodir}
|
||||||
# bah, name conflicts
|
install -m 0644 progs/images/*.rgb $RPM_BUILD_ROOT/%{demodir}
|
||||||
mv $RPM_BUILD_ROOT/%{_bindir}/{rain,mesa-rain}
|
install -m 0644 progs/demos/*.dat $RPM_BUILD_ROOT/%{demodir}
|
||||||
install -d $RPM_BUILD_ROOT/%{_libdir}/mesa-demos-data
|
|
||||||
install -m 0644 progs/images/*.rgb $RPM_BUILD_ROOT/%{_libdir}/mesa-demos-data
|
|
||||||
install -m 0644 progs/demos/*.dat $RPM_BUILD_ROOT/%{_libdir}/mesa-demos-data
|
|
||||||
|
|
||||||
# and osmesa
|
# and osmesa
|
||||||
mv osmesa*/* $RPM_BUILD_ROOT%{_libdir}
|
mv osmesa*/* $RPM_BUILD_ROOT%{_libdir}
|
||||||
@ -318,13 +306,11 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_libdir}/libGL.so.1
|
%{_libdir}/libGL.so.1
|
||||||
%{_libdir}/libGL.so.1.*
|
%{_libdir}/libGL.so.1.*
|
||||||
|
|
||||||
%if %{with_dri}
|
|
||||||
%files dri-drivers
|
%files dri-drivers
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%dir %{_libdir}/dri
|
%dir %{_libdir}/dri
|
||||||
%{_libdir}/dri/libdricore.so
|
%{_libdir}/dri/libdricore.so
|
||||||
%{_libdir}/dri/*_dri.so
|
%{_libdir}/dri/*_dri.so
|
||||||
%endif
|
|
||||||
|
|
||||||
%files libGL-devel
|
%files libGL-devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -334,11 +320,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_includedir}/GL/glx.h
|
%{_includedir}/GL/glx.h
|
||||||
%{_includedir}/GL/glx_mangle.h
|
%{_includedir}/GL/glx_mangle.h
|
||||||
%{_includedir}/GL/glxext.h
|
%{_includedir}/GL/glxext.h
|
||||||
%if %{with_dri}
|
|
||||||
%dir %{_includedir}/GL/internal
|
%dir %{_includedir}/GL/internal
|
||||||
%{_includedir}/GL/internal/dri_interface.h
|
%{_includedir}/GL/internal/dri_interface.h
|
||||||
%{_libdir}/pkgconfig/dri.pc
|
%{_libdir}/pkgconfig/dri.pc
|
||||||
%endif
|
|
||||||
%{_libdir}/libGL.so
|
%{_libdir}/libGL.so
|
||||||
%{_libdir}/pkgconfig/gl.pc
|
%{_libdir}/pkgconfig/gl.pc
|
||||||
%{_datadir}/man/man3/gl[^uX]*.3gl*
|
%{_datadir}/man/man3/gl[^uX]*.3gl*
|
||||||
@ -379,61 +363,21 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files demos
|
%files demos
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_bindir}/arbfplight
|
%{demodir}
|
||||||
%{_bindir}/arbfslight
|
|
||||||
%{_bindir}/arbocclude
|
|
||||||
%{_bindir}/bounce
|
|
||||||
%{_bindir}/clearspd
|
|
||||||
%{_bindir}/copypix
|
|
||||||
%{_bindir}/cubemap
|
|
||||||
%{_bindir}/dinoshade
|
|
||||||
%{_bindir}/drawpix
|
|
||||||
%{_bindir}/engine
|
|
||||||
%{_bindir}/fbo_firecube
|
|
||||||
%{_bindir}/fbotexture
|
|
||||||
%{_bindir}/fire
|
|
||||||
%{_bindir}/fogcoord
|
|
||||||
%{_bindir}/fplight
|
|
||||||
%{_bindir}/fslight
|
|
||||||
%{_bindir}/gamma
|
|
||||||
%{_bindir}/gearbox
|
|
||||||
%{_bindir}/gears
|
|
||||||
%{_bindir}/geartrain
|
|
||||||
%{_bindir}/glinfo
|
|
||||||
%{_bindir}/gloss
|
|
||||||
%{_bindir}/gltestperf
|
|
||||||
%{_bindir}/ipers
|
|
||||||
%{_bindir}/isosurf
|
|
||||||
%{_bindir}/lodbias
|
|
||||||
%{_bindir}/morph3d
|
|
||||||
%{_bindir}/multiarb
|
|
||||||
%{_bindir}/paltex
|
|
||||||
%{_bindir}/pointblast
|
|
||||||
%{_bindir}/projtex
|
|
||||||
%{_bindir}/mesa-rain
|
|
||||||
%{_bindir}/ray
|
|
||||||
%{_bindir}/readpix
|
|
||||||
%{_bindir}/reflect
|
|
||||||
%{_bindir}/renormal
|
|
||||||
%{_bindir}/shadowtex
|
|
||||||
%{_bindir}/singlebuffer
|
|
||||||
%{_bindir}/spectex
|
|
||||||
%{_bindir}/spriteblast
|
|
||||||
%{_bindir}/stex3d
|
|
||||||
%{_bindir}/teapot
|
|
||||||
%{_bindir}/terrain
|
|
||||||
%{_bindir}/tessdemo
|
|
||||||
%{_bindir}/texcyl
|
|
||||||
%{_bindir}/texenv
|
|
||||||
%{_bindir}/textures
|
|
||||||
%{_bindir}/trispd
|
|
||||||
%{_bindir}/tunnel
|
|
||||||
%{_bindir}/tunnel2
|
|
||||||
%{_bindir}/vao_demo
|
|
||||||
%{_bindir}/winpos
|
|
||||||
%{_libdir}/mesa-demos-data
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 16 2009 Karsten Hopp <karsten@redhat.com> 7.6-0.3
|
||||||
|
- some more fixes for s390(x)
|
||||||
|
|
||||||
|
* Tue Jun 16 2009 Adam Jackson <ajax@redhat.com> 7.6-0.2
|
||||||
|
- Rework the DRI driver support for s390 and friends.
|
||||||
|
|
||||||
|
* Fri Jun 12 2009 Dave Airlie <airlied@redhat.com> 7.6-0.1
|
||||||
|
- rebase mesa to latest git snapshot - fixes a lot of radeon issues
|
||||||
|
|
||||||
|
* Thu Jun 11 2009 Adam Jackson <ajax@redhat.com> 7.5-0.16
|
||||||
|
- Install demos to %%{_libdir}/mesa
|
||||||
|
|
||||||
* Thu May 21 2009 Adam Jackson <ajax@redhat.com> 7.5-0.15
|
* Thu May 21 2009 Adam Jackson <ajax@redhat.com> 7.5-0.15
|
||||||
- mesa-7.5-r300-batch-accounting.patch: Fix cmdbuf sizing (#501312)
|
- mesa-7.5-r300-batch-accounting.patch: Fix cmdbuf sizing (#501312)
|
||||||
|
|
||||||
|
2
sources
2
sources
@ -1,3 +1,3 @@
|
|||||||
6ae05158e678f4594343f32c2ca50515 gl-manpages-1.0.1.tar.bz2
|
6ae05158e678f4594343f32c2ca50515 gl-manpages-1.0.1.tar.bz2
|
||||||
a5ec51ed9f0a55dc3462d90d52ff899c xdriinfo-1.0.2.tar.bz2
|
a5ec51ed9f0a55dc3462d90d52ff899c xdriinfo-1.0.2.tar.bz2
|
||||||
d7ff7c44fe42f2639845a2975804792d mesa-20090428.tar.bz2
|
93b7016851831fc31d02103e7d9551b3 mesa-20090612.tar.bz2
|
||||||
|
Loading…
Reference in New Issue
Block a user