Package octave-integration: Specfile

%define oldname octave-
%define octave_pkg_version 1.0.7
%define octave_pkg_name integration
%define octave_descr_name Integration
Name: octave-integration
Version: 1.0.7
Release: alt2.M60T.1
Summary: Numerical Integration Toolbox

Group: Sciences/Mathematics
License: GPL version 2 or later
URL: http://octave.sf.net

Source0: in/%octave_pkg_name-%version.tar.gz

BuildRequires: octave-devel
%if_with _octave_arch
BuildRequires: gcc-c++ libfftw3-devel libhdf5-devel liblapack-devel libncurses-devel libreadline-devel octave-devel
%else
BuildArch: noarch
%endif
Provides: octave(integration) = %version
# Depends: octave (>= 2.9.7)
Requires: octave >= 2.9.7


%description
Octave-Forge - Extra packages for GNU Octave.
This package contains the %octave_descr_name GNU Octave extension.

Extension Description:
Toolbox for 1-D, 2-D, and n-D Numerical Integration

%prep
%setup -n %octave_pkg_name-%version

%build
octave -q -H --no-site-file --eval "pkg build -nodeps . %SOURCE0"

%install
mkdir -p %buildroot%_datadir/octave/packages
mkdir -p %buildroot%_libdir/octave/packages
octave -q -H --no-site-file --eval "pkg prefix %buildroot%_datadir/octave/packages %buildroot%_libdir/octave/packages; pkg install -local -nodeps %octave_pkg_name-%octave_pkg_version.tar.gz"

%files
%_datadir/octave/packages/%octave_pkg_name-%octave_pkg_version
%if_with _octave_arch
%_libdir/octave/packages/%octave_pkg_name-%octave_pkg_version
%endif

%changelog
* Sun Aug 23 2015 Cronport Service <cronport@altlinux.org> 1.0.7-alt2.M60T.1
- backport

* Wed Jan 22 2014 Cronport Service <cronport@altlinux.org> 1.0.7-alt1.M60T.1
- backport

* Mon Oct 14 2013 Cronport Service <cronport@altlinux.org> 1.0.7-alt0.M60T.1
- backport

* Mon Nov 28 2011 Igor Vlasenko <viy@altlinux.ru> 1.0.7-alt1
- initial import by octave-package-builder