octave-sockets 1.4.0-2 (aarch64;znver1;x86_64) 2023-17489
9999

Status published
Submitter mandian [@T] tutanota.com
Platform rolling
Repository unsupported
URL https://abf.openmandriva.org/build_lists/335803
Packages
octave-sockets-1.4.0-2.aarch64.source
octave-sockets-1.4.0-2.aarch64.binary
octave-sockets-debuginfo-1.4.0-2.aarch64.debuginfo
octave-sockets-debugsource-1.4.0-2.aarch64.binary
octave-sockets-1.4.0-2.znver1.source
octave-sockets-1.4.0-2.znver1.binary
octave-sockets-debuginfo-1.4.0-2.znver1.debuginfo
octave-sockets-debugsource-1.4.0-2.znver1.binary
octave-sockets-1.4.0-2.x86_64.source
octave-sockets-1.4.0-2.x86_64.binary
octave-sockets-debuginfo-1.4.0-2.x86_64.debuginfo
octave-sockets-debugsource-1.4.0-2.x86_64.binary
Build Date 2023-04-28 08:48:14 +0000 UTC
Last Updated 2023-05-06 02:47:24.319247592 +0000 UTC
$ 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
Not Available

benbullard79 [@T] cox.netNo Comment.567d 14hrs
benbullard79 [@T] cox.netNo Comment.567d 14hrs