mirror of
https://src.fedoraproject.org/rpms/mesa.git
synced 2024-11-28 19:06:52 +00:00
single build pass
This commit is contained in:
parent
bfe01be60a
commit
b65713229c
1 changed files with 7 additions and 17 deletions
24
mesa.spec
24
mesa.spec
|
@ -15,7 +15,7 @@
|
||||||
Summary: Mesa graphics libraries
|
Summary: Mesa graphics libraries
|
||||||
Name: mesa
|
Name: mesa
|
||||||
Version: 7.11
|
Version: 7.11
|
||||||
Release: 0.9.%{gitdate}.0%{?dist}
|
Release: 0.10.%{gitdate}.0%{?dist}
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
URL: http://www.mesa3d.org
|
URL: http://www.mesa3d.org
|
||||||
|
@ -216,24 +216,13 @@ export CXXFLAGS="$RPM_OPT_FLAGS"
|
||||||
%else
|
%else
|
||||||
%define common_flags --enable-selinux --enable-pic --enable-udev
|
%define common_flags --enable-selinux --enable-pic --enable-udev
|
||||||
%endif
|
%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} \
|
%configure %{common_flags} \
|
||||||
--disable-glw \
|
--disable-glw \
|
||||||
--disable-glut \
|
--disable-glut \
|
||||||
--disable-gl-osmesa \
|
--enable-gl-osmesa \
|
||||||
--with-driver=dri \
|
--with-driver=dri \
|
||||||
|
--with-osmesa-bits=8 \
|
||||||
--with-dri-driverdir=%{_libdir}/dri \
|
--with-dri-driverdir=%{_libdir}/dri \
|
||||||
--with-dri-drivers=i915,i965 \
|
--with-dri-drivers=i915,i965 \
|
||||||
--with-state-trackers=dri,glx \
|
--with-state-trackers=dri,glx \
|
||||||
|
@ -291,9 +280,6 @@ pushd $RPM_BUILD_ROOT%{_libdir}
|
||||||
rm -f xorg/modules/drivers/modesetting_drv.so
|
rm -f xorg/modules/drivers/modesetting_drv.so
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# and osmesa
|
|
||||||
mv osmesa*/libOS* $RPM_BUILD_ROOT%{_libdir}
|
|
||||||
|
|
||||||
# man pages
|
# man pages
|
||||||
pushd ../%{manpages}
|
pushd ../%{manpages}
|
||||||
make %{?_smp_mflags} install DESTDIR=$RPM_BUILD_ROOT
|
make %{?_smp_mflags} install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
@ -426,8 +412,12 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_includedir}/GL/osmesa.h
|
%{_includedir}/GL/osmesa.h
|
||||||
%{_libdir}/libOSMesa.so
|
%{_libdir}/libOSMesa.so
|
||||||
|
%{_libdir}/pkgconfig/osmesa.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 09 2011 Adam Jackson <ajax@redhat.com> 7.11-0.10.20110412.0
|
||||||
|
- Drop the separate build pass for osmesa, no longer needed.
|
||||||
|
|
||||||
* Mon May 09 2011 Adam Jackson <ajax@redhat.com> 7.11-0.9.20110412.0
|
* Mon May 09 2011 Adam Jackson <ajax@redhat.com> 7.11-0.9.20110412.0
|
||||||
- Drop dri1 subpackage (and its drivers), use "swrastg" consistently.
|
- Drop dri1 subpackage (and its drivers), use "swrastg" consistently.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue