!1 package init

Merge pull request !1 from bingo2008/bingoo2008
This commit is contained in:
openeuler-ci-bot 2020-02-14 10:59:33 +08:00 committed by Gitee
commit ccf341752f
3 changed files with 109 additions and 0 deletions

BIN
gsl-2.4.tar.gz Normal file

Binary file not shown.

15
gsl-test.patch Normal file
View File

@ -0,0 +1,15 @@
diff -up gsl-2.1/rstat/test.c.than gsl-2.1/rstat/test.c
diff -up gsl-2.1/test/results.c.than gsl-2.1/test/results.c
--- gsl-2.1/test/results.c.than 2016-03-10 18:08:17.013928401 -0500
+++ gsl-2.1/test/results.c 2016-03-10 18:42:45.717980023 -0500
@@ -131,6 +131,10 @@ gsl_test_rel (double result, double expe
{
status = -1;
}
+ else if (fabs(result-expected) < relative_error)
+ {
+ status = 0;
+ }
else if (expected != 0 )
{
status = (fabs(result-expected)/fabs(expected) > relative_error) ;

94
gsl.spec Normal file
View File

@ -0,0 +1,94 @@
Name: gsl
Version: 2.4
Release: 9
Summary: The GNU Scientific Library for numerical analysis
URL: http://www.gnu.org/software/gsl/
License: GPLv3 and GFDL and BSD
Source: ftp://ftp.gnu.org/gnu/gsl/%{name}-%{version}.tar.gz
Patch0: gsl-test.patch
BuildRequires: gcc pkgconfig
%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}
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
Requires: pkgconfig, automake
%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
export CFLAGS="$RPM_OPT_FLAGS -ffp-contract=off"
%endif
%configure
%{make_build}
%check
make check || ( cat */test-suite.log && exit 1 )
%install
%{make_install}
# remove unpackaged files from the buildroot
%install_info_rm
%delete_la_and_a
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post devel
if [ -f %{_infodir}/gsl-ref.info.gz ]; then
/sbin/install-info %{_infodir}/gsl-ref.info %{_infodir}/dir || :
fi
%preun devel
if [ "$1" = 0 ]; then
if [ -f %{_infodir}/gsl-ref.info.gz ]; then
/sbin/install-info --delete %{_infodir}/gsl-ref.info %{_infodir}/dir || :
fi
fi
%files
%license COPYING
%doc AUTHORS ChangeLog NEWS README THANKS TODO
%{_libdir}/libgsl.so.23*
%{_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
* Fri Feb 14 2020 fengbing <fengbing7@huawei.com> - 2.4-9
- Package init