File MesaGLw.spec of Package MesaGLw
#
# spec file for package MesaGLw (Version 7.8.2)
#
# Copyright (c) 2010 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.8.2
Release: 1
Summary: Mesa Widget library
Source: MesaLib-%{version}.tar.bz2
Patch: GLw-motif.diff
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}
%patch
%build
ln -s linux-dri configs/current
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
cp -a lib/* $RPM_BUILD_ROOT%{_libdir}
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/*.h
%{_libdir}/libGLw.so
%changelog