$ git diff --patch-with-stat --summary 8278b9f04c7e74f256ca1d98e293da4062ca43f4..11fb89fbfa980709431965c2759f575c3073ff74
check-update.sh | 3 ++-
octave-interval.spec | 25 ++++++++++++-------------
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/check-update.sh b/check-update.sh
index 0d147f3..233d874 100755
--- a/check-update.sh
+++ b/check-update.sh
@@ -1,3 +1,4 @@
#!/bin/sh
-curl https://octave.sourceforge.io/interval/index.html 2>/dev/null | grep -A1 "<dt>Version</dt>" |sed -ne 's,</dd>.*,,;s,.*<dd>,,p'
+package=interval
+curl -L https://gnu-octave.github.io/packages/${package}/ 2>/dev/null |sed -ne "s,.*${package}-,,;s,\.tar.\gz,,p" |head -n1
diff --git a/octave-interval.spec b/octave-interval.spec
index b8a7050..071fb36 100644
--- a/octave-interval.spec
+++ b/octave-interval.spec
@@ -1,15 +1,17 @@
%global octpkg interval
Summary: Evaluate functions over subsets of their domain with Octave
-Name: octave-%{octpkg}
+Name: octave-interval
Version: 3.2.1
-Release: 1
-Source0: https://downloads.sourceforge.net/octave/%{octpkg}-%{version}.tar.gz
-License: GPL-3.0+
+Release: 2
+License: GPLv3+
Group: Sciences/Mathematics
-Url: https://octave.sourceforge.io/%{octpkg}/
+Url: https://packages.octave.org/interval/
+Source0: https://downloads.sourceforge.net/octave/interval-%{version}.tar.gz
-BuildRequires: octave-devel >= 4.2.0
+BuildRequires: octave-devel >= 4.2.0
+BuildRequires: gomp-devel
+BuildRequires: pkgconfig(gmp)
BuildRequires: pkgconfig(mpfr)
Requires: octave(api) = %{octave_api}
@@ -31,15 +33,13 @@ The implementation is based on interval boundaries represented by binary64
numbers and is conforming to IEEE Std 1788-2015, IEEE standard for interval
arithmetic.
-This package is part of community Octave-Forge collection.
-
%files
%license COPYING
%doc NEWS
-%dir %{octpkglibdir}
-%{octpkglibdir}/*
%dir %{octpkgdir}
%{octpkgdir}/*
+%dir %{octpkglibdir}
+%{octpkglibdir}/*
%{_metainfodir}/*.metainfo.xml
#---------------------------------------------------------------------------
@@ -47,10 +47,9 @@ This package is part of community Octave-Forge collection.
%prep
%autosetup -p1 -n %{octpkg}-%{version}
-# remove backup files
-#find . -name \*~ -delete
-
%build
+export CC=gcc
+export CXX=g++
%set_build_flags
%octave_pkg_build