$ git diff --patch-with-stat --summary ca7e4bfd985e53da3b4117c0c142f7587f079742..69e10121cddbb96be88ed2465b5c9882713b7aa3
.abf.yml | 2 +-
check-update.sh | 3 ++-
octave-bioinfo.spec | 19 +++++++++++--------
3 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/.abf.yml b/.abf.yml
index d84fba0..5472165 100644
--- a/.abf.yml
+++ b/.abf.yml
@@ -1,2 +1,2 @@
sources:
- "bioinfo-0.1.2.tar.gz": cc62d0250f2f41b5f7ef3ea3095006667fe1e37f
+ octave-bioinfo-master.tar.gz: fc2abac0a8333a9c74e8c0180858d4c00bc0e028
diff --git a/check-update.sh b/check-update.sh
index df09acd..02f2c1a 100755
--- a/check-update.sh
+++ b/check-update.sh
@@ -1,3 +1,4 @@
#!/bin/sh
-curl https://octave.sourceforge.io/bioinfo/index.html 2>/dev/null | grep -A1 "<dt>Version</dt>" |sed -ne 's,</dd>.*,,;s,.*<dd>,,p'
+package=bioinfo
+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-bioinfo.spec b/octave-bioinfo.spec
index 1ee7368..c6bc550 100644
--- a/octave-bioinfo.spec
+++ b/octave-bioinfo.spec
@@ -1,13 +1,18 @@
-%define octpkg bioinfo
+%global octpkg bioinfo
+
+# NOTE: use commit if the last release is too old
+%global snapshot 20210728
+%global commit a74ca57046d1b9d998f31164eb551b700b4024c2
Summary: Bioinformatics manipulation in Octave
-Name: octave-%{octpkg}
-Version: 0.1.2
+Name: octave-bioinfo
+Version: 0.2.2
Release: 1
-Source0: http://downloads.sourceforge.net/octave/%{octpkg}-%{version}.tar.gz
+#Source0: https://github.com/schloegl/octmat-bioinfo/archive/v%{version}/bioinfo-%{version}.tar.gz
+Source0: https://github.com/schloegl/octmat-bioinfo/archive/%{?commit:master}%{!?commit:v%{version}}/%{name}-%{?commit:master}%{!?commit:%{version}}.tar.gz
License: GPLv2+
Group: Sciences/Mathematics
-Url: https://octave.sourceforge.io/%{octpkg}/
+Url: https://github.com/schloegl/octmat-bioinfo
BuildArch: noarch
BuildRequires: octave-devel >= 3.0.0
@@ -20,8 +25,6 @@ Requires(postun): octave
%description
Bioinformatics manipulation in Octave.
-This package is part of unmantained Octave-Forge collection.
-
%files
%license COPYING
#doc NEWS
@@ -31,7 +34,7 @@ This package is part of unmantained Octave-Forge collection.
#---------------------------------------------------------------------------
%prep
-%autosetup -n %{octpkg}-%{version}
+%autosetup -p1 -S gendiff -n octmat-bioinfo-%{?commit:master}%{!?commit:%{version}}
%build
%set_build_flags