File MesaGLw.spec of Package MesaGLw.openSUSE_12.1_Update

#
# spec file for package MesaGLw
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           MesaGLw
BuildRequires:  Mesa-devel openmotif-devel
Url:            http://www.mesa3d.org
License:        MIT
Group:          System/Libraries
Provides:       Mesa:%{_libdir}/libGLw.so.1 
AutoReqProv:    on
Version:        7.10.2
Release:        4.1.2
Summary:        Mesa Widget library
Source:         MesaLib-%{version}.tar.bz2
Patch1:		GLwDrawA.h.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Widget library for Mesa.



Authors:
--------
    Brian Paul

%package devel
License:        MIT
Requires:       MesaGLw = %version Mesa-devel xorg-x11-devel
Summary:        Libraries, includes and more to develop MesaGLw applications
Group:          System/Libraries
Provides:       Mesa-devel:%{_libdir}/libGLw.so

%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.



Authors:
--------
    Brian Paul

%prep
%setup -q -n Mesa-%{version}
%patch1 -p1

%build
#./configure --disable-egl --disable-gles1 --disable-gles2 \
#    --disable-gles-overlay --disable-openvg  --disable-glu \
#    --disable-glut --disable-gallium \
#    --enable-opengl --with-driver=xlib \
#    --enable-glw --enable-motif 
%configure --disable-egl --disable-gles1 --disable-gles2 \
    --disable-gles-overlay --disable-openvg  --disable-glu \
    --disable-glut --disable-gallium \
    --enable-opengl --with-driver=xlib \
    --enable-glw --enable-motif 
cd src/glw/
%{__make} %{?jobs:-j%jobs} OPT_FLAGS="$RPM_OPT_FLAGS"

%install
mkdir -p $RPM_BUILD_ROOT%{_libdir} \
         $RPM_BUILD_ROOT/usr/include/GL
%ifarch i586
cp -a lib/* $RPM_BUILD_ROOT%{_libdir}
#%ifarch x86_64
%else
cp -a lib64/* $RPM_BUILD_ROOT%{_libdir}
%endif
install -m 644 src/glw/*.h $RPM_BUILD_ROOT/usr/include/GL
cp src/glw/README .

%clean
#rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc README
%{_libdir}/libGLw.so.*

%files devel
%defattr(-,root,root)
/usr/include/GL/GLw*.h
%{_libdir}/libGLw.so

%changelog
* Sun Oct  2 2011 mhrusecky@suse.cz
- configure -> ./configure (fixes build)
* Mon Jun  6 2011 eich@suse.de
- remove GLw-motif.diff. Instead resolve in spec file.
* Sat Sep  4 2010 sndirsch@novell.com
- update to Mesa 7.8.2
* Sat Apr 10 2010 sndirsch@suse.de
- update to Mesa 7.8.1 sources
- legal check no longer necessary
* Tue Mar  3 2009 sndirsch@suse.de
- update to Mesa 7.3 sources
* Sat Sep 20 2008 sndirsch@suse.de
- update to Mesa 7.2 sources
* Wed Aug 27 2008 sndirsch@suse.de
- update to Mesa release 7.1
* Sat Apr  5 2008 sndirsch@suse.de
- update to Mesa bugfix release 7.0.3 (final)
* Wed Apr  2 2008 sndirsch@suse.de
- update to Mesa bugfix release 7.0.3 RC3
* Fri Feb 22 2008 sndirsch@suse.de
- update to Mesa bugfix release 7.0.3 RC2
  * Fixed GLX indirect vertex array rendering bug (14197)
  * Fixed crash when deleting framebuffer objects (bugs 13507,
    14293)
  * User-defined clip planes enabled for R300 (bug 9871)
  * Fixed glBindTexture() crash upon bad target (bug 14514)
  * Fixed potential crash in glDrawPixels(GL_DEPTH_COMPONENT) (bug
    13915)
  * Bad strings given to glProgramStringARB() didn't generate
    GL_INVALID_OPERATION
  * Fixed minor point rasterization regression (bug 11016)
* Wed Jan 23 2008 sndirsch@suse.de
- update to Mesa bugfix release 7.0.3 RC1
  * Added missing glw.pc.in file to release tarball
  * Fix GLUT/Fortran issues
  * GLSL gl_FrontLightModelProduct.sceneColor variable wasn't
    defined
  * Fix crash upon GLSL variable array indexes (not yet supported)
  * Two-sided stencil test didn't work in software rendering
  * Fix two-sided lighting bugs/crashes (bug 13368)
  * GLSL gl_FrontFacing didn't work properly
  * glGetActiveUniform returned incorrect sizes (bug 13751)
  * Fix several bugs relating to uniforms and attributes in GLSL
    API (Bruce Merry, bug 13753)
  * glTexImage3D(GL_PROXY_TEXTURE_3D) mis-set teximage depth field
* Wed Jan  2 2008 crrodriguez@suse.de
- fix library-without-ldconfig-* error
* Sat Nov 10 2007 sndirsch@suse.de
- updated to Mesa 7.0.2 (final)
* Wed Oct 31 2007 sndirsch@suse.de
- updated to Mesa 7.0.2 RC1
* Sat Aug  4 2007 sndirsch@suse.de
- updated to bugfix release 7.0
* Sat Jun 23 2007 sndirsch@suse.de
- updated to final release 7.0
* Thu Jun 21 2007 sndirsch@suse.de
- updated Mesa to release 7.0 RC1
  * Mesa 7.0 is a stable, follow-on release to Mesa 6.5.3. The only
    difference is bug fixes. The major version number bump is due
    to OpenGL 2.1 API support.
* Mon Apr 30 2007 sndirsch@suse.de
- updated to Mesa 6.5.3
* Fri Apr 27 2007 sndirsch@suse.de
- back to Mesa 6.5.2 (Bug #269155/269042)
* Wed Apr 25 2007 sndirsch@suse.de
- 4th RC ready
  * This fixes some breakage in RC3.
* Tue Apr 24 2007 sndirsch@suse.de
- 3rd release candidate
  * updated Windows/VC8 project files.
* Sun Apr 22 2007 sndirsch@suse.de
- updated to Mesa 6.5.3rc2
  * a number of bug fixes since the first RC
* Sat Apr 21 2007 sndirsch@suse.de
- updated to Mesa 6.5.3rc1
* Sat Dec  2 2006 sndirsch@suse.de
- updated to Mesa 6.5.2
* Mon Sep 18 2006 sndirsch@suse.de
- updated to Mesa 6.5.1
* Sat Sep  9 2006 sndirsch@suse.de
- removed two source files with imcompatible license from Mesa
  tarball (Bug #204110)
- added a check to specfile to make sure that these will not be
  reintroduced with the next Mesa update again (Bug #204110)
* Sat Aug 19 2006 sndirsch@suse.de
- fixed build for X.Org < 7
- .so/.so.1 files should be symlinks!
* Thu Aug 17 2006 sndirsch@suse.de
- created package
openSUSE Build Service is sponsored by