$ git diff --patch-with-stat --summary bdcb96c97d0edb00a2e58bc1a9eaad8e6412a662..bc1056b5f6c6dfdc66e8a295de8f947032feedb3
check-update.sh | 3 ++-
octave-linear-algebra.spec | 18 +++++++-----------
2 files changed, 9 insertions(+), 12 deletions(-)
diff --git a/check-update.sh b/check-update.sh
index 2983623..9fd64c3 100755
--- a/check-update.sh
+++ b/check-update.sh
@@ -1,3 +1,4 @@
#!/bin/sh
-curl https://octave.sourceforge.io/linear-algebra/index.html 2>/dev/null | grep -A1 "<dt>Version</dt>" |sed -ne 's,</dd>.*,,;s,.*<dd>,,p'
+package=linear-algebra
+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-linear-algebra.spec b/octave-linear-algebra.spec
index 71da6df..78d6d5f 100644
--- a/octave-linear-algebra.spec
+++ b/octave-linear-algebra.spec
@@ -1,27 +1,26 @@
%global octpkg linear-algebra
Summary: Additional linear algebra code, including general SVD and matrix functions
-Name: octave-%{octpkg}
+Name: octave-linear-algebra
Version: 2.2.3
-Release: 1
-Source0: http://downloads.sourceforge.net/octave/%{octpkg}-%{version}.tar.gz
+Release: 2
License: GPLv3+ and LGPLv3+ and BSD
Group: Sciences/Mathematics
-Url: https://octave.sourceforge.io/%{octpkg}/
-BuildArch: noarch
+#Url: https://packages.octave.org/linear-algebra/
+Source0: https://downloads.sourceforge.net/octave/linear-algebra-%{version}.tar.gz
-BuildRequires: octave-devel >= 4.0.0
+BuildRequires: octave-devel >= 4.0.0
Requires: octave(api) = %{octave_api}
Requires(post): octave
Requires(postun): octave
+BuildArch: noarch
+
%description
Additional linear algebra code, including general SVD and matrix functions.
-This package is part of community Octave-Forge collection.
-
%files
%license COPYING
%doc NEWS
@@ -33,9 +32,6 @@ This package is part of community Octave-Forge collection.
%prep
%autosetup -p1 -n %{octpkg}-%{version}
-# remove backup files
-#find . -name \*~ -delete
-
%build
%octave_pkg_build