File mingw64-Ipopt.spec of Package mingw64-Ipopt
#
# spec file for package mingw64-Ipopt
#
# Copyright (c) 2015 SUSE LINUX Products 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 http://bugs.opensuse.org/
#
%define _basename Ipopt
Name: mingw64-%{_basename}
Version: 3.12.2
Release: 0
#!BuildIgnore: post-build-checks
Summary: Interior Point OPTimizer
License: EPL-1.0
Group: Applications/Engineering
Url: http://projects.coin-or.org/%{_basename}
Source0: http://www.coin-or.org/download/pkgsource/%{_basename}/%{_basename}-%{version}.tgz
Patch0: %{_basename}-docdir.patch
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-gcc-fortran
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-ampl-mp-devel
BuildRequires: mingw64-lapack-devel
BuildRequires: mingw64-mumps-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
Ipopt (Interior Point OPTimizer, pronounced eye-pea-Opt) is a software
package for large-scale nonlinear optimization. It is designed to find
(local) solutions of mathematical optimization problems of the from
min f(x)
x in R^n
s.t. g_L <= g(x) <= g_U
x_L <= x <= x_U
where f(x): R^n --> R is the objective function, and g(x): R^n --> R^m are
the constraint functions. The vectors g_L and g_U denote the lower and upper
bounds on the constraints, and the vectors x_L and x_U are the bounds on
the variables x. The functions f(x) and g(x) can be nonlinear and nonconvex,
but should be twice continuously differentiable. Note that equality
constraints can be formulated in the above formulation by setting the
corresponding components of g_L and g_U to the same value.
%package devel
Summary: %{_basename} development files
Group: Development/Libraries/C and C++
%description devel
Ipopt (Interior Point OPTimizer, pronounced eye-pea-Opt) is a software
package for large-scale nonlinear optimization. It is designed to find
(local) solutions of mathematical optimization problems of the from
min f(x)
x in R^n
s.t. g_L <= g(x) <= g_U
x_L <= x <= x_U
where f(x): R^n --> R is the objective function, and g(x): R^n --> R^m are
the constraint functions. The vectors g_L and g_U denote the lower and upper
bounds on the constraints, and the vectors x_L and x_U are the bounds on
the variables x. The functions f(x) and g(x) can be nonlinear and nonconvex,
but should be twice continuously differentiable. Note that equality
constraints can be formulated in the above formulation by setting the
corresponding components of g_L and g_U to the same value.
%_mingw64_debug_package
%prep
%setup -q -n %{_basename}-%{version}
%patch -P 0 -p1
%build
%{_mingw64_configure} \
--enable-shared \
coin_skip_warn_cflags=yes \
coin_skip_warn_cxxflags=yes \
lt_cv_deplibs_check_method=pass_all \
--with-asl-lib=-lasl \
--with-asl-incdir=%{_mingw64_includedir}/asl \
--with-mumps-lib=-ldmumps \
--with-mumps-incdir=%{_mingw64_includedir}/mumps
%{_mingw64_make} %{?_smp_mflags}
%install
%{_mingw64_make} DESTDIR=%{buildroot} install
%files
%defattr(-,root,root,-)
%{_mingw64_bindir}/ipopt.exe
%{_mingw64_bindir}/libipopt-*.dll
%{_mingw64_bindir}/libipoptamplinterface-*.dll
%dir %{_mingw64_docdir}/%{_basename}
%doc %{_mingw64_docdir}/%{_basename}/AUTHORS
%doc %{_mingw64_docdir}/%{_basename}/LICENSE
%doc %{_mingw64_docdir}/%{_basename}/README
%files devel
%defattr(-,root,root,-)
%{_mingw64_libdir}/libipopt.dll.a
%{_mingw64_libdir}/libipoptamplinterface.dll.a
%{_mingw64_includedir}/coin/
%{_mingw64_libdir}/pkgconfig/
%doc %{_mingw64_docdir}/%{_basename}/*_addlibs_*.txt
%changelog