Summary: The GNU Scientific Library for numerical analysis Name: gsl Version: 1.9 Release: 1%{?dist} URL: http://sources.redhat.com/gsl/ Source: ftp://sources.redhat.com/pub/gsl/%{name}-%{version}.tar.gz Patch0: gsl-1.1-nousr.patch Patch1: gsl-1.9-lib64.patch # info part of this package is under GFDL license # eigen/nonsymmv.c and eigen/schur.c # contains rutiens which are part of LAPACK - under BSD style license License: GPLv2 and GFDL and BSD license Group: System Environment/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description The GNU Scientific Library (GSL) is a collection of routines for numerical analysis, written in C %package devel Summary: Static libraries and header files for GSL development Group: Development/Libraries Requires: gsl = %{version}-%{release} Requires(post): /sbin/install-info Requires(preun): /sbin/install-info %description devel The gsl-devel package contains the header files and static libraries necessary for developing programs using the GSL (GNU Scientific Library). %prep %setup -q %patch0 -p1 -b .nousr %patch1 -p1 -b .lib64 %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT # remove unpackaged files from the buildroot rm -f $RPM_BUILD_ROOT%{_infodir}/dir rm -rf $RPM_BUILD_ROOT%{_mandir} rm -rf $RPM_BUILD_ROOT%{_sysconfdir} rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig gslcsuffix=`echo "%{_libdir}" | sed s,/usr/,,` mv $RPM_BUILD_ROOT%{_bindir}/gsl-config $RPM_BUILD_ROOT%{_bindir}/gsl-config-$gslcsuffix cat > $RPM_BUILD_ROOT%{_bindir}/gsl-config << EOF #!/bin/sh if [ -e %{_bindir}/gsl-config-lib64 ]; then exec %{_bindir}/gsl-config-lib64 "\$@" elif [ -e %{_bindir}/gsl-config-* ]; then gslcfile="\`ls %{_bindir}/gsl-config-* | head -n1\`" exec \$gslcfile "\$@" fi EOF chmod 755 $RPM_BUILD_ROOT%{_bindir}/gsl-config %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post devel /sbin/install-info %{_infodir}/gsl-ref.info.gz %{_infodir}/dir || : %preun devel if [ "$1" = 0 ]; then /sbin/install-info --delete %{_infodir}/gsl-ref.info.gz %{_infodir}/dir || : fi %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO %{_libdir}/*so.* %{_libdir}/*.la %{_bindir}/gsl-histogram %{_bindir}/gsl-randist %files devel %defattr(-,root,root,-) %doc AUTHORS COPYING %{_bindir}/gsl-config* %{_datadir}/aclocal/* %{_includedir}/* %{_infodir}/*info* %{_libdir}/*.a %{_libdir}/*.so %changelog * Tue May 22 2007 Ivana Varekova - 1.9-1 - update to 1.9 * Wed Mar 14 2007 Ivana Varekova - 1.8-3 - incorporate the package review feedback * Mon Jan 22 2007 Ivana Varekova - 1.8-2 - Resolves: 223700 fix non-failsafe install-info problem - spec file cleanup * Wed Jul 12 2006 Jesse Keating - 1.8-1.1 - rebuild * Fri May 5 2006 Ivana Varekova - 1.8-1 - update to 1.8 * Fri Mar 3 2006 Ivana Varekova - 1.7-2 - fix multilib problem * Fri Feb 10 2006 Jesse Keating - 1.7-1.2.1 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 1.7-1.2 - rebuilt for new gcc4.1 snapshot and glibc changes * Fri Dec 09 2005 Jesse Keating - rebuilt * Thu Nov 10 2005 Ivana Varekova 1.7-1 - update to 1.7 * Mon Mar 7 2005 Ivana Varekova 1.6-2 - rebuilt * Thu Jan 6 2005 Ivana Varekova 1.6-1 - update to 1.6 * Wed Dec 15 2004 Ivana Varekova - fix bug #142696 gsl-config outputs invalid flags on multilib 64-bit architectures * Fri Jul 02 2004 Florian La Roche - 1.5 * Tue Jun 15 2004 Elliot Lee - rebuilt * Tue Mar 02 2004 Elliot Lee - rebuilt * Fri Feb 13 2004 Elliot Lee - rebuilt * Thu Aug 21 2003 Florian La Roche - update to 1.4 * Wed Jun 25 2003 Florian La Roche - update to 1.3 * Wed Jun 04 2003 Elliot Lee - rebuilt * Wed Jan 22 2003 Tim Powers - rebuilt * Fri Nov 29 2002 Tim Powers 1.1.1-4 - remove unpackaged files from the buildroot * Fri Jun 21 2002 Tim Powers - automated rebuild * Thu May 23 2002 Tim Powers - automated rebuild * Thu Mar 21 2002 Trond Eivind Glomsrød - 1.1.1 bugfix release - Stop the gsl-config script from printing -I/usr/include and -L/usr/lib (#59500) * Wed Feb 27 2002 Trond Eivind Glomsrød 1.1-1 - 1.1 - Update URL and location * Wed Jan 09 2002 Tim Powers - automated rebuild * Thu Dec 13 2001 Trond Eivind Glomsrød 1.0-1 - 1.0 - Split into gsl and gsl-devel - update description (#56926) * Thu Jul 19 2001 Preston Brown - upgrade to 0.9 * Sun Jun 24 2001 Elliot Lee - Bump release + rebuild. * Thu Jan 18 2001 Preston Brown - prereq install-info (#24250) * Mon Dec 11 2000 Preston Brown - 0.7, remove excludearch for ia64 * Sun Jul 30 2000 Florian La Roche - fix %%post to be a real shell and add ldconfig to %%post * Thu Jul 13 2000 Prospector - automatic rebuild * Mon Jun 19 2000 Preston Brown - don't include the info dir file... * Sat Jun 17 2000 Bill Nottingham - add %%defattr * Mon Jun 12 2000 Preston Brown - 0.6, FHS paths - exclude ia64, it is having issues * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 2) * Thu Mar 11 1999 Bill Nottingham - update to 0.3f - add patches to fix glibc-2.1 compilation, doc oddity * Thu Feb 25 1999 Bill Nottingham - new summary/description, work around automake oddity * Tue Jan 12 1999 Michael K. Johnson - libtoolize for arm * Thu Sep 10 1998 Cristian Gafton - spec file fixups * Sat May 9 1998 Michael Fulbright - started with package for gmp from Toshio Kuratomi - cleaned up file list - fixed up install-info support