auto-import mesa-6.3.2-1 on branch devel from mesa-6.3.2-1.src.rpm
This commit is contained in:
parent
4d75a60bdc
commit
36252a7e27
424
mesa.spec
424
mesa.spec
@ -1,232 +1,288 @@
|
|||||||
|
%define pkgname Mesa
|
||||||
|
|
||||||
%define version 6.3.2
|
%ifarch %{ix86} x86_64 ppc ia64
|
||||||
%define release 0.6
|
%define with_dri 1
|
||||||
|
%else
|
||||||
|
%define with_dri 0
|
||||||
|
%endif
|
||||||
|
|
||||||
#BuildRequires: xorg-util-macros xorg-proto xorg-lib-X11 xorg-lib-Xext xorg-lib-Xt
|
Summary: Mesa
|
||||||
BuildRequires: xorg-x11-libXxf86vm-devel
|
Name: mesa
|
||||||
BuildRoot: /var/tmp/build-%{name}-%{version}
|
Version: 6.3.2
|
||||||
|
Release: 1
|
||||||
|
License: MIT/X11
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
License: dunno
|
URL: http://www.mesa3d.org
|
||||||
Release: %{release}
|
|
||||||
Source0: MesaLib-%{version}.tar.bz2
|
Source0: MesaLib-%{version}.tar.bz2
|
||||||
# temporary, should be fixed in the next release
|
# FIXME; Upstream Mesa 6.3.2 as shipped is broken and missing files for
|
||||||
|
# the linux-dri-x86 target.
|
||||||
Source1: r200_vtxtmp_x86.S
|
Source1: r200_vtxtmp_x86.S
|
||||||
Source2: radeon_vtxtmp_x86.S
|
Source2: radeon_vtxtmp_x86.S
|
||||||
Patch0: mesa-6.3.2-compile.patch
|
#Patch0: mesa-6.3.2-makedepend.patch
|
||||||
Version: %{version}
|
Patch0: mesa-6.3.2-build-configuration-v4.patch
|
||||||
|
Patch1: mesa-6.3.2-fix-installmesa.patch
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
||||||
|
|
||||||
Name: mesa
|
BuildRequires: libdrm-devel
|
||||||
Summary: Mesa
|
BuildRequires: libXxf86vm-devel
|
||||||
|
#BuildRequires: xorg-x11-xtrans-devel
|
||||||
|
|
||||||
|
#Provides: %{pkgname}
|
||||||
|
#Conflicts: XFree86-libs, xorg-x11-libs
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Mesa provides a library that may or may not meet the requirements of the OpenGL API.
|
Mesa
|
||||||
|
|
||||||
%package devel
|
%package libGL
|
||||||
Summary: Libraries and headers needed to build programs using Mesa.
|
Summary: Mesa libGL runtime libraries and DRI drivers.
|
||||||
|
Group: System Environment/Libraries
|
||||||
|
#Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
#Provides: %{pkgname}-devel
|
||||||
|
#Conflicts: XFree86-devel, xorg-x11-devel
|
||||||
|
|
||||||
|
%description libGL
|
||||||
|
Mesa libGL runtime libraries and DRI drivers.
|
||||||
|
|
||||||
|
%package libGL-devel
|
||||||
|
Summary: Mesa libGL development package
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
%description devel
|
#Requires: %{name} = %{version}-%{release}
|
||||||
Libraries and headers needed to build programs using Mesa.
|
|
||||||
|
|
||||||
%package dri-ffb
|
#Provides: %{pkgname}-devel
|
||||||
Group: User Interface/X Hardware Support
|
#Conflicts: XFree86-devel, xorg-x11-devel
|
||||||
Summary: DRI driver for ffb
|
|
||||||
%description dri-ffb
|
|
||||||
DRI driver for ffb
|
|
||||||
|
|
||||||
%package dri-i810
|
%description libGL-devel
|
||||||
Group: User Interface/X Hardware Support
|
Mesa libGL development package
|
||||||
Summary: DRI driver for i810
|
|
||||||
%description dri-i810
|
|
||||||
DRI driver for i810
|
|
||||||
|
|
||||||
%package dri-i830
|
%package libGLU
|
||||||
Group: User Interface/X Hardware Support
|
Summary: Mesa libGLU runtime library
|
||||||
Summary: DRI driver for i830
|
Group: System Environment/Libraries
|
||||||
%description dri-i830
|
#Requires: %{name} = %{version}-%{release}
|
||||||
DRI driver for i830
|
|
||||||
|
|
||||||
%package dri-i915
|
#Provides: %{pkgname}-devel
|
||||||
Group: User Interface/X Hardware Support
|
#Conflicts: XFree86-devel, xorg-x11-devel
|
||||||
Summary: DRI driver for i915
|
|
||||||
%description dri-i915
|
|
||||||
DRI driver for i915
|
|
||||||
|
|
||||||
%package dri-mach64
|
%description libGLU
|
||||||
Group: User Interface/X Hardware Support
|
Mesa libGLU runtime library
|
||||||
Summary: DRI driver for mach64
|
|
||||||
%description dri-mach64
|
|
||||||
DRI driver for mach64
|
|
||||||
|
|
||||||
%package dri-mga
|
%package libGLU-devel
|
||||||
Group: User Interface/X Hardware Support
|
Summary: Mesa libGLU development package
|
||||||
Summary: DRI driver for mga
|
Group: Development/Libraries
|
||||||
%description dri-mga
|
#Requires: %{name} = %{version}-%{release}
|
||||||
DRI driver for mga
|
|
||||||
|
|
||||||
%package dri-r128
|
#Provides: %{pkgname}-devel
|
||||||
Group: User Interface/X Hardware Support
|
#Conflicts: XFree86-devel, xorg-x11-devel
|
||||||
Summary: DRI driver for r128
|
|
||||||
%description dri-r128
|
|
||||||
DRI driver for r128
|
|
||||||
|
|
||||||
%package dri-r200
|
%description libGLU-devel
|
||||||
Group: User Interface/X Hardware Support
|
Mesa libGLU development package
|
||||||
Summary: DRI driver for r200
|
|
||||||
%description dri-r200
|
|
||||||
DRI driver for r200
|
|
||||||
|
|
||||||
%package dri-r300
|
%package libGLw
|
||||||
Group: User Interface/X Hardware Support
|
Summary: Mesa libGLw runtime library
|
||||||
Summary: DRI driver for r300
|
Group: System Environment/Libraries
|
||||||
%description dri-r300
|
#Requires: %{name} = %{version}-%{release}
|
||||||
DRI driver for r300
|
|
||||||
|
|
||||||
%package dri-radeon
|
#Provides: %{pkgname}-devel
|
||||||
Group: User Interface/X Hardware Support
|
#Conflicts: XFree86-devel, xorg-x11-devel
|
||||||
Summary: DRI driver for radeon
|
|
||||||
%description dri-radeon
|
|
||||||
DRI driver for radeon
|
|
||||||
|
|
||||||
%package dri-s3v
|
%description libGLw
|
||||||
Group: User Interface/X Hardware Support
|
Mesa libGLw runtime library
|
||||||
Summary: DRI driver for s3v
|
|
||||||
%description dri-s3v
|
|
||||||
DRI driver for s3v
|
|
||||||
|
|
||||||
%package dri-savage
|
%package libGLw-devel
|
||||||
Group: User Interface/X Hardware Support
|
Summary: Mesa libGLw development package
|
||||||
Summary: DRI driver for savage
|
Group: Development/Libraries
|
||||||
%description dri-savage
|
#Requires: %{name} = %{version}-%{release}
|
||||||
DRI driver for savage
|
|
||||||
|
|
||||||
%package dri-sis
|
#Provides: %{pkgname}-devel
|
||||||
Group: User Interface/X Hardware Support
|
#Conflicts: XFree86-devel, xorg-x11-devel
|
||||||
Summary: DRI driver for sis
|
|
||||||
%description dri-sis
|
|
||||||
DRI driver for sis
|
|
||||||
|
|
||||||
%package dri-tdfx
|
%description libGLw-devel
|
||||||
Group: User Interface/X Hardware Support
|
Mesa libGLw development package
|
||||||
Summary: DRI driver for tdfx
|
|
||||||
%description dri-tdfx
|
|
||||||
DRI driver for tdfx
|
|
||||||
|
|
||||||
%package dri-trident
|
|
||||||
Group: User Interface/X Hardware Support
|
|
||||||
Summary: DRI driver for trident
|
|
||||||
%description dri-trident
|
|
||||||
DRI driver for trident
|
|
||||||
|
|
||||||
%package dri-unichrome
|
|
||||||
Group: User Interface/X Hardware Support
|
|
||||||
Summary: DRI driver for unichrome
|
|
||||||
%description dri-unichrome
|
|
||||||
DRI driver for unichrome
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -T -b 0 -n Mesa-%{version}
|
%setup -q -n Mesa-%{version}
|
||||||
%patch0 -p1
|
|
||||||
cp %{SOURCE1} src/mesa/drivers/dri/r200/
|
cp %{SOURCE1} src/mesa/drivers/dri/r200/
|
||||||
cp %{SOURCE2} src/mesa/drivers/dri/radeon/
|
cp %{SOURCE2} src/mesa/drivers/dri/radeon/
|
||||||
|
|
||||||
|
#%patch0 -p0 -b .makedepend
|
||||||
|
%patch1 -p0 -b .fix-installmesa
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make linux-dri-x86
|
#%%define makeopts MKDEP="$(which makedepend)"
|
||||||
|
%define makeopts MKDEP="gcc -M -MF depend" MKDEP_OPTIONS=
|
||||||
|
|
||||||
|
#export MKDEP="$(which makedepend)"
|
||||||
|
%ifarch %{ix86}
|
||||||
|
make linux-dri-x86 %{makeopts}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%ifarch x86_64
|
||||||
|
make linux-dri-x86_64 %{makeopts}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# FIXME: ppc DRI needs to be Fedora Core only! Not for RHEL!
|
||||||
|
%ifarch ppc
|
||||||
|
# With DRI
|
||||||
|
make linux-dri-ppc %{makeopts}
|
||||||
|
%else
|
||||||
|
# Without DRI
|
||||||
|
make linux-ppc %{makeopts}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%ifarch ia64 alpha
|
||||||
|
make linux-dri %{makeopts}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%ifarch ppc64 s390 s390x sparc sparc64
|
||||||
|
make linux %{makeopts}
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
#echo -ne "\n\n\n" | make DESTDIR=$RPM_BUILD_ROOT install
|
rm -rf $RPM_BUILD_ROOT
|
||||||
mkdir -p %{buildroot}%{_includedir}/GL
|
#cd %{pkgname}-%{version}
|
||||||
cp include/GL/*.h %{buildroot}%{_includedir}/GL/
|
#%%makeinstall DESTDIR=$RPM_BUILD_ROOT
|
||||||
mkdir -p %{buildroot}%{_libdir}
|
make install DESTDIR=$RPM_BUILD_ROOT/usr
|
||||||
mkdir -p %{buildroot}%{_libdir}/dri
|
|
||||||
cp -a lib/lib* %{buildroot}%{_libdir}/
|
|
||||||
cp -a lib/*_dri.so %{buildroot}%{_libdir}/dri/
|
|
||||||
|
|
||||||
%files
|
%if %{with_dri}
|
||||||
%defattr(-, root, root)
|
# FIXME: FC5's current kernel has the following DRM modules. Some of them
|
||||||
%{_libdir}/lib*.so.*
|
# shouldn't be there at all (ppc64), some don't make much sense (via on
|
||||||
%dir %{_libdir}/dri
|
# ppc). We'll have to talk to kernel folk to get the ones disabled that
|
||||||
|
# don't make sense, or which we don't want to ship for some reason or
|
||||||
%files devel
|
# another.
|
||||||
%{_includedir}/GL/*
|
#
|
||||||
%{_libdir}/lib*.so
|
# for a in i586 i686 ia64 ppc ppc64 s390x x86_64 ; do (echo -n "${a}:" \
|
||||||
|
# rpm -qlp /mnt/redhat/beehive/comps/dist/fc5/kernel/2.6.13-1.1536_FC5/$a/kernel-2.6.13-1.1536_FC5.$a.rpm | \
|
||||||
%files dri-ffb
|
# grep /drm/ | sed -e 's;.*/;;g' |xargs echo ) ;done
|
||||||
%dir %{_libdir}/dri
|
#
|
||||||
%{_libdir}/dri/ffb_dri.so
|
# i586: drm.ko i810.ko i830.ko i915.ko mga.ko r128.ko radeon.ko savage.ko sis.ko tdfx.ko via.ko
|
||||||
|
# i686: drm.ko i810.ko i830.ko i915.ko mga.ko r128.ko radeon.ko savage.ko sis.ko tdfx.ko via.ko
|
||||||
%files dri-i810
|
# ia64: drm.ko mga.ko r128.ko radeon.ko savage.ko sis.ko tdfx.ko via.ko
|
||||||
|
# ppc: drm.ko mga.ko r128.ko radeon.ko savage.ko sis.ko tdfx.ko via.ko
|
||||||
|
# ppc64: drm.ko mga.ko r128.ko radeon.ko savage.ko sis.ko tdfx.ko via.ko
|
||||||
|
# s390x:
|
||||||
|
# x86_64: drm.ko i810.ko i830.ko i915.ko mga.ko r128.ko radeon.ko savage.ko sis.ko tdfx.ko via.ko
|
||||||
|
|
||||||
|
%define alldridrivers ffb i810 i830 i915 mach64 mga r128 r200 r300 radeon s3v savage sis tdfx trident unichrome
|
||||||
|
%ifarch %{ix86}
|
||||||
|
%define dridrivers i810 i830 i915 mga r128 r200 radeon savage sis unichrome
|
||||||
|
%endif
|
||||||
|
%ifarch x86_64
|
||||||
|
%define dridrivers i810 i830 i915 mga r128 r200 radeon savage sis unichrome
|
||||||
|
%endif
|
||||||
|
%ifarch ia64
|
||||||
|
%define dridrivers mga r128 r200 radeon savage sis
|
||||||
|
%endif
|
||||||
|
%if %{with_dri}
|
||||||
|
%define ppcdridrivers mga r128 r200 radeon
|
||||||
|
%else
|
||||||
|
%define ppcdridrivers
|
||||||
|
%endif
|
||||||
|
%ifarch ppc
|
||||||
|
%define dridrivers %{ppcdridrivers}
|
||||||
|
%endif
|
||||||
|
%ifarch ppc64 s390 s390x sparc sparc64
|
||||||
|
%define dridrivers
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# Install DRI drivers
|
||||||
|
%if %{with_dri}
|
||||||
|
{
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/dri
|
||||||
|
for driver in %{dridrivers} ; do
|
||||||
|
install -m 0444 cp -a lib/${driver}_dri.so $RPM_BUILD_ROOT%{_libdir}/dri/
|
||||||
|
done
|
||||||
|
}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# No glut stuff.
|
||||||
|
rm $RPM_BUILD_ROOT%{_includedir}/GL/uglglutshapes.h
|
||||||
|
rm $RPM_BUILD_ROOT%{_includedir}/GL/uglmesa.h
|
||||||
|
|
||||||
|
# We intentionally don't ship *.la files
|
||||||
|
#rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
#%%files
|
||||||
|
#%defattr(-,root,root,-)
|
||||||
|
#%doc
|
||||||
|
%files libGL
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%dir %{_libdir}
|
||||||
|
%{_libdir}/libGL.so.1
|
||||||
|
%{_libdir}/libGL.so.1.2
|
||||||
%dir %{_libdir}/dri
|
%dir %{_libdir}/dri
|
||||||
|
# x86 DRI modules
|
||||||
|
%if %{with_dri}
|
||||||
|
#%{_libdir}/dri/ffb_dri.so
|
||||||
%{_libdir}/dri/i810_dri.so
|
%{_libdir}/dri/i810_dri.so
|
||||||
|
|
||||||
%files dri-i830
|
|
||||||
%dir %{_libdir}/dri
|
|
||||||
%{_libdir}/dri/i830_dri.so
|
%{_libdir}/dri/i830_dri.so
|
||||||
|
|
||||||
%files dri-i915
|
|
||||||
%dir %{_libdir}/dri
|
|
||||||
%{_libdir}/dri/i915_dri.so
|
%{_libdir}/dri/i915_dri.so
|
||||||
|
#%{_libdir}/dri/mach64_dri.so
|
||||||
%files dri-mach64
|
|
||||||
%dir %{_libdir}/dri
|
|
||||||
%{_libdir}/dri/mach64_dri.so
|
|
||||||
|
|
||||||
%files dri-mga
|
|
||||||
%dir %{_libdir}/dri
|
|
||||||
%{_libdir}/dri/mga_dri.so
|
%{_libdir}/dri/mga_dri.so
|
||||||
|
|
||||||
%files dri-r128
|
|
||||||
%dir %{_libdir}/dri
|
|
||||||
%{_libdir}/dri/r128_dri.so
|
%{_libdir}/dri/r128_dri.so
|
||||||
|
|
||||||
%files dri-r200
|
|
||||||
%dir %{_libdir}/dri
|
|
||||||
%{_libdir}/dri/r200_dri.so
|
%{_libdir}/dri/r200_dri.so
|
||||||
|
#%{_libdir}/dri/r300_dri.so
|
||||||
%files dri-r300
|
|
||||||
%dir %{_libdir}/dri
|
|
||||||
%{_libdir}/dri/r300_dri.so
|
|
||||||
|
|
||||||
%files dri-radeon
|
|
||||||
%dir %{_libdir}/dri
|
|
||||||
%{_libdir}/dri/radeon_dri.so
|
%{_libdir}/dri/radeon_dri.so
|
||||||
|
#%{_libdir}/dri/s3v_dri.so
|
||||||
%files dri-s3v
|
|
||||||
%dir %{_libdir}/dri
|
|
||||||
%{_libdir}/dri/s3v_dri.so
|
|
||||||
|
|
||||||
%files dri-savage
|
|
||||||
%dir %{_libdir}/dri
|
|
||||||
%{_libdir}/dri/savage_dri.so
|
%{_libdir}/dri/savage_dri.so
|
||||||
|
|
||||||
%files dri-sis
|
|
||||||
%dir %{_libdir}/dri
|
|
||||||
%{_libdir}/dri/sis_dri.so
|
%{_libdir}/dri/sis_dri.so
|
||||||
|
#%{_libdir}/dri/tdfx_dri.so
|
||||||
%files dri-tdfx
|
#%{_libdir}/dri/trident_dri.so
|
||||||
%dir %{_libdir}/dri
|
|
||||||
%{_libdir}/dri/tdfx_dri.so
|
|
||||||
|
|
||||||
%files dri-trident
|
|
||||||
%dir %{_libdir}/dri
|
|
||||||
%{_libdir}/dri/trident_dri.so
|
|
||||||
|
|
||||||
%files dri-unichrome
|
|
||||||
%dir %{_libdir}/dri
|
|
||||||
%{_libdir}/dri/unichrome_dri.so
|
%{_libdir}/dri/unichrome_dri.so
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files libGL-devel
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_includedir}/GL/amesa.h
|
||||||
|
%{_includedir}/GL/directfbgl.h
|
||||||
|
%{_includedir}/GL/dmesa.h
|
||||||
|
%{_includedir}/GL/fxmesa.h
|
||||||
|
%{_includedir}/GL/ggimesa.h
|
||||||
|
%{_includedir}/GL/gl.h
|
||||||
|
%{_includedir}/GL/gl_mangle.h
|
||||||
|
%{_includedir}/GL/glext.h
|
||||||
|
%{_includedir}/GL/glx.h
|
||||||
|
%{_includedir}/GL/glx_mangle.h
|
||||||
|
%{_includedir}/GL/glxext.h
|
||||||
|
%{_includedir}/GL/mesa_wgl.h
|
||||||
|
%{_includedir}/GL/mglmesa.h
|
||||||
|
%{_includedir}/GL/osmesa.h
|
||||||
|
%{_includedir}/GL/svgamesa.h
|
||||||
|
#%{_includedir}/GL/uglglutshapes.h
|
||||||
|
#%{_includedir}/GL/uglmesa.h
|
||||||
|
%{_includedir}/GL/vms_x_fix.h
|
||||||
|
%{_includedir}/GL/wmesa.h
|
||||||
|
%{_includedir}/GL/xmesa.h
|
||||||
|
%{_includedir}/GL/xmesa_x.h
|
||||||
|
%{_includedir}/GL/xmesa_xf86.h
|
||||||
|
%{_libdir}/libGL.so
|
||||||
|
|
||||||
|
%files libGLU
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_libdir}/libGLU.so.1
|
||||||
|
%{_libdir}/libGLU.so.1.3.060302
|
||||||
|
|
||||||
|
%files libGLU-devel
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_libdir}/libGLU.so
|
||||||
|
%{_includedir}/GL/glu.h
|
||||||
|
%{_includedir}/GL/glu_mangle.h
|
||||||
|
|
||||||
|
%files libGLw
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_libdir}/libGLw.so.1
|
||||||
|
%{_libdir}/libGLw.so.1.0.0
|
||||||
|
|
||||||
|
%files libGLw-devel
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_libdir}/libGLw.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sun Sep 04 2005 Bill Crawford <billcrawford1970@hotmail.com>
|
* Sun Sep 4 2005 Mike A. Harris <mharris@redhat.com> 6.3.2-1
|
||||||
- change config to use gcc -M -MF depend
|
- Initial build.
|
||||||
|
|
||||||
* Sat Sep 03 2005 Bill Crawford <billcrawford1970@hotmail.com>
|
|
||||||
- split out the -devel package
|
|
||||||
- split out the dri drivers
|
|
||||||
- actually remove the dri drivers from the main package
|
|
||||||
|
|
||||||
* Tue Aug 23 2005 Bill Crawford <billcrawford1970@hotmail.com>
|
|
||||||
- added missing files from CVS that were missing from the release
|
|
||||||
- added patches to get the thing to build and install
|
|
||||||
- added dri driver modules to file list
|
|
||||||
|
|
||||||
* Mon Aug 22 2005 Bill Crawford <billcrawford1970@hotmail.com>
|
|
||||||
- added BuildRequires
|
|
||||||
|
Loading…
Reference in New Issue
Block a user