From b65713229cc6988c95ab7912e889126174659e65 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 9 May 2011 20:17:06 -0400 Subject: [PATCH] single build pass --- mesa.spec | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/mesa.spec b/mesa.spec index c878d1d..c441511 100644 --- a/mesa.spec +++ b/mesa.spec @@ -15,7 +15,7 @@ Summary: Mesa graphics libraries Name: mesa Version: 7.11 -Release: 0.9.%{gitdate}.0%{?dist} +Release: 0.10.%{gitdate}.0%{?dist} License: MIT Group: System Environment/Libraries URL: http://www.mesa3d.org @@ -216,24 +216,13 @@ export CXXFLAGS="$RPM_OPT_FLAGS" %else %define common_flags --enable-selinux --enable-pic --enable-udev %endif -%define osmesa_flags --with-driver=osmesa %{common_flags} --disable-gallium --with-dri-drivers="" --disable-glu --disable-egl -# first, build osmesa. - -%configure %{osmesa_flags} --with-osmesa-bits=8 -make %{_smp_mflags} -mv %{_lib} osmesa8 -make clean - -# just to be sure... -[ `find . -name \*.o | wc -l` -eq 0 ] || exit 1 - -# now build the rest of mesa %configure %{common_flags} \ --disable-glw \ --disable-glut \ - --disable-gl-osmesa \ + --enable-gl-osmesa \ --with-driver=dri \ + --with-osmesa-bits=8 \ --with-dri-driverdir=%{_libdir}/dri \ --with-dri-drivers=i915,i965 \ --with-state-trackers=dri,glx \ @@ -291,9 +280,6 @@ pushd $RPM_BUILD_ROOT%{_libdir} rm -f xorg/modules/drivers/modesetting_drv.so popd -# and osmesa -mv osmesa*/libOS* $RPM_BUILD_ROOT%{_libdir} - # man pages pushd ../%{manpages} make %{?_smp_mflags} install DESTDIR=$RPM_BUILD_ROOT @@ -426,8 +412,12 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root,-) %{_includedir}/GL/osmesa.h %{_libdir}/libOSMesa.so +%{_libdir}/pkgconfig/osmesa.pc %changelog +* Mon May 09 2011 Adam Jackson 7.11-0.10.20110412.0 +- Drop the separate build pass for osmesa, no longer needed. + * Mon May 09 2011 Adam Jackson 7.11-0.9.20110412.0 - Drop dri1 subpackage (and its drivers), use "swrastg" consistently.