glew/glew.spec
Ismail Dönmez 33b8c3f0e0 Accepting request 98379 from home:jobermayr
Until a rebuild of supertux2 it bitches:
supertux2: symbol lookup error: supertux2: undefined symbol: __glewTexParameteri

Bug report upstreamed:
http://sourceforge.net/tracker/?func=detail&aid=3466541&group_id=67586&atid=523274

OBS-URL: https://build.opensuse.org/request/show/98379
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/glew?expand=0&rev=21
2011-12-28 22:22:31 +00:00

104 lines
3.2 KiB
RPMSpec

#
# spec file for package glew
#
# 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/
#
Name: glew
Version: 1.7.0.git20111123.2145
Release: 1
License: BSD-3-Clause and GPL-2.0 and MIT
Summary: OpenGL Extension Wrangler Library
Url: http://glew.sourceforge.net/
Group: System/Libraries
Source0: %name.tar.bz2
Source1: baselibs.conf
Patch: 0001-Add-glew.c-glewinfo.c-and-includes.patch.bz2
Patch1: dont-strip.diff
BuildRequires: Mesa-devel
BuildRequires: pkg-config
Requires: libGLEW1_7 >= %version
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The OpenGL Extension Wrangler Library (GLEW) is a cross-platform
open-source C/C++ extension loading library. GLEW provides efficient
run-time mechanisms for determining which OpenGL extensions are
supported on the target platform. OpenGL core and extension
functionality is exposed in a single header file.
%package -n libGLEW1_7
Summary: OpenGL Extension Wrangler Library
Group: System/Libraries
%description -n libGLEW1_7
The OpenGL Extension Wrangler Library (GLEW) is a cross-platform
open-source C/C++ extension loading library. GLEW provides efficient
run-time mechanisms for determining which OpenGL extensions are
supported on the target platform. OpenGL core and extension
functionality is exposed in a single header file.
%package devel
Summary: Development files for glew
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: Mesa-devel
%description devel
The OpenGL Extension Wrangler Library (GLEW) is a cross-platform
open-source C/C++ extension loading library. GLEW provides efficient
run-time mechanisms for determining which OpenGL extensions are
supported on the target platform. OpenGL core and extension
functionality is exposed in a single header file.
%prep
%setup -q -n %name
%patch1 -p1
%patch -p1
%build
make %{?_smp_mflags} POPT="%{optflags}" LIBDIR=%{_libdir} LDFLAGS.EXTRA= STRIP=/bin/true
%install
export PATH=$PWD:$PATH
make GLEW_DEST=%{buildroot}%{_prefix} LIBDIR=%{buildroot}%{_libdir} install.all
chmod +x %{buildroot}%{_libdir}/*.so.*
%{__rm} -f %{buildroot}%{_libdir}/*.*a
%clean
rm -rf %{buildroot}
%post -n libGLEW1_7 -p /sbin/ldconfig
%postun -n libGLEW1_7 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc doc/*
%{_bindir}/*info
%files -n libGLEW1_7
%defattr(-,root,root)
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/GL/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/glew*.pc
%changelog