$ git diff --patch-with-stat --summary f98c12a2fb3bf835026360934a2699b3025db922..ff43962d2c6c0e2f89ec76c07d11b05fece4b216
check-update.sh | 3 ++-
octave-io.spec | 20 ++++++++------------
2 files changed, 10 insertions(+), 13 deletions(-)
diff --git a/check-update.sh b/check-update.sh
index 621111f..2548bdb 100755
--- a/check-update.sh
+++ b/check-update.sh
@@ -1,3 +1,4 @@
#!/bin/sh
-curl https://octave.sourceforge.io/io/index.html 2>/dev/null | grep -A1 "<dt>Version</dt>" |sed -ne 's,</dd>.*,,;s,.*<dd>,,p'
+package=io
+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-io.spec b/octave-io.spec
index 706f429..fa050f9 100644
--- a/octave-io.spec
+++ b/octave-io.spec
@@ -1,15 +1,16 @@
%global octpkg io
Summary: Input/Output in external formats
-Name: octave-%{octpkg}
+Name: octave-io
Version: 2.6.4
-Release: 1
-Source0: http://downloads.sourceforge.net/octave/%{octpkg}-%{version}.tar.gz
+Release: 2
License: GPLv3+ and BSD
Group: Sciences/Mathematics
-Url: https://octave.sourceforge.io/%{octpkg}/
+#Url: https://packages.octave.org/io/
+Url: https://packages.octave.org/io/
+Source0: https://downloads.sourceforge.net/octave/io-%{version}.tar.gz
-BuildRequires: octave-devel >= 4.2.0
+BuildRequires: octave-devel >= 4.2.0
Requires: octave(api) = %{octave_api}
@@ -19,24 +20,19 @@ Requires(postun): octave
%description
Input/Output in external formats.
-This package is part of community Octave-Forge collection.
-
%files
%license COPYING
%doc NEWS
-%dir %{octpkglibdir}
-%{octpkglibdir}/*
%dir %{octpkgdir}
%{octpkgdir}/*
+%dir %{octpkglibdir}
+%{octpkglibdir}/*
#---------------------------------------------------------------------------
%prep
%autosetup -p1 -n %{octpkg}-%{version}
-# remove backup files
-#find . -name \*~ -delete
-
%build
%set_build_flags
%octave_pkg_build