From 3e02a887aeafc8b31a21ccae194d5193bc196f97 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Sat, 3 May 2014 12:56:02 +0100 Subject: [PATCH] Update config.guess for newer arch support, Modernise spec file --- glew.spec | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/glew.spec b/glew.spec index a5f918e..385ccdb 100644 --- a/glew.spec +++ b/glew.spec @@ -1,6 +1,6 @@ Name: glew Version: 1.10.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: The OpenGL Extension Wrangler Library Group: System Environment/Libraries License: BSD and MIT @@ -52,22 +52,18 @@ libGLEWmx %patch0 -p1 -b .bld %patch1 -p1 -b .make -sed -i -e 's/\r//g' config/config.guess +# update config.guess for new arch support +cp /usr/lib/rpm/redhat/config.guess config/ %build - make %{?_smp_mflags} CFLAGS.EXTRA="$RPM_OPT_FLAGS -fPIC" includedir=%{_includedir} STRIP= libdir=%{_libdir} bindir=%{_bindir} GLEW_DEST= %install -rm -rf $RPM_BUILD_ROOT make install.all GLEW_DEST= DESTDIR="$RPM_BUILD_ROOT" libdir=%{_libdir} bindir=%{_bindir} includedir=%{_includedir} -rm -f $RPM_BUILD_ROOT%{_libdir}/libGLEW.a $RPM_BUILD_ROOT%{_libdir}/libGLEWmx.a +find $RPM_BUILD_ROOT -type f -name "*.a" -delete # sigh chmod 0755 $RPM_BUILD_ROOT%{_libdir}/*.so* -%clean -rm -rf $RPM_BUILD_ROOT - %post -n libGLEW -p /sbin/ldconfig %postun -n libGLEW -p /sbin/ldconfig @@ -77,22 +73,18 @@ rm -rf $RPM_BUILD_ROOT %postun -n libGLEWmx -p /sbin/ldconfig %files -%defattr(-,root,root,-) %doc LICENSE.txt %{_bindir}/* %files -n libGLEW -%defattr(-,root,root,-) %doc LICENSE.txt %{_libdir}/libGLEW.so.* %files -n libGLEWmx -%defattr(-,root,root,-) %doc LICENSE.txt %{_libdir}/libGLEWmx.so.* %files devel -%defattr(-,root,root,-) %{_libdir}/libGLEW.so %{_libdir}/libGLEWmx.so %{_libdir}/pkgconfig/glew.pc @@ -101,6 +93,10 @@ rm -rf $RPM_BUILD_ROOT %doc doc/* %changelog +* Sat May 3 2014 Peter Robinson 1.10.0-3 +- Update config.guess for newer arch support +- Modernise spec file + * Mon Nov 18 2013 Dave Airlie - 1.10.0-2 - rebuilt for GLEW 1.10