- Updated pkg.m patch

This commit is contained in:
Orion Poplawski 2007-10-16 19:46:53 +00:00
parent 37a1e27d41
commit ab4637e162
2 changed files with 27 additions and 1 deletions

21
octave-2.9.15-pkg.patch Normal file
View File

@ -0,0 +1,21 @@
Index: scripts/pkg/pkg.m
===================================================================
RCS file: /usr/local/cvsroot/octave/scripts/pkg/pkg.m,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- scripts/pkg/pkg.m 12 Oct 2007 21:27:23 -0000 1.63
+++ scripts/pkg/pkg.m 14 Oct 2007 19:28:42 -0000 1.64
@@ -1095,7 +1095,11 @@
endif
## Split into architecture dependent and independent files
- idx = cellfun (@(x) is_architecture_dependent (x), filenames);
+ if (isempty (filenames))
+ idx = [];
+ else
+ idx = cellfun (@(x) is_architecture_dependent (x), filenames);
+ endif
archdependent = filenames (idx);
archindependent = filenames (!idx);

View File

@ -3,13 +3,14 @@
Name: octave
Version: 2.9.15
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A high-level language for numerical computations
Epoch: 6
Group: Applications/Engineering
License: GPLv2+
Source: ftp://ftp.octave.org/pub/octave/bleeding-edge/octave-%{version}.tar.bz2
Patch: octave-2.9.15-pkg.patch
URL: http://www.octave.org
Requires: gnuplot less info texinfo
Requires(post): /sbin/install-info
@ -53,6 +54,7 @@ applications which use GNU Octave.
%prep
%setup -q
%patch -p0 -b .pkg
# Check that octave_api is set correctly
if ! grep -q '^#define OCTAVE_API_VERSION "%{octave_api}"' src/version.h
then
@ -140,6 +142,9 @@ fi
%changelog
* Tue Oct 16 2007 Orion Poplawski <orion@ora.nwra.com> 2.9.15-2
- Updated pkg.m patch
* Mon Oct 15 2007 Quentin Spencer <qspencer@users.sourceforge.net> 2.9.15-1
- New release. Remove old patch.