Compare commits

...

9 Commits

Author SHA1 Message Date
David Abdurachmanov bb5990b2ee
Add support for riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-11-09 10:09:17 +02:00
Orion Poplawski 13a2a5db12 Update to 8.4.0 2023-11-06 20:04:40 -07:00
Antonio Trande 62fd80b2ed Rebuild for sundials-6.6.1 2023-10-16 21:47:21 +02:00
Orion Poplawski fa6b1a6773 Update to 8.3.0 2023-08-13 17:02:05 -06:00
Tom Callaway 1d12ae9f1c rebuild for new qhull 2023-08-10 14:03:28 -04:00
Fedora Release Engineering d5f2f2983b Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-20 17:40:35 +00:00
Orion Poplawski 4529489d99 Rebuild for sundials 6.5.1 2023-04-24 20:56:30 -06:00
Orion Poplawski 6f5fe25107 Update to 8.2.0 2023-04-17 21:22:19 -06:00
Orion Poplawski c7d30dff4c Update to 8.1.0
Build with pcre2 (bz#2128340)
2023-04-08 16:49:05 -06:00
5 changed files with 45 additions and 59 deletions

4
.gitignore vendored
View File

@ -43,3 +43,7 @@ octave-3.2.4.tar.bz2
/octave-7.2.0.tar.lz
/octave-7.3.0.tar.lz
/octave-7.3.0-docs.tar.xz
/octave-8.1.0.tar.lz
/octave-8.2.0.tar.lz
/octave-8.3.0.tar.lz
/octave-8.4.0.tar.lz

View File

@ -1,43 +0,0 @@
# HG changeset patch
# User Rik <rik@octave.org>
# Date 1668451079 28800
# Node ID ab6d276f6fcb90631131eeb6668efd4f54a36204
# Parent 662499ba0d21173006f99fc3b14b9a76a0e8670a
build: Enable building of Qt documentation with Texinfo >= 7.0 (bug #62648).
* doc/interpreter/mk-qthelp.pl: Update regular expressions that find the start
of data in index.html and Function-index.html to include additional pattern
generated by Texinfo 7.0.
diff --git a/doc/interpreter/mk-qthelp.pl b/doc/interpreter/mk-qthelp.pl
--- a/doc/interpreter/mk-qthelp.pl
+++ b/doc/interpreter/mk-qthelp.pl
@@ -26,8 +26,11 @@
open (my $HTML, "<", $htmlfname) or die "Unable to open $htmlfname";
# Skip through preamble of file to find start of list
-while (($_ = <$HTML>) !~ /^<div class="contents">/ ) {;}
-while (($_ = <$HTML>) !~ /^<ul class="no-bullet">/ ) {;}
+while (defined ($_ = <$HTML>) and ! /^<div class="contents">/ ) {;}
+while (defined ($_ = <$HTML>)
+ and ! /^<ul class="(?:no-bullet|toc-numbered-mark)">/ ) {;}
+
+die "index.html: reached EOF without finding data start pattern" if eof ($HTML);
$level = 0;
while (<$HTML>)
@@ -68,7 +71,11 @@
open ($HTML, "<", $htmlfname) or die "Unable to open $htmlfname";
# Skip through preamble of file to find start of list
-while (($_ = <$HTML>) !~ /^<table class="index-fn/ ) {;}
+while (defined ($_ = <$HTML>)
+ and ! /^<table class="(?:index-fn|fn-entries)/ ) {;}
+
+die "Function-Index.html: reached EOF without finding data start pattern"
+ if eof ($HTML);
while (<$HTML>)
{

View File

@ -66,7 +66,7 @@ fi \
# octave can find the package, then remove 'octave_packages' again, and re-strip
# any shared objects.
%octave_pkg_check \
%octave_cmd pkg("prefix","%{buildroot}%{octprefix}","%{buildroot}%{octarchprefix}");pkg("local_list",fullfile("%{buildroot}%{octshareprefix}","octave_packages"));pkg("list");pkg("install","-verbose",glob("%{_builddir}/%{buildsubdir}/build/%{octpkg}-%{version}-*.tar.gz"){1,1});pkg("load","%{octpkg}");pkg("list");runtests("%{buildroot}%{octpkgdir}");unlink(pkg("local_list")); \
%octave_cmd pkg("prefix","%{buildroot}%{octprefix}","%{buildroot}%{octarchprefix}");pkg("local_list",fullfile("%{buildroot}%{octshareprefix}","octave_packages"));pkg("list");pkg("install","-verbose",glob("%{_builddir}/%{buildsubdir}/build/%{octpkg}-%{version}-*.tar.gz"){1,1});pkg("load","%{octpkg}");pkg("list");oruntests("%{buildroot}%{octpkgdir}");unlink(pkg("local_list")); \
/usr/lib/rpm/brp-strip %{__strip} \
%{nil}

View File

@ -1,5 +1,5 @@
# From src/version.h:#define OCTAVE_API_VERSION
%global octave_api api-v57
%global octave_api api-v58
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
@ -36,8 +36,8 @@
Name: octave
Epoch: 6
Version: 7.3.0
Release: 4%{?dist}
Version: 8.4.0
Release: 1.0.riscv64%{?dist}
Summary: A high-level language for numerical computations
License: GPLv3+
URL: http://www.octave.org
@ -50,9 +50,6 @@ Source2: xorg.conf
%if !%{builddocs}
Source3: octave-%{version}-docs.tar.xz
%endif
# Infinite loop with texinfo 7
# https://savannah.gnu.org/bugs/index.php?63810
Patch0: https://hg.savannah.gnu.org/hgweb/octave/raw-rev/ab6d276f6fcb
# Add needed time.h header
Patch2: octave-time.patch
@ -117,7 +114,7 @@ BuildRequires: mesa-libGL-devel
BuildRequires: mesa-libGLU-devel
BuildRequires: mesa-libOSMesa-devel
BuildRequires: ncurses-devel
BuildRequires: pcre-devel
BuildRequires: pcre2-devel
BuildRequires: portaudio-devel
BuildRequires: qhull-devel
BuildRequires: qrupdate-devel
@ -269,8 +266,7 @@ fi
%endif
--with-qrupdate \
--with-amd --with-umfpack --with-colamd --with-ccolamd --with-cholmod \
--with-cxsparse \
--disable-jit
--with-cxsparse
# Check that octave_api is set correctly (autogenerated file)
make liboctave/version.h
@ -347,7 +343,7 @@ do
ARCH=\$(uname -m)
case \$ARCH in
x86_64 | ia64 | s390x | aarch64 | ppc64 | ppc64le) LIB_DIR=/usr/lib64
x86_64 | ia64 | s390x | aarch64 | ppc64 | ppc64le | riscv64) LIB_DIR=/usr/lib64
SECONDARY_LIB_DIR=/usr/lib
;;
* )
@ -393,8 +389,9 @@ $Xorg -noreset +extension GLX +extension RANDR +extension RENDER -logfile ./xorg
sleep 2
export DISPLAY=:99
export FLEXIBLAS=netlib
%ifarch ppc64le
%ifarch ppc64le riscv64
# liboctave/array/dMatrix.cc-tst segfaults
# riscv: image/getframe.m ...............................................LLVM ERROR: Relocation type not implemented yet!
make check || :
%else
make check
@ -415,9 +412,9 @@ make check
%{_bindir}/octave*
%dir %{_libdir}/octave/
%dir %{_libdir}/octave/%{version}
%{_libdir}/octave/%{version}/liboctave.so.9*
%{_libdir}/octave/%{version}/liboctgui.so.8*
%{_libdir}/octave/%{version}/liboctinterp.so.10*
%{_libdir}/octave/%{version}/liboctave.so.10*
%{_libdir}/octave/%{version}/liboctgui.so.9*
%{_libdir}/octave/%{version}/liboctinterp.so.11*
%{_libdir}/octave/%{version}/mkoctfile-%{version}
%{_libdir}/octave/%{version}/oct/
%{_libdir}/octave/%{version}/octave-config-%{version}
@ -461,6 +458,34 @@ make check
%{_pkgdocdir}/refcard*.pdf
%changelog
* Thu Nov 09 2023 David Abdurachmanov <davidlt@rivosinc.com> - 6:8.4.0-1.0.riscv64
- Add support for riscv64
* Tue Nov 07 2023 Orion Poplawski <orion@nwra.com> - 6:8.4.0-1
- Update to 8.4.0
* Mon Oct 16 2023 Antonio Trande <sagitter@fedoraproject.org> - 6:8.3.0-2
- Rebuild for sundials-6.6.1
* Sun Aug 13 2023 Orion Poplawski <orion@nwra.com> - 6:8.3.0-1
- Update to 8.3.0
* Thu Aug 10 2023 Tom Callaway <spot@fedoraproject.org> - 6:8.2.0-4
- rebuild for new qhull
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 6:8.2.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Apr 25 2023 Orion Poplawski <orion@nwra.com> - 6:8.2.0-2
- Rebuild for sundials 6.5.1
* Mon Apr 17 2023 Orion Poplawski <orion@nwra.com> - 6:8.2.0-1
- Update to 8.2.0
* Sat Apr 08 2023 Orion Poplawski <orion@nwra.com> - 6:8.1.0-1
- Update to 8.1.0
- Build with pcre2 (bz#2128340)
* Fri Mar 17 2023 Orion Poplawski <orion@nwra.com> - 6:7.3.0-4
- Add upstream patch to fix doc builds

View File

@ -1 +1 @@
SHA512 (octave-7.3.0.tar.lz) = 8448aa01fa2a0650993ff9e4a4a017c243d5bf4af17cc321458e583913f4a71c2a34d60c1f79b8fedd5f00604f0960b94a4e2c0d9b87f07b13e969afe2951aa2
SHA512 (octave-8.4.0.tar.lz) = 9687de436a1fdeed89061a3bae0749f506ae2c14eb444a0ca14eec80fbcbbc9cdc7a4ae6e90637d05a009f06650a1a11a4d65a2893d90450663dc7e2e9364acc