$ git diff --patch-with-stat --summary 414fd6dc7860dfecd760ed1eb1b3c90db87d5166..7271351b514c1f668b32a79ae0899683d0d093e5
check-update.sh | 3 ++-
octave-nan.spec | 27 ++++++++++++---------------
2 files changed, 14 insertions(+), 16 deletions(-)
diff --git a/check-update.sh b/check-update.sh
index 6a67a78..4bf45f4 100755
--- a/check-update.sh
+++ b/check-update.sh
@@ -1,3 +1,4 @@
#!/bin/sh
-curl https://octave.sourceforge.io/nan/index.html 2>/dev/null | grep -A1 "<dt>Version</dt>" |sed -ne 's,</dd>.*,,;s,.*<dd>,,p'
+package=nan
+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-nan.spec b/octave-nan.spec
index 45c376f..8981bb9 100644
--- a/octave-nan.spec
+++ b/octave-nan.spec
@@ -1,15 +1,15 @@
-%define octpkg nan
+%global octpkg nan
-Summary: NaN toolbox for Octave
-Name: octave-%{octpkg}
+Summary: A statistics and machine learning toolbox for data with and w/o missing values
+Name: octave-nan
Version: 3.7.0
-Release: 1
-Source0: https://downloads.sourceforge.net/octave/%{octpkg}-%{version}.tar.gz
+Release: 2
License: GPLv3+
Group: Sciences/Mathematics
-Url: https://octave.sourceforge.io/%{octpkg}/
+Url: https://packages.octave.org/nan/
+Source0: https://downloads.sourceforge.net/octave/nan-%{version}.tar.gz
-BuildRequires: octave-devel >= 4.4.1
+BuildRequires: octave-devel >= 4.4.1
BuildRequires: gomp-devel
Requires: octave(api) = %{octave_api}
@@ -18,26 +18,23 @@ Requires(post): octave
Requires(postun): octave
%description
-A statistics and machine learning toolbox for data with and w/o missing values.
-
-This package is part of external Octave-Forge collection.
+A statistics and machine learning toolbox for data with and w/o
+missing values.
%files
%license COPYING
%doc NEWS
-%dir %{octpkglibdir}
-%{octpkglibdir}/*
%dir %{octpkgdir}
%{octpkgdir}/*
+%dir %{octpkglibdir}
+%{octpkglibdir}/*
+#{_metainfodir}/*.metainfo.xml
#---------------------------------------------------------------------------
%prep
%autosetup -p1 -n %{octpkg}-%{version}
-# remove backup files
-#find . -name \*~ -delete
-
%build
%set_build_flags
%octave_pkg_build