SPECS: octave-forge.spec - first attempt at new build

baggins baggins at pld-linux.org
Fri Dec 7 23:24:00 CET 2007


Author: baggins                      Date: Fri Dec  7 22:24:00 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- first attempt at new build

---- Files affected:
SPECS:
   octave-forge.spec (1.14 -> 1.15) 

---- Diffs:

================================================================
Index: SPECS/octave-forge.spec
diff -u SPECS/octave-forge.spec:1.14 SPECS/octave-forge.spec:1.15
--- SPECS/octave-forge.spec:1.14	Tue Feb 13 08:16:50 2007
+++ SPECS/octave-forge.spec	Fri Dec  7 23:23:55 2007
@@ -2,25 +2,25 @@
 Summary:	Extensions for GNU Octave
 Summary(pl.UTF-8):	Rozszerzenia dla GNU Octave
 Name:		octave-forge
-Version:	2005.06.13
-Release:	1
+Version:	20071014
+Release:	0.1
 License:	GPL
 Group:		Applications/Math
-Source0:	http://dl.sourceforge.net/octave/%{name}-%{version}.tar.gz
-# Source0-md5:	cf82a74d27636abf07f1732b4851f2e2
-Patch0:		%{name}-make.patch
+Source0:	http://dl.sourceforge.net/octave/%{name}-bundle-%{version}.tar.gz
+# Source0-md5:	346f61edc714515701d2b293d4a266d3
 URL:		http://octave.sourceforge.net/
 BuildRequires:	GiNaC-devel
 BuildRequires:	XFree86-devel
 BuildRequires:	autoconf
+BuildRequires:	bash
 BuildRequires:	fftw3-devel
-BuildRequires:	gcc-g77
+BuildRequires:	gcc-fortran
 BuildRequires:	gsl-devel
 BuildRequires:	hdf5-devel
 BuildRequires:	lapack-devel
 BuildRequires:	libjpeg-devel
 BuildRequires:	libpng-devel
-BuildRequires:	octave-devel >= 2:2.1.58
+BuildRequires:	octave-devel >= 2:2.9.15
 BuildRequires:	pcre-devel
 BuildRequires:	qhull-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -41,14 +41,31 @@
 do istniejącego pakietu, octave-forge jest odpowiednim miejscem.
 
 %prep
-%setup -q
-%patch0 -p1
+%setup -q -n %{name}-bundle-%{version}
 
 %build
-export CXXFLAGS="%{rpmcflags} -fno-use-cxa-atexit"
-./autogen.sh
-%configure
-%{__make}
+CFLAGS="%{rpmcflags} -I/usr/include/ncurses" ; export CFLAGS
+for d in main extras ; do
+	cd $d
+	for pkg in *.tar.gz ; do
+		P=${pkg%%.tar.gz}
+		tar zxf $pkg
+		cd $P
+		if [ -e src/autogen.sh ]; then
+			cd src
+			/bin/bash ./autogen.sh
+			cd ..
+		fi
+		if [ -e src/configure ]; then
+			cd src
+			%configure
+			cd ..
+		fi
+		%{__make}
+		cd ..
+	done
+	cd ..
+done
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -102,7 +119,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
-Revision 1.14  2007-02-13 07:16:50  glen
+Revision 1.15  2007-12-07 22:23:55  baggins
+- first attempt at new build
+
+Revision 1.14  2007/02/13 07:16:50  glen
 - tabs in preamble
 
 Revision 1.13  2007/02/12 00:49:14  baggins
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/octave-forge.spec?r1=1.14&r2=1.15&f=u



More information about the pld-cvs-commit mailing list