$ git diff --patch-with-stat --summary fa3a53f2732848d528c5d12bbb727f2a53cfc3e1..b66e3b38e91fc80506a59c142955bb8ea3c43ba5
check-update.sh | 3 ++-
octave-struct.spec | 19 +++++++------------
2 files changed, 9 insertions(+), 13 deletions(-)
diff --git a/check-update.sh b/check-update.sh
index d71ba71..26cce78 100755
--- a/check-update.sh
+++ b/check-update.sh
@@ -1,3 +1,4 @@
#!/bin/sh
-curl https://octave.sourceforge.io/struct/index.html 2>/dev/null | grep -A1 "<dt>Version</dt>" |sed -ne 's,</dd>.*,,;s,.*<dd>,,p'
+package=struct
+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-struct.spec b/octave-struct.spec
index df778c7..5a2629c 100644
--- a/octave-struct.spec
+++ b/octave-struct.spec
@@ -1,15 +1,15 @@
%global octpkg struct
Summary: Additional structure manipulation functions
-Name: octave-%{octpkg}
+Name: octave-struct
Version: 1.0.18
-Release: 1
-Url: https://octave.sourceforge.io/%{octpkg}/
-Source0: https://downloads.sourceforge.net/octave/%{octpkg}-%{version}.tar.gz
+Release: 2
License: GPLv3+
Group: Sciences/Mathematics
+Url: https://packages.octave.org/struct/
+Source0: https://downloads.sourceforge.net/octave/struct-%{version}.tar.gz
-BuildRequires: octave-devel >= 4.0.0
+BuildRequires: octave-devel >= 4.0.0
Requires: octave(api) = %{octave_api}
@@ -19,15 +19,13 @@ Requires(postun): octave
%description
Additional structure manipulation functions.
-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
#---------------------------------------------------------------------------
@@ -35,9 +33,6 @@ This package is part of community Octave-Forge collection.
%prep
%autosetup -p1 -n %{octpkg}-%{version}
-# remove backup files
-#find . -name \*~ -delete
-
%build
%set_build_flags
%octave_pkg_build