Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:smarty12:Python
python-slsqp
python-slsqp.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-slsqp.spec of Package python-slsqp
# # spec file for package python-slsqp # # Copyright (c) 2013 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 modname slsqp Name: python-%{modname} Version: 1.0.1 Release: 0 Summary: A Sequential Least Squares Programming optimizer License: MIT Group: Development/Libraries/Python Source0: http://www.openmdao.org/dists/%{modname}-%{version}.tar.gz Url: http://www.openmdao.org %if 0%{?suse_version} <= 1110 %{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %endif Requires: python-numpy BuildRequires: fdupes BuildRequires: python-numpy-devel BuildRequires: python-setuptools BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This package contains a python wrapper for the Sequential Least Squares Programming optimizer (SLSQP). The wrapper has been developed and modified by and fo the openmdao optimization framework project. %prep %setup -q -n %{modname}-%{version} %build python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} # add minsing __init__.py to prevent import error echo "import %{modname}" > %{buildroot}%{python_sitearch}/%{modname}/__init__.py rm %{buildroot}%{python_sitearch}/{LICENSE,README} %fdupes -s %{buildroot}%{python_sitearch} %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc LICENSE README %{python_sitearch}/%{modname} %{python_sitearch}/%{modname}-%{version}-py%{py_ver}.egg-info %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor