]> git.pld-linux.org Git - packages/Mesa.git/commitdiff
- updated to 3.4.2, updated License field (Mesa core is now MIT, not LGPL)
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 27 May 2001 23:45:57 +0000 (23:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added SGI's libGLw (static only - there're some binary-incompatible versions)
- added libMesaGLwM (Motif version of libMesaGLw)
- moved MesaGLw includes to subdirectory (structs binary-incompatible with SGI)
- GLw* manuals are back (conflict with XFree86-devel resolved by moving
  their XFree versions from XFree86-devel to XFree86-OpenGL-devel)

Changed files:
    Mesa-libGLw.patch -> 1.1
    Mesa.spec -> 1.42

Mesa-libGLw.patch [new file with mode: 0644]
Mesa.spec

diff --git a/Mesa-libGLw.patch b/Mesa-libGLw.patch
new file mode 100644 (file)
index 0000000..d83c56d
--- /dev/null
@@ -0,0 +1,42 @@
+--- Mesa-3.4.2/widgets-sgi/Makefile.X11.orig   Thu Jun 15 20:46:09 2000
++++ Mesa-3.4.2/widgets-sgi/Makefile.X11        Sun May 27 14:37:57 2001
+@@ -16,9 +16,9 @@
+ INCDIRS = -I../include -I/usr/include/Motif1.2 -I/usr/X11R6/include
+ LIBDIR = ../lib
+ # Compile GLwMDrawA.c only if you have Motif headers!
+-#SOURCES = GLwDrawA.c GLwMDrawA.c
+-SOURCES = GLwDrawA.c
++SOURCES = GLwDrawA.c GLwMDrawA.c
++#SOURCES = GLwDrawA.c
+ OBJECTS = $(SOURCES:.c=.o)
+@@ -40,14 +41,12 @@
+ clean:
+       -rm *.o *~
+-targets: $(LIBDIR)/$(GLW_LIB) message
++targets: $(LIBDIR)/$(GLW_LIB)
+ # Make the library
+ $(LIBDIR)/$(GLW_LIB): $(OBJECTS)
+       $(MAKELIB) $(GLW_LIB) $(MAJOR) $(MINOR) $(TINY) $(OBJECTS)
+-      mv $(GLW_LIB)* $(LIBDIR)
+-      -mv *.a $(LIBDIR)
+ message:
+--- Mesa-3.4.2/Make-config.orig        Mon May 14 21:11:32 2001
++++ Mesa-3.4.2/Make-config     Sun May 27 14:31:38 2001
+@@ -453,7 +453,7 @@
+       "GLUT_LIB = libglut.so" \
+-      "GLW_LIB = libGLw.so" \
++      "GLW_LIB = libGLw.a" \
+       "CC = gcc" \
+-      "CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include" \
++      "CFLAGS = $(OPTFLAGS) -ansi -pedantic -fPIC -ffast-math -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include" \
+       "MAKELIB = ../bin/mklib.linux" \
+       "GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread" \
+       "GLU_LIB_DEPS = -L../lib -lGL -lm" \
index a6e534852d4520142c121fa6cd17410e11b95d4f..46b9146107b274a7e89e65ccd586880742aef7ae 100644 (file)
--- a/Mesa.spec
+++ b/Mesa.spec
@@ -7,9 +7,9 @@
 Summary:       Free OpenGL implementation
 Summary(pl):   Bezp³atna implementacja standardu OpenGL
 Name:          Mesa
-Version:       3.4.1
+Version:       3.4.2
 Release:       1
-License:       GPL
+License:       MIT (core), LGPL (libGLU), SGI (libGLw) and others - see COPYRIGHT file
 Group:         X11/Libraries
 Group(de):     X11/Libraries
 Group(es):     X11/Bibliotecas
@@ -21,10 +21,12 @@ Patch0:             %{name}-paths.patch
 Patch1:                %{name}-badlibtool.patch
 Patch2:                %{name}-glibc-2.2.patch
 Patch3:                %{name}-am.patch
-%{?_with_dri:Patch4:           %{name}-XF86DRI-4.0.2.patch}
-#Patch5:       %{name}-3.3-glXcontext.patch
+Patch4:                %{name}-libGLw.patch
+%{?_with_dri:Patch5:           %{name}-XF86DRI-4.0.2.patch}
+#Patch6:       %{name}-3.3-glXcontext.patch
 URL:           http://www.mesa3d.org/
 BuildRequires: XFree86-devel
+BuildRequires: motif-devel
 %{!?_without_glide:BuildRequires:      Glide_V3-DRI-devel}
 BuildRequires: perl
 BuildRequires: autoconf
@@ -90,7 +92,7 @@ Biblioteki statyczne Mesy.
 
 %package demos
 Summary:       Mesa Demos
-Summary(pl):   Demonstracje mo¿liwo¶ci biblioteki MESA
+Summary(pl):   Demonstracje mo¿liwo¶ci bibliotek Mesa
 Group:         Development/Libraries
 Group(de):     Entwicklung/Libraries
 Group(fr):     Development/Librairies
@@ -101,7 +103,7 @@ Requires:   %{name} = %{version}
 Demonstration programs for the Mesa libraries.
 
 %description -l pl demos
-Programy demonstracyjne dla biblioteki Mesa.
+Programy demonstracyjne dla bibliotek Mesa.
 
 %prep
 %setup -q -n Mesa-%{version} -b 1
@@ -117,8 +119,9 @@ Programy demonstracyjne dla biblioteki Mesa.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
-%{?_with_dri:%patch4 -p1}
-#%patch5 -p1
+%patch4 -p1
+%{?_with_dri:%patch5 -p1}
+#%patch6 -p1
 # fix demos
 perl -pi -e "s,\.\./images/,%{_examplesdir}/Mesa/images/,g" demos/*
 
@@ -164,20 +167,35 @@ autoconf
 %{__make}
        
 (cd widgets-mesa
-%configure
+%configure \
+       --with-motif
 %{__make}
 )
 
+(cd widgets-sgi
+touch depend
+%{__make} dep
+%{__make} linux OPTFLAGS="%{rpmcflags}"
+)
+
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT%{_mandir}/man3
 
-(cd widgets-mesa; \
+(cd widgets-mesa
 %{__make} install \
        prefix=$RPM_BUILD_ROOT%{_prefix} \
-       mandir=$RPM_BUILD_ROOT%{_mandir}/man3)
+       mandir=$RPM_BUILD_ROOT%{_mandir}/man3
+# Mesa widgets are not binary compatible with SGI ones
+cd $RPM_BUILD_ROOT%{_includedir}/GL
+mkdir Mesa-widgets
+mv -f GLw*.h Mesa*.h Mesa-widgets
+)
+
+install widgets-sgi/libGLw* $RPM_BUILD_ROOT%{_libdir}
+install widgets-sgi/GLw*.h $RPM_BUILD_ROOT%{_includedir}/GL
 
 install -d $RPM_BUILD_ROOT/usr/src/examples/Mesa
 for l in book demos samples xdemos images ; do
@@ -186,10 +204,6 @@ done
 
 gzip -9nf docs/*
 
-# resolve conflict with XFree86-devel
-rm -f $RPM_BUILD_ROOT%{_mandir}/man3/GLwCreateMDrawingArea.*
-rm -f $RPM_BUILD_ROOT%{_mandir}/man3/GLwDrawingArea{,MakeCurrent,SwapBuffers}.*
-
 %post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
@@ -206,18 +220,14 @@ rm -fr $RPM_BUILD_ROOT
 %doc docs/{IAFA-PACKAGE,README,RELNOTES-*,VERSIONS,CONFORM,COPYRIGHT,DEVINFO,*.spec}.gz
 %doc docs/README.{3DFX,GGI,MITS,QUAKE,X11,THREADS}.gz
 %attr(755,root,root) %{_libdir}/libGL*.so
-
+%{_libdir}/libMesaGLw*.a
+%{_libdir}/libGLw.a
 %dir %{_includedir}/GL
+%{_includedir}/GL/Mesa-widgets
 %{_includedir}/GL/GLwDrawA.h
 %{_includedir}/GL/GLwDrawAP.h
 %{_includedir}/GL/GLwMDrawA.h
 %{_includedir}/GL/GLwMDrawAP.h
-%{_includedir}/GL/MesaDrawingArea.h
-%{_includedir}/GL/MesaDrawingAreaP.h
-%{_includedir}/GL/MesaMDrawingArea.h
-%{_includedir}/GL/MesaMDrawingAreaP.h
-%{_includedir}/GL/MesaWorkstation.h
-%{_includedir}/GL/MesaWorkstationP.h
 %{_includedir}/GL/gl.h
 %{_includedir}/GL/glext.h
 %{_includedir}/GL/gl_mangle.h
@@ -233,7 +243,8 @@ rm -fr $RPM_BUILD_ROOT
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/libGL*.a
+%{_libdir}/libGL.a
+%{_libdir}/libGLU.a
 
 %files demos
 %defattr(644,root,root,755)
This page took 0.038506 seconds and 4 git commands to generate.