3b787d
Summary: The GNU Scientific Library for numerical analysis
3b787d
Name: gsl
3b787d
Version: 2.5
3b787d
Release: 1%{?dist}
3b787d
URL: http://www.gnu.org/software/gsl/
3b787d
# info part of this package is under GFDL license
3b787d
# eigen/nonsymmv.c and eigen/schur.c
3b787d
# contains rutiens which are part of LAPACK - under BSD style license
3b787d
License: GPLv3 and GFDL and BSD
3b787d
Group: System Environment/Libraries
3b787d
3b787d
Source: ftp://ftp.gnu.org/gnu/gsl/%{name}-%{version}.tar.gz
3b787d
Patch0: gsl-1.10-lib64.patch
3b787d
# http://lists.gnu.org/archive/html/bug-gsl/2015-12/msg00012.html
3b787d
Patch1: gsl-tol.patch
3b787d
Patch2: gsl-test.patch
3b787d
BuildRequires: pkgconfig
3b787d
3b787d
%description
3b787d
The GNU Scientific Library (GSL) is a collection of routines for
3b787d
numerical analysis, written in C.
3b787d
3b787d
%package devel
3b787d
Summary: Libraries and the header files for GSL development
3b787d
Group: Development/Libraries
3b787d
Requires: %{name} = %{version}-%{release}
3b787d
Requires(post): /sbin/install-info
3b787d
Requires(preun): /sbin/install-info 
3b787d
Requires: pkgconfig, automake
3b787d
3b787d
%description devel
3b787d
The gsl-devel package contains the header files necessary for 
3b787d
developing programs using the GSL (GNU Scientific Library).
3b787d
3b787d
%prep
3b787d
%setup -q
3b787d
%patch0 -p1 -b .lib64
3b787d
%patch1 -p1 -b .tol
3b787d
%patch2 -p1 -b .test
3b787d
3b787d
iconv -f windows-1252 -t utf-8 THANKS  > THANKS.aux
3b787d
touch -r THANKS THANKS.aux
3b787d
mv THANKS.aux THANKS
3b787d
3b787d
%build
3b787d
# disable FMA
3b787d
%ifarch aarch64 ppc64 ppc64le s390 s390x
3b787d
export CFLAGS="$RPM_OPT_FLAGS -ffp-contract=off"
3b787d
%endif
3b787d
%configure
3b787d
make %{?_smp_mflags}
3b787d
3b787d
%check
3b787d
make check || ( cat */test-suite.log && exit 1 )
3b787d
3b787d
%install
3b787d
make install DESTDIR=$RPM_BUILD_ROOT install='install -p'
3b787d
# remove unpackaged files from the buildroot
3b787d
rm -rf $RPM_BUILD_ROOT%{_infodir}/dir
3b787d
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
3b787d
# remove static libraries
3b787d
rm -r $RPM_BUILD_ROOT%{_libdir}/*.a
3b787d
3b787d
3b787d
%post -p /sbin/ldconfig
3b787d
3b787d
%postun -p /sbin/ldconfig
3b787d
3b787d
%post devel
3b787d
if [ -f %{_infodir}/gsl-ref.info.gz ]; then
3b787d
    /sbin/install-info %{_infodir}/gsl-ref.info %{_infodir}/dir || :
3b787d
fi
3b787d
3b787d
%preun devel
3b787d
if [ "$1" = 0 ]; then
3b787d
    if [ -f %{_infodir}/gsl-ref.info.gz ]; then
3b787d
	/sbin/install-info --delete %{_infodir}/gsl-ref.info %{_infodir}/dir || :
3b787d
    fi
3b787d
fi
3b787d
3b787d
%files
3b787d
%license COPYING
3b787d
%doc AUTHORS ChangeLog NEWS README THANKS TODO
3b787d
%{_libdir}/libgsl.so.23*
3b787d
%{_libdir}/libgslcblas.so.0*
3b787d
%{_bindir}/gsl-histogram
3b787d
%{_bindir}/gsl-randist
3b787d
%{_mandir}/man1/gsl-histogram.1*
3b787d
%{_mandir}/man1/gsl-randist.1*
3b787d
3b787d
%files devel
3b787d
%{_bindir}/gsl-config*
3b787d
%{_datadir}/aclocal/*
3b787d
%{_includedir}/*
3b787d
%{_infodir}/*info*
3b787d
%{_libdir}/*.so
3b787d
%{_libdir}/pkgconfig/gsl.pc
3b787d
%{_mandir}/man1/gsl-config.1*
3b787d
%{_mandir}/man3/*.3*
3b787d
3b787d
%changelog
3b787d
* Mon Aug 13 2018 Pavel Cahyna <pcahyna@redhat.com> - 2.5-1
3b787d
- Update to 2.5
3b787d
3b787d
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-3
3b787d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
3b787d
3b787d
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-2
3b787d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3b787d
3b787d
* Wed Jul 12 2017 Arthur Mello <amello@redhat.com> - 2.4-1
3b787d
- Update to 2.4
3b787d
3b787d
* Tue Feb 14 2017 Frantisek Kluknavsky <fkluknav@redhat.com> - 2.3-1
3b787d
- rebase to 2.3
3b787d
3b787d
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-5
3b787d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3b787d
3b787d
* Thu Mar 10 2016 Than Ngo <than@redhat.com> - 2.1-4
3b787d
- fix build failure on powerpc
3b787d
3b787d
* Fri Feb 26 2016 Dan Horák <dan[at]danny.cz> - 2.1-3
3b787d
- Disable FMA also on ppc64(le) and s390(x)
3b787d
3b787d
* Tue Feb 23 2016 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 2.1-2
3b787d
- Disable FMA on AArch64 to lower precision so tests do not fail.
3b787d
3b787d
* Sun Feb 21 2016 Orion Poplawski <orion@cora.nwra.com> - 2.1-1
3b787d
- Update to 2.1
3b787d
3b787d
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-18
3b787d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3b787d
3b787d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.16-17
3b787d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3b787d
3b787d
* Mon Dec 08 2014 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.16-16
3b787d
- Drop linkage patch: libgsl should not link to libgslcblas,
3b787d
  so that more efficient libraries can be used (BZ #1007058).
3b787d
3b787d
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.16-15
3b787d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
3b787d
3b787d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.16-14
3b787d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3b787d
3b787d
* Mon Apr 28 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.16-13
3b787d
- Add upstream patch which fixes FTBFS on aarch64
3b787d
3b787d
* Sat Feb 15 2014 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.16-12
3b787d
- Drop ATLAS linkage patch: by design, the CBLAS library must be
3b787d
  defined at link time to allow use of more optimized implementations.
3b787d
  (BZ #1007058).
3b787d
3b787d
* Tue Oct 1 2013 Orion Poplawski <orion@cora.nwra.com> - 1.16-11
3b787d
- Update to 1.16
3b787d
- Rebase atlas patch
3b787d
- Drop upstreamed ode patch
3b787d
3b787d
* Sat Sep 21 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.15-10
3b787d
- linked against atlas 3.10
3b787d
3b787d
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-9
3b787d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3b787d
3b787d
* Wed Jan 30 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.15-8
3b787d
- self test moved to %%check section
3b787d
3b787d
* Tue Jan 29 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.15-7
3b787d
- run self-tests after build
3b787d
- updated ode-initval2 to upstream revision 4788
3b787d
3b787d
* Mon Nov 19 2012 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.15-6
3b787d
- minor cleanup of gsl.spec
3b787d
3b787d
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-5
3b787d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3b787d
3b787d
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-4
3b787d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3b787d
3b787d
* Tue Sep 27 2011 Peter Schiffer <pschiffe@redhat.com> - 1.15-3
3b787d
- resolves: #741138
3b787d
  removed unnecessary Requires: atlas
3b787d
3b787d
* Mon May  9 2011 Ivana Hutarova Varekova <varekova@redhat.com> - 1.15-2
3b787d
- resolves: #695148
3b787d
  link gsl against atlas package for blas operations
3b787d
3b787d
* Mon May  9 2011 Ivana Hutarova Varekova <varekova@redhat.com> - 1.15-1
3b787d
- update to 1.15
3b787d
3b787d
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14-2
3b787d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3b787d
3b787d
* Wed May  5 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 1.14-1
3b787d
- update to 1.14
3b787d
- Resolves: #560219
3b787d
             Library not linked correctly
3b787d
3b787d
* Wed Mar  3 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 1.13-2
3b787d
- remove the static subpackage
3b787d
3b787d
* Tue Sep 15 2009 Ivana Varekova <varekova@redhat.com> - 1.13-1
3b787d
- update to 1.13
3b787d
3b787d
* Mon Aug 17 2009 Ivana Varekova <varekova@redhat.com> - 1.12-6
3b787d
- fix preun and post scripts (#517568)
3b787d
3b787d
* Mon Aug 10 2009 Ivana Varekova <varekova@redhat.com> - 1.12-5
3b787d
- fix installation with --excludedocs option (#515971)
3b787d
3b787d
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-4
3b787d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
3b787d
3b787d
* Sat Mar 07 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 1.12-3
3b787d
- Remove rpaths (fix BZ#487823).
3b787d
3b787d
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-2
3b787d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3b787d
3b787d
* Mon Jan 19 2009 Ivana Varekova <varekova@redhat.com> - 1.12-1
3b787d
- update to 1.12
3b787d
3b787d
* Tue Sep 16 2008 Ivana Varekova <varekova@redhat.com> - 1.11-4
3b787d
- Resolves: #462369 - remove %%{_datadir}/aclocal
3b787d
- add automake dependency
3b787d
3b787d
* Mon Jul 28 2008 Ivana Varekova <varekova@redhat.com> - 1.11-3
3b787d
- add -fgnu89-inline flag to solve gcc4.3 problem 
3b787d
  remove gcc43 patch
3b787d
3b787d
* Wed Jun 18 2008 Ivana Varekova <varekova@redhat.com> - 1.11-2
3b787d
- Resolves: #451006
3b787d
  programs build with gcc 4.3 based on gsl require -fgnu89-inline 
3b787d
3b787d
* Mon Jun 16 2008 Ivana Varekova <varekova@redhat.com> - 1.11-1
3b787d
- update to 1.11
3b787d
3b787d
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.10-10
3b787d
- Autorebuild for GCC 4.3
3b787d
3b787d
* Thu Nov  1 2007 Ivana Varekova <varekova@redhat.com> - 1.10-9
3b787d
- source file change
3b787d
- spec cleanup
3b787d
3b787d
* Thu Nov  1 2007 Ivana Varekova <varekova@redhat.com> - 1.10-8
3b787d
- fix man-pages directories
3b787d
3b787d
* Tue Oct 30 2007 Ivana Varekova <varekova@redhat.com> - 1.10-7
3b787d
- add man pages
3b787d
3b787d
* Fri Oct 26 2007 Ivana Varekova <varekova@redhat.com> - 1.10-6
3b787d
- minor spec changes
3b787d
3b787d
* Thu Oct 25 2007 Ivana Varekova <varekova@redhat.com> - 1.10-5
3b787d
- minor spec changes
3b787d
3b787d
* Wed Oct 24 2007 Ivana Varekova <varekova@redhat.com> - 1.10-4
3b787d
- add pkgconfig dependency
3b787d
- separate static libraries to -static subpackage
3b787d
- fix gsl-config script - thanks Patrice Dumas
3b787d