$ git diff --patch-with-stat --summary 21ba7de3760e23b1319e48410eb7e7be3baddc13..fa582d6f5ae1477649948d2ec4f5e3765586a938
check-update.sh | 3 ++-
octave-sockets.spec | 22 +++++++++-------------
2 files changed, 11 insertions(+), 14 deletions(-)
diff --git a/check-update.sh b/check-update.sh
index 4a73f75..c91f467 100755
--- a/check-update.sh
+++ b/check-update.sh
@@ -1,3 +1,4 @@
#!/bin/sh
-curl https://octave.sourceforge.io/sockets/index.html 2>/dev/null | grep -A1 "<dt>Version</dt>" |sed -ne 's,</dd>.*,,;s,.*<dd>,,p'
+package=sockets
+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-sockets.spec b/octave-sockets.spec
index 13a8713..09377d3 100644
--- a/octave-sockets.spec
+++ b/octave-sockets.spec
@@ -1,15 +1,15 @@
%global octpkg sockets
Summary: Socket functions for networking from within Octave
-Name: octave-%{octpkg}
+Name: octave-sockets
Version: 1.4.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/sockets/
+Source0: https://downloads.sourceforge.net/octave/%{octpkg}-%{version}.tar.gz
-BuildRequires: octave-devel >= 3.62.0
+BuildRequires: octave-devel >= 3.6.0
Requires: octave(api) = %{octave_api}
@@ -19,15 +19,14 @@ Requires(postun): octave
%description
Socket functions for networking from within Octave.
-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,10 +34,7 @@ This package is part of community Octave-Forge collection.
%autosetup -p1 -n %{octpkg}-%{version}
# fix octave path
-sed -i -e "s|/usr/local/bin/octave|/usr/local/bin/octave|" src/test_socket
-
-# remove backup files
-#find . -name \*~ -delete
+sed -i -e "s|/usr/local/bin/octave|%{_preifx}%{_bindir}/octave|" src/test_socket
%build
%set_build_flags