$ git diff --patch-with-stat --summary a53407e25996c6ebac56b872173e39a10c610199..773795c084508f700deef6faa46885e53f527291
check-update.sh | 3 ++-
octave-geometry.spec | 20 ++++++++------------
2 files changed, 10 insertions(+), 13 deletions(-)
diff --git a/check-update.sh b/check-update.sh
index 680b57a..d3e923f 100755
--- a/check-update.sh
+++ b/check-update.sh
@@ -1,3 +1,4 @@
#!/bin/sh
-curl https://octave.sourceforge.io/geometry/index.html 2>/dev/null | grep -A1 "<dt>Version</dt>" |sed -ne 's,</dd>.*,,;s,.*<dd>,,p'
+package=geometry
+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-geometry.spec b/octave-geometry.spec
index 7d6512f..f45cc04 100644
--- a/octave-geometry.spec
+++ b/octave-geometry.spec
@@ -1,19 +1,20 @@
%global octpkg geometry
Summary: Library for geometric computing extending MatGeom functions
-Name: octave-%{octpkg}
+Name: octave-geometry
Version: 4.0.0
-Release: 1
-Source0: http://downloads.sourceforge.net/octave/%{octpkg}-%{version}.tar.gz
+Release: 2
License: GPLv3+ and BSD and Boost Software License
Group: Sciences/Mathematics
-Url: https://octave.sourceforge.io/%{octpkg}/
+Url: https://packages.octave.org/geometry/
+Source0: https://downloads.sourceforge.net/octave/geometry-%{version}.tar.gz
BuildRequires: octave-devel >= 4.2.0
BuildRequires: octave-matgeom >= 1.0.0
+BuildRequires: stdc++-devel
Requires: octave(api) = %{octave_api}
-Requires: octave-matgeom >= 1.0.0
+Requires: octave-matgeom >= 1.0.0
Requires(post): octave
Requires(postun): octave
@@ -21,24 +22,19 @@ Requires(postun): octave
%description
This library extends MatGeom functionality.
-This package is part of community Octave-Forge collection.
-
%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