Hello community, here is the log from the commit of package nlopt for openSUSE:Factory checked in at 2013-06-13 17:12:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/nlopt (Old) and /work/SRC/openSUSE:Factory/.nlopt.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nlopt" Changes: -------- New Changes file: --- /dev/null 2013-06-12 16:57:03.272031756 +0200 +++ /work/SRC/openSUSE:Factory/.nlopt.new/nlopt.changes 2013-06-13 17:12:58.000000000 +0200 @@ -0,0 +1,26 @@ +------------------------------------------------------------------- +Sun Feb 24 12:00:14 UTC 2013 - [email protected] + +- remove %%clean section +- add minimal single-line comment in spec file for patch0 +- add files on %%doc section +- spec file cleanup +- add python(abi) requirements recent recent products +- update source url + +------------------------------------------------------------------- +Sun Aug 19 18:40:59 UTC 2012 - [email protected] + +- again fix build on x86_64 + +------------------------------------------------------------------- +Sun Aug 19 18:13:53 UTC 2012 - [email protected] + +- fix build on x86_64 +- fix package group names + +------------------------------------------------------------------- +Sun Aug 19 17:34:54 UTC 2012 - [email protected] + +- first package + New: ---- nlopt-2.3-no-return-in-nonvoid-function.patch nlopt-2.3.tar.gz nlopt.changes nlopt.spec ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nlopt.spec ++++++ # # 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 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 %build %configure --enable-shared \ --disable-static make %{?_smp_mflags} %install %makeinstall find %{buildroot} -name '*.la' -exec rm -f {} ';' %ifarch x86_64 test -d %{buildroot}%{_prefix}/lib && \ mv %{buildroot}%{_prefix}/lib/python*/* %{buildroot}%{python_sitearch} && \ rm -rf %{buildroot}%{_prefix}/lib %endif %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 ++++++ nlopt-2.3-no-return-in-nonvoid-function.patch ++++++ diff -urN nlopt-2.3-orig/api/options.c nlopt-2.3/api/options.c --- nlopt-2.3-orig/api/options.c 2012-07-20 20:13:42.000000000 +0200 +++ nlopt-2.3/api/options.c 2012-08-19 19:12:23.095467807 +0200 @@ -232,6 +232,7 @@ nlopt_func f, void *f_data) { nlopt_set_precond_min_objective(opt, f, NULL, f_data); + return 0; } nlopt_result NLOPT_STDCALL nlopt_set_precond_max_objective(nlopt_opt opt, @@ -254,6 +255,7 @@ nlopt_func f, void *f_data) { nlopt_set_precond_max_objective(opt, f, NULL, f_data); + return 0; } /*************************************************************************/ -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
