Update config.guess for newer arch support, Modernise spec file

This commit is contained in:
Peter Robinson 2014-05-03 12:56:02 +01:00
parent 13f5f1b246
commit 3e02a887ae

View File

@ -1,6 +1,6 @@
Name: glew Name: glew
Version: 1.10.0 Version: 1.10.0
Release: 2%{?dist} Release: 3%{?dist}
Summary: The OpenGL Extension Wrangler Library Summary: The OpenGL Extension Wrangler Library
Group: System Environment/Libraries Group: System Environment/Libraries
License: BSD and MIT License: BSD and MIT
@ -52,22 +52,18 @@ libGLEWmx
%patch0 -p1 -b .bld %patch0 -p1 -b .bld
%patch1 -p1 -b .make %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 %build
make %{?_smp_mflags} CFLAGS.EXTRA="$RPM_OPT_FLAGS -fPIC" includedir=%{_includedir} STRIP= libdir=%{_libdir} bindir=%{_bindir} GLEW_DEST= make %{?_smp_mflags} CFLAGS.EXTRA="$RPM_OPT_FLAGS -fPIC" includedir=%{_includedir} STRIP= libdir=%{_libdir} bindir=%{_bindir} GLEW_DEST=
%install %install
rm -rf $RPM_BUILD_ROOT
make install.all GLEW_DEST= DESTDIR="$RPM_BUILD_ROOT" libdir=%{_libdir} bindir=%{_bindir} includedir=%{_includedir} 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 # sigh
chmod 0755 $RPM_BUILD_ROOT%{_libdir}/*.so* chmod 0755 $RPM_BUILD_ROOT%{_libdir}/*.so*
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libGLEW -p /sbin/ldconfig %post -n libGLEW -p /sbin/ldconfig
%postun -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 %postun -n libGLEWmx -p /sbin/ldconfig
%files %files
%defattr(-,root,root,-)
%doc LICENSE.txt %doc LICENSE.txt
%{_bindir}/* %{_bindir}/*
%files -n libGLEW %files -n libGLEW
%defattr(-,root,root,-)
%doc LICENSE.txt %doc LICENSE.txt
%{_libdir}/libGLEW.so.* %{_libdir}/libGLEW.so.*
%files -n libGLEWmx %files -n libGLEWmx
%defattr(-,root,root,-)
%doc LICENSE.txt %doc LICENSE.txt
%{_libdir}/libGLEWmx.so.* %{_libdir}/libGLEWmx.so.*
%files devel %files devel
%defattr(-,root,root,-)
%{_libdir}/libGLEW.so %{_libdir}/libGLEW.so
%{_libdir}/libGLEWmx.so %{_libdir}/libGLEWmx.so
%{_libdir}/pkgconfig/glew.pc %{_libdir}/pkgconfig/glew.pc
@ -101,6 +93,10 @@ rm -rf $RPM_BUILD_ROOT
%doc doc/* %doc doc/*
%changelog %changelog
* Sat May 3 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.10.0-3
- Update config.guess for newer arch support
- Modernise spec file
* Mon Nov 18 2013 Dave Airlie <airlied@redhat.com> - 1.10.0-2 * Mon Nov 18 2013 Dave Airlie <airlied@redhat.com> - 1.10.0-2
- rebuilt for GLEW 1.10 - rebuilt for GLEW 1.10