Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.1:Update
nlopt
nlopt.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File nlopt.spec of Package nlopt
# # spec file for package nlopt # # 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/ # Name: nlopt Version: 2.3 Release: 0 Summary: A library for nonlinear optimization License: LGPL-2.0 Group: Development/Libraries/C and C++ Url: http://ab-initio.mit.edu/wiki/index.php/NLopt Source0: http://ab-initio.mit.edu/nlopt/%{name}-%{version}.tar.gz # PATCH-FIX-UPSTREAM nlopt-2.3-no-return-in-nonvoid-function.patch Patch0: nlopt-2.3-no-return-in-nonvoid-function.patch # PATCH-FIX-UPSTREAM nlopt-2.3-pkgconfig.patch Patch1: nlopt-2.3-pkgconfig.patch Patch2: pythondir.patch BuildRequires: gcc-c++ BuildRequires: hdf5-devel BuildRequires: octave-devel BuildRequires: pkgconfig BuildRequires: python-numpy-devel %if 0%{?suse_version} <= 1110 %{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %else Requires: python(abi) >= %{py_ver} %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description NLopt is a free/open-source library for nonlinear optimization, providing a common interface for a number of different free optimization routines available online as well as original implementations of various other algorithms. %package -n lib%{name}0 Summary: A library for nonlinear optimization Group: System/Libraries %description -n lib%{name}0 NLopt is a free/open-source library for nonlinear optimization, providing a common interface for a number of different free optimization routines available online as well as original implementations of various other algorithms. %package devel Summary: Development files for %{name} Group: Development/Libraries/C and C++ Requires: lib%{name}0 = %{version} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package -n python-%{name} Summary: A library for nonlinear optimization Group: Development/Libraries/Python Requires: python-numpy %description -n python-%{name} NLopt is a free/open-source library for nonlinear optimization, providing a common interface for a number of different free optimization routines available online as well as original implementations of various other algorithms. %package -n octave-nlopt_optimize Summary: A library for nonlinear optimization Group: Productivity/Scientific/Math Requires: octave %description -n octave-nlopt_optimize NLopt is a free/open-source library for nonlinear optimization, providing a common interface for a number of different free optimization routines available online as well as original implementations of various other algorithms. %prep %setup -q %patch0 -p1 %patch1 %patch2 -p1 %build %configure --enable-shared \ --disable-static make %{?_smp_mflags} %install %makeinstall find %{buildroot} -name '*.la' -exec rm -f {} ';' %post -n lib%{name}0 -p /sbin/ldconfig %postun -n lib%{name}0 -p /sbin/ldconfig %files -n lib%{name}0 %defattr(-,root,root,-) %{_libdir}/*.so.* %files devel %defattr(-,root,root,-) %doc AUTHORS COPYING NEWS README TODO %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/%{name}.pc %{_mandir}/man3/%{name}.* %files -n python-%{name} %defattr(-,root,root,-) %doc COPYING %{python_sitearch}/* %files -n octave-nlopt_optimize %defattr(-,root,root,-) %doc COPYING %dir %{_libdir}/octave/*/site %dir %{_libdir}/octave/*/site/oct %dir %{_libdir}/octave/*/site/oct/* %{_libdir}/octave/*/site/oct/*/*.oct %{_datadir}/octave/*/site/m/* %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