b83fc9ca创建于 2024年11月4日历史提交
Name: gsl
Version: 2.8
Release: 1
Summary: The GNU Scientific Library for numerical analysis
URL: https://www.gnu.org/software/gsl/
License: GPL-3.0-or-later
Source: https://ftp.gnu.org/gnu/gsl/%{name}-%{version}.tar.gz

Patch0: gsl-test.patch
# backport patch from Debian
Patch1: backport-CVE-2024-50610.patch
Patch3: gsl-2.8-fix-linkage.patch

BuildRequires: gcc
BuildRequires: autoconf automake libtool

%description
The GNU Scientific Library (GSL) is a collection of routines for
numerical analysis, written in C.

%package devel
Summary: Libraries and the header files for GSL development
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description devel
The gsl-devel package contains the header files necessary for
developing programs using the GSL (GNU Scientific Library).

%package_help

%prep
%autosetup -n %{name}-%{version} -p1
iconv -f windows-1252 -t utf-8 THANKS  > THANKS.aux
touch -r THANKS THANKS.aux
mv THANKS.aux THANKS

%build
# disable FMA
%ifarch aarch64 loongarch64
export CFLAGS="$RPM_OPT_FLAGS -ffp-contract=off"
%endif
autoreconf -fi
%configure --disable-static
%{make_build}

%check
%make_build check || ( cat */test-suite.log && exit 1 )

%install
%{make_install}
%delete_la

chrpath -d %{buildroot}/%{_bindir}/gsl-randist
chrpath -d %{buildroot}/%{_bindir}/gsl-histogram

%files
%license COPYING
%doc AUTHORS ChangeLog NEWS README THANKS TODO
%{_libdir}/libgsl.so.28*
%{_libdir}/libgslcblas.so.0*
%{_bindir}/gsl-histogram
%{_bindir}/gsl-randist

%files devel
%{_bindir}/gsl-config*
%{_datadir}/aclocal/*
%{_includedir}/*
%{_infodir}/*info*
%{_libdir}/*.so
%{_libdir}/pkgconfig/gsl.pc

%files help
%{_mandir}/man1/gsl-histogram.1*
%{_mandir}/man1/gsl-randist.1*
%{_mandir}/man1/gsl-config.1*
%{_mandir}/man3/*.3*

%changelog
* Mon Nov 04 2024 Funda Wang <fundawang@yeah.net> - 2.8-1
- update to 2.8

* Fri Nov 1 2024 liningjie <liningjie@xfusion.com> - 2.7-3
- Fix CVE-2024-50610

* Tue Aug 20 2024 yaoxin <yao_xin001@hoperun.com> - 2.7-2
- Remove rpath

* Sat Feb 04 2023 wenchaofan <349464272@qq.com> - 2.7-1
- Update to 2.7 version

* Wed Dec 07 2022 xu_ping <xuping33@h-partners.com> - 2.4-10
- Adaptation Loongarch

* Fri Feb 14 2020 fengbing <fengbing7@huawei.com> - 2.4-9
- Package init