$ git diff --patch-with-stat --summary e141b58b7053f78e3b2493ff54727531cec4ccec..d8f3cc0c4d904635b4881b7d9c19ba7350386bac
check-update.sh | 3 ++-
octave-communications.spec | 24 +++++++++++-------------
2 files changed, 13 insertions(+), 14 deletions(-)
diff --git a/check-update.sh b/check-update.sh
index 98cf243..7ac7d6a 100755
--- a/check-update.sh
+++ b/check-update.sh
@@ -1,3 +1,4 @@
#!/bin/sh
-curl https://octave.sourceforge.io/communications/index.html 2>/dev/null | grep -A1 "<dt>Version</dt>" |sed -ne 's,</dd>.*,,;s,.*<dd>,,p'
+package=communications
+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-communications.spec b/octave-communications.spec
index effa181..956cf40 100644
--- a/octave-communications.spec
+++ b/octave-communications.spec
@@ -1,16 +1,16 @@
%global octpkg communications
Summary: Digital communication tools for Octave
-Name: octave-%{octpkg}
+Name: octave-communications
Version: 1.2.4
-Release: 1
-Source0: http://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/communications/
+Source0: https://downloads.sourceforge.net/octave/%{octpkg}-%{version}.tar.gz
-BuildRequires: octave-devel >= 4.4.0
-BuildRequires: octave-signal >= 1.1.3
+BuildRequires: octave-devel >= 4.4.0
+BuildRequires: octave-signal >= 1.1.3
Requires: octave(api) = %{octave_api}
Requires: octave-signal >= 1.1.3
@@ -19,23 +19,21 @@ Requires(post): octave
Requires(postun): octave
%description
-Digital Communications, Error Correcting Codes (Channel Code), Source Code
-functions, Modulation and Galois Fields.
-
-This package is part of community Octave-Forge collection.
+Digital Communications, Error Correcting Codes (Channel Code), Source
+Code functions, Modulation and Galois Fields.
%files
%license COPYING
%doc NEWS
-%dir %{octpkglibdir}
-%{octpkglibdir}/*
%dir %{octpkgdir}
%{octpkgdir}/*
+%dir %{octpkglibdir}
+%{octpkglibdir}/*
#---------------------------------------------------------------------------
%prep
-%autosetup -n %{octpkg}-%{version}
+%autosetup -p1 -n %{octpkg}-%{version}
%build
%set_build_flags