Name: libglew Version: 1.10.0 Release: 1mamba Summary: The OpenGL Extension Wrangler Library Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Automatic Build System URL: http://glew.sourceforge.net/ Source: http://downloads.sourceforge.net/glew/%{version}/glew-%{version}.tgz Patch0: %{name}-1.5.1-makefile.patch License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libGL-devel BuildRequires: libGLU-devel BuildRequires: libX11-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %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. GLEW has been tested on a variety of operating systems, including Windows, Linux, Mac OS X, FreeBSD, Irix, and Solaris. %package devel Group: Development/Libraries Summary: Static libraries and headers for %{name} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %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. GLEW has been tested on a variety of operating systems, including Windows, Linux, Mac OS X, FreeBSD, Irix, and Solaris. This package contains static libraries and header files need for development. %prep %setup -q -n glew-%{version} #%patch0 -p1 sed -i -e 's/\r//g' config/config.guess %build %make CFLAGS.EXTRA="$RPM_OPT_FLAGS" CC=%{_host}-gcc %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -d -m0755 %{buildroot}%{_libdir}/pkgconfig/ %makeinstall GLEW_DEST="%{buildroot}%{_prefix}" \ bindir=%{_bindir} libdir=%{_libdir} includedir=%{_includedir} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/libGLEW.so.* %doc LICENSE.txt %files devel %defattr(-,root,root) %{_includedir}/GL/*.h %{_libdir}/libGLEW.a %{_libdir}/libGLEW.so %{_libdir}/pkgconfig/glew.pc %doc README.txt %changelog * Wed Jul 24 2013 Automatic Build System 1.10.0-1mamba - automatic update by autodist * Sun Dec 02 2012 Automatic Build System 1.9.0-1mamba - automatic version update by autodist * Thu Jun 03 2010 Automatic Build System 1.5.4-1mamba - update to 1.5.4 * Wed Jun 03 2009 Davide Madrisan 1.5.1-2mamba - fixed specfile * Sat Jan 17 2009 Silvan Calarco 1.5.1-1mamba - automatic update by autodist * Fri Aug 15 2008 gil 1.5.0-1mamba - package created by autospec