diff --git a/README.md b/README.md index 7cbbd1a..2434c93 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,8 @@ # octave +GNU Octave is a high-level language, primarily intended for numerical computations. +It provides a convenient command line interface for solving linear and nonlinear problems numerically, and for performing other numerical experiments using a language that is mostly compatible with Matlab. +It may also be used as a batch-oriented language. +Octave has extensive tools for solving common numerical linear algebra problems, finding the roots of nonlinear equations, integrating ordinary functions, manipulating polynomials, and integrating ordinary differential and differential-algebraic equations. +It is easily extensible and customizable via user-defined functions written in Octave's own language, or using dynamically loaded modules written in C++, C, Fortran, or other languages. + diff --git a/octave-3.4.2-curl_remove_include.patch b/octave-3.4.2-curl_remove_include.patch new file mode 100644 index 0000000..d6858f1 --- /dev/null +++ b/octave-3.4.2-curl_remove_include.patch @@ -0,0 +1,11 @@ +diff -Nru octave-3.4.2.orig//src/DLD-FUNCTIONS/urlwrite.cc octave-3.4.2/src/DLD-FUNCTIONS/urlwrite.cc +--- octave-3.4.2.orig//src/DLD-FUNCTIONS/urlwrite.cc 2011-06-09 19:22:32.000000000 +0200 ++++ octave-3.4.2/src/DLD-FUNCTIONS/urlwrite.cc 2011-07-22 18:16:54.393527779 +0200 +@@ -52,7 +52,6 @@ + + #include + #include +-#include + #include + + static int diff --git a/octave.png b/octave.png new file mode 100644 index 0000000..fa8f8a0 Binary files /dev/null and b/octave.png differ diff --git a/octave.spec b/octave.spec new file mode 100644 index 0000000..40e53bb --- /dev/null +++ b/octave.spec @@ -0,0 +1,214 @@ +Name: octave +Version: 3.8.1 +Release: 1mamba +Summary: A high-level language, primarily intended for numerical computations +Group: Applications/Mathematics +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.octave.org +Source0: ftp://ftp.gnu.org/gnu/octave/octave-%{version}.tar.bz2 +Source1: octave.png +Patch0: %{name}-3.4.2-curl_remove_include.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: gcc-fortran +BuildRequires: glibc-devel +BuildRequires: gnuplot +BuildRequires: GraphicsMagick-devel +BuildRequires: libblas-devel +BuildRequires: libbzip2-devel +BuildRequires: libcurl-devel +BuildRequires: libfftw-devel +BuildRequires: libfltk-devel +BuildRequires: libfontconfig-devel +BuildRequires: libfreetype-devel +BuildRequires: libgcc +BuildRequires: libGL-devel +BuildRequires: libGLU-devel +BuildRequires: libgomp-devel +BuildRequires: libhdf5-devel +BuildRequires: liblapack-devel +BuildRequires: libncurses-devel +BuildRequires: libpcre-devel +BuildRequires: libreadline-devel +BuildRequires: libstdc++6-devel +BuildRequires: libsuitesparse-devel +BuildRequires: libX11-devel +BuildRequires: libXext-devel +BuildRequires: libXft-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +Requires: gnuplot +BuildRoot: %{_tmppath}/%{name}-%{version}-root +Requires(post):%{__install_info} + +%description +GNU Octave is a high-level language, primarily intended for numerical computations. +It provides a convenient command line interface for solving linear and nonlinear problems numerically, and for performing other numerical experiments using a language that is mostly compatible with Matlab. +It may also be used as a batch-oriented language. +Octave has extensive tools for solving common numerical linear algebra problems, finding the roots of nonlinear equations, integrating ordinary functions, manipulating polynomials, and integrating ordinary differential and differential-algebraic equations. +It is easily extensible and customizable via user-defined functions written in Octave's own language, or using dynamically loaded modules written in C++, C, Fortran, or other languages. + +%package devel +Summary: Development headers and files for Octave +Group: Development/Libraries +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +GNU Octave is a high-level language, primarily intended for numerical computations. +It provides a convenient command line interface for solving linear and nonlinear problems numerically, and for performing other numerical experiments using a language that is mostly compatible with Matlab. +It may also be used as a batch-oriented language. +Octave has extensive tools for solving common numerical linear algebra problems, finding the roots of nonlinear equations, integrating ordinary functions, manipulating polynomials, and integrating ordinary differential and differential-algebraic equations. +It is easily extensible and customizable via user-defined functions written in Octave's own language, or using dynamically loaded modules written in C++, C, Fortran, or other languages. + +This package contains static libraries and header files need for development. + +%prep +%setup -q +#%patch0 -p1 + +%build +%configure \ + --enable-shared=yes \ + --enable-static=no + +%make || make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +install -d %{buildroot}%{_datadir}/pixmaps +install -D -m 644 %{SOURCE1} \ + %{buildroot}%{_datadir}/pixmaps/%{name}.png + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +/sbin/ldconfig +%install_info %{name}.info + +%preun +%uninstall_info %{name}.info +: + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/octave +%{_bindir}/octave-%{version} +%{_bindir}/octave-cli +%{_bindir}/octave-cli-%{version} +%dir %{_libdir}/%{name}/%{version}/oct +%{_libdir}/%{name}/%{version}/oct/* +%{_libdir}/%{name}/%{version}/lib*.so.* +%dir %{_datadir}/%{name} +%{_datadir}/%{name}/* +%{_datadir}/applications/www.octave.org-%{name}.desktop +%{_datadir}/pixmaps/%{name}.png +%dir %{_libexecdir}/%{name}/%{version} +%{_libexecdir}/%{name}/%{version}/* +%{_infodir}/*.info.* +%{_infodir}/%{name}.info-* +%{_mandir}/man1/%{name}.* +%doc COPYING + +%files devel +%defattr(-,root,root) +%{_bindir}/mkoctfile +%{_bindir}/mkoctfile-%{version} +#%{_bindir}/%{name}-bug +#%{_bindir}/%{name}-bug-%{version} +%{_bindir}/%{name}-config +%{_bindir}/%{name}-config-%{version} +%dir %{_includedir}/%{name}-%{version} +%{_includedir}/%{name}-%{version}/* +#%{_libexecdir}/%{name}/ls-R +%{_libdir}/%{name}/%{version}/lib*.la +%{_libdir}/%{name}/%{version}/lib*.so +%{_mandir}/man1/mkoctfile.* +%{_mandir}/man1/%{name}-* +%doc ChangeLog README NEWS INSTALL + +%changelog +* Fri Mar 07 2014 Automatic Build System 3.8.1-1mamba +- automatic version update by autodist + +* Sat Dec 28 2013 Automatic Build System 3.8.0-1mamba +- automatic version update by autodist + +* Mon Mar 11 2013 Silvan Calarco 3.6.4-2mamba +- rebuilt with libhdf5 1.8.10 + +* Thu Feb 28 2013 Automatic Build System 3.6.4-1mamba +- automatic version update by autodist + +* Wed Sep 05 2012 Automatic Build System 3.6.3-1mamba +- automatic version update by autodist + +* Thu May 31 2012 Automatic Build System 3.6.2-1mamba +- automatic version update by autodist + +* Tue Mar 06 2012 Silvan Calarco 3.6.1-2mamba +- rebuilt with libsuitesparse + +* Thu Feb 23 2012 Automatic Build System 3.6.1-1mamba +- automatic version update by autodist + +* Tue Oct 11 2011 Automatic Build System 3.4.3-1mamba +- automatic version update by autodist + +* Thu Jul 21 2011 Automatic Build System 3.4.2-1mamba +- update to 3.4.2 + +* Sat Feb 19 2011 Silvan Calarco 3.2.4-2mamba +- rebuilt with ghostscript 9.01 + +* Sat Jan 30 2010 Automatic Build System 3.2.4-1mamba +- automatic update by autodist + +* Thu Oct 01 2009 Automatic Build System 3.2.3-1mamba +- automatic update by autodist + +* Fri Jul 24 2009 Automatic Build System 3.2.2-1mamba +- automatic update by autodist + +* Thu Jun 11 2009 Automatic Build System 3.2.0-1mamba +- automatic update by autodist + +* Sat Apr 11 2009 Silvan Calarco 3.0.5-1mamba +- automatic update by autodist + +* Wed Jan 21 2009 Silvan Calarco 3.0.3-1mamba +- automatic update by autodist + +* Fri Sep 12 2008 Silvan Calarco 3.0.2-1mamba +- update to 3.0.2 + +* Sat May 19 2007 Silvan Calarco 2.1.73-4mamba +- rebuilt + +* Sun Feb 18 2007 Silvan Calarco 2.1.73-3qilnx +- rebuilt + +* Wed Jun 14 2006 Stefano Cotta Ramusino 2.1.73-2qilnx +- specfile fixed and updated + +* Fri May 26 2006 Silvan Calarco 2.1.73-1qilnx +- update to version 2.1.73 by autospec + +* Thu Aug 25 2005 Massimo Pintore 2.1.71-1qilnx +- update to version 2.1.71 by autospec +- split into main and devel packages + +* Thu Apr 21 2005 Alessandro Ramazzina 2.1.69-2qilnx +- rebuild and moved from devel-contrib repository to devel repository + +* Mon Apr 4 2005 Matteo Bernasconi 2.1.69-1qilnx +- update to the new test version + +* Mon Sep 27 2004 Matteo Bernasconi 2.1.59-1qilnx +- first build