SPECS: Mesa.spec - moved contents of MULTIGL branch to multigl bco...

baggins baggins at pld-linux.org
Sat Sep 29 00:16:00 CEST 2007


Author: baggins                      Date: Fri Sep 28 22:16:00 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- moved contents of MULTIGL branch to multigl bcond on HEAD

---- Files affected:
SPECS:
   Mesa.spec (1.158 -> 1.159) 

---- Diffs:

================================================================
Index: SPECS/Mesa.spec
diff -u SPECS/Mesa.spec:1.158 SPECS/Mesa.spec:1.159
--- SPECS/Mesa.spec:1.158	Mon Sep  3 14:12:26 2007
+++ SPECS/Mesa.spec	Sat Sep 29 00:15:55 2007
@@ -7,12 +7,13 @@
 #
 # Conditional build:
 %bcond_without	motif	# build static libGLw without Motif interface
+%bcond_with	multigl	# package libGL in a way allowing concurrent install with nvidia/fglrx drivers
 #
 Summary:	Free OpenGL implementation
 Summary(pl.UTF-8):	Wolnodostępna implementacja standardu OpenGL
 Name:		Mesa
 Version:	7.0.1
-Release:	2
+Release:	2%{?with_multigl:.mgl}
 License:	MIT (core), SGI (GLU,libGLw) and others - see COPYRIGHT file
 Group:		X11/Libraries
 Source0:	http://dl.sourceforge.net/mesa3d/%{name}Lib-%{version}.tar.bz2
@@ -36,8 +37,6 @@
 BuildRequires:	xorg-util-makedepend
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		_sysconfdir	/etc/X11
-
 %description
 Mesa is a 3-D graphics library with an API which is very similar to
 that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command
@@ -618,6 +617,15 @@
 rm -rf progs && mv -f progs.org progs
 rm -rf $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/*/{.deps,CVS,Makefile.{BeOS*,win,cygnus,DJ,dja}}
 
+%if %{with multigl}
+install -d $RPM_BUILD_ROOT{%{_libdir}/Mesa,%{_sysconfdir}/ld.so.conf.d}
+
+mv -f $RPM_BUILD_ROOT%{_libdir}/libGL.so.* $RPM_BUILD_ROOT%{_libdir}/Mesa
+ln -sf Mesa/libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so
+
+echo %{_libdir}/Mesa >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/Mesa.conf
+%endif
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -633,11 +641,18 @@
 %files libGL
 %defattr(644,root,root,755)
 %doc docs/{*.html,README.{3DFX,GGI,MITS,QUAKE,THREADS},RELNOTES*}
+%if %{with multigl}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf.d/Mesa.conf
+%dir %{_libdir}/Mesa
+%attr(755,root,root) %{_libdir}/Mesa/libGL.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/Mesa/libGL.so.1
+%else
 %attr(755,root,root) %{_libdir}/libGL.so.*.*
 %attr(755,root,root) %ghost %{_libdir}/libGL.so.1
 # symlink for binary apps which fail to conform Linux OpenGL ABI
 # (and dlopen libGL.so instead of libGL.so.1)
 %attr(755,root,root) %{_libdir}/libGL.so
+%endif
 
 %files libGL-devel
 %defattr(644,root,root,755)
@@ -654,6 +669,9 @@
 %{_includedir}/GL/xmesa.h
 %{_includedir}/GL/xmesa_x.h
 %{_includedir}/GL/xmesa_xf86.h
+%if %{with multigl}
+%attr(755,root,root) %{_libdir}/libGL.so
+%endif
 
 %files libGL-static
 %defattr(644,root,root,755)
@@ -795,6 +813,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.159  2007/09/28 22:15:55  baggins
+- moved contents of MULTIGL branch to multigl bcond on HEAD
+
 Revision 1.158  2007/09/03 12:12:26  baggins
 - rel 2
 - i965 driver shouldn't obsolete i915 driver
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/Mesa.spec?r1=1.158&r2=1.159&f=u



More information about the pld-cvs-commit mailing list