- Update to latest git version (00.8.2+git20180625) * Python3 support * Various bugfixes - Replace pyipopt-dependency-fix.patch with updated 0001-Fix-dependencies-and-pathes.patch - first package for pyipopt OBS-URL: https://build.opensuse.org/request/show/992372 OBS-URL: https://build.opensuse.org/package/show/science/python-pyipopt?expand=0&rev=2
59 lines
1.6 KiB
RPMSpec
59 lines
1.6 KiB
RPMSpec
#
|
|
# spec file for package python-pyipopt
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define modname pyipopt
|
|
Name: python-pyipopt
|
|
Version: 0.8.2+git20180625
|
|
Release: 0
|
|
Summary: A Python connector to Ipopt
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Python
|
|
Url: https://github.com/xuy/pyipopt
|
|
Source0: %{modname}-%{version}.tar.xz
|
|
# PATCH-FIX-OPENSUSE
|
|
Patch0: 0001-Fix-dependencies-and-pathes.patch
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module numpy-devel}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: Ipopt-devel
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: mumps-devel
|
|
BuildRequires: metis-devel
|
|
BuildRequires: python-rpm-macros
|
|
|
|
%python_subpackages
|
|
|
|
%description
|
|
PyIpopt is a python module that allows you to use IPOPT in Python.
|
|
|
|
%prep
|
|
%setup -q -n %{modname}-%{version}
|
|
%patch0 -p1
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
|
|
%files %{python_files}
|
|
%doc Changelog README.md
|
|
%{python_sitearch}/*
|
|
|
|
%changelog
|