$ git diff --patch-with-stat --summary 0e1510df49c55e9b2bbe23f2d7417718d79f7aa4..9393b535d904a2a094a731795b908dae15866e85
check-update.sh | 3 ++-
octave-instrument-control.spec | 23 +++++++++--------------
2 files changed, 11 insertions(+), 15 deletions(-)
diff --git a/check-update.sh b/check-update.sh
index 6e45202..0c23c7f 100755
--- a/check-update.sh
+++ b/check-update.sh
@@ -1,3 +1,4 @@
#!/bin/sh
-curl https://octave.sourceforge.io/instrument-control/index.html 2>/dev/null | grep -A1 "<dt>Version</dt>" |sed -ne 's,</dd>.*,,;s,.*<dd>,,p'
+package=instrument-control
+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-instrument-control.spec b/octave-instrument-control.spec
index 16c5597..0f0c6be 100644
--- a/octave-instrument-control.spec
+++ b/octave-instrument-control.spec
@@ -1,15 +1,15 @@
%global octpkg instrument-control
Summary: Low level I/O functions for several interfaces with Octave
-Name: octave-%{octpkg}
+Name: octave-instrument-control
Version: 0.8.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/instrument-control/
+Source0: https://downloads.sourceforge.net/octave/instrument-control-%{version}.tar.gz
-BuildRequires: octave-devel >= 3.8.0
+BuildRequires: octave-devel >= 4.0.0
BuildRequires: pkgconfig(libtirpc)
Requires: octave(api) = %{octave_api}
@@ -18,27 +18,22 @@ Requires(post): octave
Requires(postun): octave
%description
-Low level I/O functions for serial, i2c, parallel, tcp, gpib, vxi11 and
-usbtmc interfaces.
-
-This package is part of community Octave-Forge collection.
+Low level I/O functions for serial, i2c, parallel, tcp, gpib, vxi11,
+udp and usbtmc interfaces.
%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