summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-02 08:49:13 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-02 08:49:13 +0000
commit086395b22d0675f62e2ee8a5b77b75b128bfc56c (patch)
treeda7ca67d440deb4b2c4beb98176b6536aa9ac563
parentd808dec7df3bd475867f919428e2a23ee1659330 (diff)
automatic import of gslopeneuler23.03
-rw-r--r--.gitignore1
-rw-r--r--gsl-test.patch15
-rw-r--r--gsl.spec104
-rw-r--r--sources1
4 files changed, 121 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..c54b2d4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gsl-2.7.tar.gz
diff --git a/gsl-test.patch b/gsl-test.patch
new file mode 100644
index 0000000..1a4fcc5
--- /dev/null
+++ b/gsl-test.patch
@@ -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) ;
diff --git a/gsl.spec b/gsl.spec
new file mode 100644
index 0000000..94431ea
--- /dev/null
+++ b/gsl.spec
@@ -0,0 +1,104 @@
+Name: gsl
+Version: 2.7
+Release: 1
+Summary: The GNU Scientific Library for numerical analysis
+URL: http://www.gnu.org/software/gsl/
+License: GPLv3 and GFDL-1.3-or-later 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
+Summary: Help files for GSL
+
+%description help
+The gsl help files
+
+%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
+%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.25*
+%{_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
+* 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
diff --git a/sources b/sources
new file mode 100644
index 0000000..33da0f2
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+9e47e81caaebcd92b7aca27a5348df74 gsl-2.7.tar.gz