# # 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.5.8 Release: 14 License: BSD3c and GPLv2 and MIT Summary: OpenGL Extension Wrangler Library Url: http://glew.sourceforge.net/ Group: System/Libraries Source0: %{name}-%{version}.tar.bz2 Source1: baselibs.conf BuildRequires: Mesa-devel BuildRequires: pkg-config Requires: libGLEW1_5 >= %{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_5 Summary: OpenGL Extension Wrangler Library Group: System/Libraries %description -n libGLEW1_5 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: OpenGL Extension Wrangler Library 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 chmod 0644 %{S:0} %setup -q %build make %{?_smp_mflags} POPT="%{optflags}" LIBDIR=%{_libdir} LDFLAGS.EXTRA= STRIP=/bin/true %install ln -s /bin/true strip export PATH=$PWD:$PATH make GLEW_DEST=%{buildroot}%{_prefix} LIBDIR=%{buildroot}%{_libdir} LDFLAGS.EXTRA= STRIP=/bin/true install chmod +x %{buildroot}%{_libdir}/*.so.* %{__rm} -f %{buildroot}%{_libdir}/*.*a %clean rm -rf %{buildroot} %post -n libGLEW1_5 -p /sbin/ldconfig %postun -n libGLEW1_5 -p /sbin/ldconfig %files %defattr(-,root,root) %doc doc/* %{_bindir}/*info %files -n libGLEW1_5 %defattr(-,root,root) %{_libdir}/*.so.* %files devel %defattr(-,root,root) %{_includedir}/GL/*.h %{_libdir}/*.so %{_libdir}/pkgconfig/glew.pc %changelog