File octave-forge-optim.spec of Package octave-forge-optim

# spec file for package octave-forge-optim
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

%define octpkg  optim
Name:           octave-forge-%{octpkg}
Version:        1.4.1
Release:        0
Summary:        Non-linear optimization toolkit for Octave
License:        GPL-3.0+
Group:          Productivity/Scientific/Math
# PATCH-FIX-UPSTREAM optim-gcc-errors.patch -- Fix no-return-in-nonvoid-function
Patch1:         optim-gcc-errors.patch
# PATCH-FIX-OPENSUSE optim-no-doc-rebuild.patch -- Disable documentation rebuild
Patch2:         optim-no-doc-rebuild.patch
BuildRequires:  blas-devel
BuildRequires:  gcc-c++
BuildRequires:  hdf5-devel
BuildRequires:  lapack-devel
BuildRequires:  octave-devel
Requires:       octave-cli >= 3.6.0
Requires:       octave-forge-struct >= 1.0.10

Non-linear optimization toolkit.
This is part of Octave-Forge project.

%setup -q -c %{name}-%{version}
%patch1 -p1
%patch2 -p1




%octave --eval "pkg rebuild"

%octave --eval "pkg rebuild"