[octave-symbolic] make it buildable without an older version of octave-symbolic installed
sailer
sailer at fedoraproject.org
Mon Oct 24 12:46:19 UTC 2011
commit a5be0d069a679f6d87142740b71aa1d6786094fe
Author: Thomas Sailer <t.sailer at alumni.ethz.ch>
Date: Mon Oct 24 14:45:59 2011 +0200
make it buildable without an older version of octave-symbolic installed
octave-symbolic.patch | 7 +++++++
octave-symbolic.spec | 5 +++++
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/octave-symbolic.patch b/octave-symbolic.patch
new file mode 100644
index 0000000..a2c3bee
--- /dev/null
+++ b/octave-symbolic.patch
@@ -0,0 +1,7 @@
+--- PKG_ADD.build 2011-10-24 12:34:21.000000000 +0200
++++ PKG_ADD 2011-10-24 12:34:37.000000000 +0200
+@@ -41,4 +41,3 @@
+ autoload ("syminfo", fullfile (fileparts (mfilename ("fullpath")), "symbols.oct"));
+ autoload ("symlsolve", fullfile (fileparts (mfilename ("fullpath")), "symbols.oct"));
+ autoload ("sumterms", fullfile (fileparts (mfilename ("fullpath")), "symbols.oct"));
+-symbols ();
diff --git a/octave-symbolic.spec b/octave-symbolic.spec
index 04ccc12..f1b0f08 100644
--- a/octave-symbolic.spec
+++ b/octave-symbolic.spec
@@ -9,6 +9,9 @@ License: GPLv2+
URL: http://octave.sourceforge.net/symbolic/
Source0: http://downloads.sourceforge.net/octave/%{octpkg}-%{version}.tar.gz
+# enable building of octave-symbolic without (a previous version of) octave-symbolic being installed
+Patch0: octave-symbolic.patch
+
BuildRequires: octave-devel
BuildRequires: ginac-devel
@@ -25,6 +28,7 @@ Symbolic toolbox based on GiNaC and CLN.
%prep
%setup -q -n %{octpkg}
+%patch0 -p0 -b .build
%build
%octave_pkg_build
@@ -33,6 +37,7 @@ Symbolic toolbox based on GiNaC and CLN.
rm -rf %{buildroot}
%octave_pkg_install
rm -f %{buildroot}/%{octpkgdir}/doc/INSTALL
+echo "symbols ();" >> echo `ls %{buildroot}/%{octpkglibdir}/*/PKG_ADD`
%post
%octave_cmd pkg rebuild
More information about the scm-commits
mailing list