%define major 1.9 %define libname %mklibname %{name} %{major} %define develname %mklibname %{name} -d Summary: The OpenGL Extension Wrangler Library Name: glew Version: 1.9.0 Release: %mkrel 2 Group: Development/C License: BSD and MIT URL: http://glew.sourceforge.net Source0: http://downloads.sourceforge.net/glew/%{name}-%{version}.tgz BuildRequires: libx11-devel BuildRequires: mesaglu-devel BuildRequires: libxi-devel libxmu-devel BuildRequires: file %description The goal of the OpenGL Extension Wrangler Library (GLEW) is to assist C/C++ OpenGL developers with two tedious tasks: initializing and using extensions and writing portable applications. GLEW provides an efficient run-time mechanism to determine whether a certain extension is supported by the driver or not. OpenGL core and extension functionality is exposed via a single header file. GLEW currently supports a variety of platforms and operating systems, including Windows, Linux, Darwin, Irix, and Solaris. %package -n %{libname} Summary: GLEW library Group: System/Libraries %description -n %{libname} The goal of the OpenGL Extension Wrangler Library (GLEW) is to assist C/C++ OpenGL developers with two tedious tasks: initializing and using extensions and writing portable applications. GLEW provides an efficient run-time mechanism to determine whether a certain extension is supported by the driver or not. OpenGL core and extension functionality is exposed via a single header file. GLEW currently supports a variety of platforms and operating systems, including Windows, Linux, Darwin, Irix, and Solaris. %package -n %{develname} Summary: Development files for using the %{name} library Group: Development/C Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Provides: lib%{name}-devel = %{version}-%{release} Obsoletes: %mklibname %{name} 1.3 -d Provides: %mklibname %{name} 1.3 -d %description -n %{develname} Development files for using the %{name} library. %prep %setup -q # strip away annoying ^M find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//' find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//' perl -pi -e "s#-shared -soname#-shared -lc -soname#g" config/Makefile.linux #fix txt/doc files permissions chmod 0755 doc chmod 0644 doc/* README.txt %build %make CFLAGS.EXTRA="%{optflags} -fPIC" GLEW_DEST= libdir=%{_libdir} bindir=%{_bindir} includedir=%{_includedir} %install make install.all GLEW_DEST="%{buildroot}%{_usr}" bindir=%{buildroot}%{_bindir} libdir=%{buildroot}%{_libdir} includedir=%{buildroot}%{_includedir}/GL rm -f %{buildroot}%{_libdir}/*.a chmod 0755 %{buildroot}%{_libdir}/*.so* %files %doc README.txt doc %{_bindir}/* %files -n %{libname} %{_libdir}/libGLEW*.so.%{major}* %files -n %{develname} %{_includedir}/GL/*.h %{_libdir}/libGLEW*.so %{_libdir}/pkgconfig/*.pc %changelog * Sat Jan 12 2013 umeabot <umeabot> 1.9.0-2.mga3 + Revision: 351803 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Thu Aug 16 2012 fedya <fedya> 1.9.0-1.mga3 + Revision: 281587 - fix rpmlint warning - version update 1.9.0 * Tue Jul 24 2012 blino <blino> 1.8.0-1.mga3 + Revision: 274067 - 1.8.0 * Wed Jun 27 2012 kamil <kamil> 1.7.0-2.mga3 + Revision: 264185 - update license - build and install glewmx files * Mon Oct 03 2011 fwang <fwang> 1.7.0-1.mga2 + Revision: 151149 - update major - new version 1.7.0 + tv <tv> - fix file list - fix file list - new release * Mon May 16 2011 rtp <rtp> 1.5.8-2.mga1 + Revision: 99223 - Add missing build requires * Wed Apr 13 2011 tv <tv> 1.5.8-1.mga1 + Revision: 84623 - new release * Mon Jan 10 2011 pterjan <pterjan> 1.5.7-1.mga1 + Revision: 5353 - Drop obsolete scriptlets - imported package glew