commit nlopt for openSUSE:Factory

2020-04-28 Thread root
Hello community,

here is the log from the commit of package nlopt for openSUSE:Factory checked 
in at 2020-04-28 22:32:29

Comparing /work/SRC/openSUSE:Factory/nlopt (Old)
 and  /work/SRC/openSUSE:Factory/.nlopt.new.2738 (New)


Package is "nlopt"

Tue Apr 28 22:32:29 2020 rev:14 rq:798652 version:2.6.2

Changes:

--- /work/SRC/openSUSE:Factory/nlopt/nlopt.changes  2019-04-17 
10:08:36.582796687 +0200
+++ /work/SRC/openSUSE:Factory/.nlopt.new.2738/nlopt.changes2020-04-28 
22:33:00.105824442 +0200
@@ -1,0 +2,12 @@
+Sun Apr 26 23:56:20 UTC 2020 - Atri Bhattacharya 
+
+- Update to verion 2.6.2:
+  * Fixed forced stop exception with dimension elimination
+(gh#stevengj/nlopt#317).
+  * Fixed get_initial_step wrapping (gh#stevengj/nlopt#319).
+  * Various build fixes (gh#stevengj/nlopt#314,
+gh#stevengj/nlopt#308, gh#stevengj/nlopt#303,
+gh#stevengj/nlopt#278).
+- Rename source tarball into %{name}-%{version} format. 
+
+---

Old:

  v2.6.1.tar.gz

New:

  nlopt-2.6.2.tar.gz



Other differences:
--
++ nlopt.spec ++
--- /var/tmp/diff_new_pack.srUHK7/_old  2020-04-28 22:33:01.221826523 +0200
+++ /var/tmp/diff_new_pack.srUHK7/_new  2020-04-28 22:33:01.225826531 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package nlopt
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,18 +12,18 @@
 # 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/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:   nlopt
-Version:2.6.1
+Version:2.6.2
 Release:0
 Summary:A library for nonlinear optimization
 License:LGPL-2.0-only
 Group:  Development/Libraries/C and C++
 URL:http://ab-initio.mit.edu/wiki/index.php/NLopt
-Source0:https://github.com/stevengj/nlopt/archive/v%{version}.tar.gz 
+Source0:
https://github.com/stevengj/nlopt/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 
 BuildRequires:  cmake
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++




commit nlopt for openSUSE:Factory

2019-04-17 Thread root
Hello community,

here is the log from the commit of package nlopt for openSUSE:Factory checked 
in at 2019-04-17 10:08:35

Comparing /work/SRC/openSUSE:Factory/nlopt (Old)
 and  /work/SRC/openSUSE:Factory/.nlopt.new.17052 (New)


Package is "nlopt"

Wed Apr 17 10:08:35 2019 rev:13 rq:694591 version:2.6.1

Changes:

--- /work/SRC/openSUSE:Factory/nlopt/nlopt.changes  2019-04-05 
12:03:42.526592599 +0200
+++ /work/SRC/openSUSE:Factory/.nlopt.new.17052/nlopt.changes   2019-04-17 
10:08:36.582796687 +0200
@@ -1,0 +2,26 @@
+Mon Apr 15 15:38:18 UTC 2019 - Atri Bhattacharya 
+
+- Update to version 2.6.1:
+  * Fix nlopt_version return value for 2.6.x and update soname and
+docs.
+- Changes from version 2.6.0:
+  * New set_upper_bound and set_lower_bound functions in the
+low-level C API to set one bound at a time
+(gh#stevengi/nlopt#257).
+  * There is no longer a separate libnlopt_cxx library — C++
+algorithms (stogo) are compiled and included by default
+(gh#stevengi/nlopt#198).
+  * Bug fixes:
+* gh#stevengi/nlopt#197
+* gh#stevengi/nlopt#216
+* gh#stevengi/nlopt#245
+* gh#stevengi/nlopt#250
+* gh#stevengi/nlopt#230
+* gh#stevengi/nlopt#261
+* gh#stevengi/nlopt#242
+* gh#stevengi/nlopt#258.
+- Drop patches incorporated upstream:
+  * nlopt-octave-5.0.patch
+  * nlopt-cmake-3.13.patch.
+
+---

Old:

  nlopt-cmake-3.13.patch
  nlopt-octave-5.0.patch
  v2.5.0.tar.gz

New:

  v2.6.1.tar.gz



Other differences:
--
++ nlopt.spec ++
--- /var/tmp/diff_new_pack.yt5dfl/_old  2019-04-17 10:08:38.522798926 +0200
+++ /var/tmp/diff_new_pack.yt5dfl/_new  2019-04-17 10:08:38.522798926 +0200
@@ -17,17 +17,13 @@
 
 
 Name:   nlopt
-Version:2.5.0
+Version:2.6.1
 Release:0
 Summary:A library for nonlinear optimization
 License:LGPL-2.0-only
 Group:  Development/Libraries/C and C++
 URL:http://ab-initio.mit.edu/wiki/index.php/NLopt
 Source0:https://github.com/stevengj/nlopt/archive/v%{version}.tar.gz 
-# PATCH-FIX-UPSTREAM nlopt-octave-5.0.patch badshah...@gmail.com -- Fix 
building and running against octave 5.0; patch taken from upstream git
-Patch0: nlopt-octave-5.0.patch
-# PATCH-FIX-UPSTREAM nlopt-cmake-3.13.patch badshah...@gmail.com -- Fix 
building python module when using cmake >= 3.13; patch taken from upstream git 
and rebased to apply cleanly
-Patch1: nlopt-cmake-3.13.patch
 BuildRequires:  cmake
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++

++ v2.5.0.tar.gz -> v2.6.1.tar.gz ++
 8040 lines of diff (skipped)




commit nlopt for openSUSE:Factory

2019-04-05 Thread root
Hello community,

here is the log from the commit of package nlopt for openSUSE:Factory checked 
in at 2019-04-05 12:01:13

Comparing /work/SRC/openSUSE:Factory/nlopt (Old)
 and  /work/SRC/openSUSE:Factory/.nlopt.new.3908 (New)


Package is "nlopt"

Fri Apr  5 12:01:13 2019 rev:12 rq:690871 version:2.5.0

Changes:

--- /work/SRC/openSUSE:Factory/nlopt/nlopt.changes  2018-06-08 
23:13:54.503438119 +0200
+++ /work/SRC/openSUSE:Factory/.nlopt.new.3908/nlopt.changes2019-04-05 
12:03:42.526592599 +0200
@@ -1,0 +2,30 @@
+Sat Mar 30 13:38:47 UTC 2019 - Atri Bhattacharya 
+
+- Update to version 2.5.0:
+  * New AGS global solver (gh#stevengj/nlopt#194).
+  * New `nlopt_get_numevals` function providing a built-in
+evaluation counter (gh#stevengj/nlopt#160).
+  * New `nlopt_get_errmsg` function for more descriptive error
+messages.
+  * Build system is converted to `cmake` (gh#stevengj/nlopt#49).
+  * Plugins updated for recent Octave and Guile versions.
+  * Various other build fixes and minor bug fixes.
+- Drop patches already incorporated upstream or otherwise fixed:
+  * nlopt-2.3-pkgconfig.patch
+  * pythondir.patch
+  * nlopt-octave-4.0.patch
+  * nlopt-octave4.4-prefixdir.patch
+  * nlopt-octave4.4-do_multi_index_op.patch
+- New patches:
+  * nlopt-octave-5.0.patch: Fix compilation and running against
+octave >= 5.0; patch taken from upstream git commit.
+  * nlopt-cmake-3.13.patch: Fix building python module when using
+cmake 3.13+; patch taken from upstream git commit and rebased
+to apply cleanly.
+- Switch to building python3 modules instead of python2.
+- Switch to cmake build system in keeping with upstream; introduce
+  BuildRequires: cmake and drop libtool.
+- New BuildRequires: swig needed to build python module.
+- Use %%autosetup to setup build directory and apply patches.
+
+---

Old:

  nlopt-2.3-pkgconfig.patch
  nlopt-2.4.2.tar.gz
  nlopt-octave-4.0.patch
  nlopt-octave4.4-do_multi_index_op.patch
  nlopt-octave4.4-prefixdir.patch
  pythondir.patch

New:

  nlopt-cmake-3.13.patch
  nlopt-octave-5.0.patch
  v2.5.0.tar.gz



Other differences:
--
++ nlopt.spec ++
--- /var/tmp/diff_new_pack.ZPB9qC/_old  2019-04-05 12:03:45.054593498 +0200
+++ /var/tmp/diff_new_pack.ZPB9qC/_new  2019-04-05 12:03:45.094593513 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package nlopt
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,32 +17,25 @@
 
 
 Name:   nlopt
-Version:2.4.2
+Version:2.5.0
 Release:0
 Summary:A library for nonlinear optimization
 License:LGPL-2.0-only
 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-pkgconfig.patch
-Patch1: nlopt-2.3-pkgconfig.patch
-# PATCH-FIX-UPSTREAM pythondir.patch
-Patch2: pythondir.patch
-# PATCH-FIX-UPSTREAM nlopt-octave-4.0.patch -- 
https://github.com/stevengj/nlopt/issues/33
-Patch3: nlopt-octave-4.0.patch
-# PATCH-FIX-UPSTREAM nlopt-octave4.4-prefixdir.patch badshah...@opensuse.org 
-- Fix how to find octave's prefix dir in configure.ac: octave-config no longer 
supports the keyword PREFIX and uses OCTAVE_HOME in its stead; patch being sent 
upstream
-Patch4: nlopt-octave4.4-prefixdir.patch
-# PATCH-FIX-UPSTREAM nlopt-octave4.4-do_multi_index_op.patch 
badshah...@opensuse.org -- Replace do_multi_index_op by feval; the former is 
dropped from octave 4.4; patch being sent upstream
-Patch5: nlopt-octave4.4-do_multi_index_op.patch
+Source0:https://github.com/stevengj/nlopt/archive/v%{version}.tar.gz 
+# PATCH-FIX-UPSTREAM nlopt-octave-5.0.patch badshah...@gmail.com -- Fix 
building and running against octave 5.0; patch taken from upstream git
+Patch0: nlopt-octave-5.0.patch
+# PATCH-FIX-UPSTREAM nlopt-cmake-3.13.patch badshah...@gmail.com -- Fix 
building python module when using cmake >= 3.13; patch taken from upstream git 
and rebased to apply cleanly
+Patch1: nlopt-cmake-3.13.patch
+BuildRequires:  cmake
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  hdf5-devel
-BuildRequires:  octave-devel
 BuildRequires:  pkgconfig
-BuildRequires:  python-numpy-devel
-## For Patch4
-BuildRequires:  libtool
-#
+BuildRequires:  python3-numpy-devel
+BuildRequires:  swig
+BuildRequires:  pkgconfig(octave)
 
 %description
 NLo

commit nlopt for openSUSE:Factory

2018-06-08 Thread root
Hello community,

here is the log from the commit of package nlopt for openSUSE:Factory checked 
in at 2018-06-08 23:13:38

Comparing /work/SRC/openSUSE:Factory/nlopt (Old)
 and  /work/SRC/openSUSE:Factory/.nlopt.new (New)


Package is "nlopt"

Fri Jun  8 23:13:38 2018 rev:11 rq:613774 version:2.4.2

Changes:

--- /work/SRC/openSUSE:Factory/nlopt/nlopt.changes  2016-08-03 
11:44:10.0 +0200
+++ /work/SRC/openSUSE:Factory/.nlopt.new/nlopt.changes 2018-06-08 
23:13:54.503438119 +0200
@@ -1,0 +2,14 @@
+Sat Jun  2 13:23:21 UTC 2018 - badshah...@gmail.com
+
+- Add patches to fix compilation against octave 4.4:
+  * nlopt-octave4.4-prefixdir.patch: Fix how to find octave's
+prefix dir in configure.ac: octave-config no longer supports
+the keyword PREFIX and uses OCTAVE_HOME in its stead; patch
+being sent upstream. Add BuildRequires: libtool and regenerate
+build files (autoreconf -fvi) before configuring build.
+  * nlopt-octave4.4-do_multi_index_op.patch: Replace
+do_multi_index_op by feval; the former is dropped from octave
+4.4; patch being sent upstream.
+- Package python modules installed to sitelib as well.
+
+---

New:

  nlopt-octave4.4-do_multi_index_op.patch
  nlopt-octave4.4-prefixdir.patch



Other differences:
--
++ nlopt.spec ++
--- /var/tmp/diff_new_pack.8wVR2T/_old  2018-06-08 23:13:55.175413852 +0200
+++ /var/tmp/diff_new_pack.8wVR2T/_new  2018-06-08 23:13:55.179413708 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package nlopt
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -20,9 +20,9 @@
 Version:2.4.2
 Release:0
 Summary:A library for nonlinear optimization
-License:LGPL-2.0
+License:LGPL-2.0-only
 Group:  Development/Libraries/C and C++
-Url:http://ab-initio.mit.edu/wiki/index.php/NLopt
+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-pkgconfig.patch
 Patch1: nlopt-2.3-pkgconfig.patch
@@ -30,13 +30,19 @@
 Patch2: pythondir.patch
 # PATCH-FIX-UPSTREAM nlopt-octave-4.0.patch -- 
https://github.com/stevengj/nlopt/issues/33
 Patch3: nlopt-octave-4.0.patch
+# PATCH-FIX-UPSTREAM nlopt-octave4.4-prefixdir.patch badshah...@opensuse.org 
-- Fix how to find octave's prefix dir in configure.ac: octave-config no longer 
supports the keyword PREFIX and uses OCTAVE_HOME in its stead; patch being sent 
upstream
+Patch4: nlopt-octave4.4-prefixdir.patch
+# PATCH-FIX-UPSTREAM nlopt-octave4.4-do_multi_index_op.patch 
badshah...@opensuse.org -- Replace do_multi_index_op by feval; the former is 
dropped from octave 4.4; patch being sent upstream
+Patch5: nlopt-octave4.4-do_multi_index_op.patch
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  hdf5-devel
 BuildRequires:  octave-devel
 BuildRequires:  pkgconfig
 BuildRequires:  python-numpy-devel
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+## For Patch4
+BuildRequires:  libtool
+#
 
 %description
 NLopt is a free/open-source library for nonlinear optimization,
@@ -94,41 +100,41 @@
 %patch1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
+%patch5 -p1
 
 %build
+autoreconf -fvi
 %configure --enable-shared \
--disable-static
 make %{?_smp_mflags}
 
 %install
-%makeinstall
-find %{buildroot} -name '*.la' -exec rm -f {} ';'
+%make_install
+find %{buildroot} -type f -name "*.la" -delete -print
 %fdupes %{buildroot}%{py_sitedir}
 
 %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
+%license COPYING
+%doc AUTHORS NEWS README TODO
 %{_includedir}/*
 %{_libdir}/*.so
 %{_libdir}/pkgconfig/%{name}.pc
 %{_mandir}/man3/%{name}.*
 
 %files -n python-%{name}
-%defattr(-,root,root,-)
-%doc COPYING
+%license COPYING
 %{python_sitearch}/*
+%{python_sitelib}/*
 
 %files -n octave-nlopt_optimize
-%defattr(-,root,root,-)
-%doc COPYING
+%license COPYING
 %dir %{_libdir}/octave/*/site
 %dir %{_libdir}/octave/*/site/oct
 %dir %{_libdir}/octave/*/site/oct/*

++ nlopt-octave4.4-do_multi_index_op.patch ++
diff --git a/octave/nlopt_optimize-oct.cc b/octave/nlopt_optimize-oct.cc
index 819db4e..9d5b8a4 100644
--- a/octave/nlopt_optimize-oct.cc
+++ b/octave/nlopt_optimize-oct.cc
@@ -23,6 +23,7 

commit nlopt for openSUSE:Factory

2016-08-03 Thread h_root
Hello community,

here is the log from the commit of package nlopt for openSUSE:Factory checked 
in at 2016-08-03 11:43:55

Comparing /work/SRC/openSUSE:Factory/nlopt (Old)
 and  /work/SRC/openSUSE:Factory/.nlopt.new (New)


Package is "nlopt"

Changes:

--- /work/SRC/openSUSE:Factory/nlopt/nlopt.changes  2016-01-16 
11:57:07.0 +0100
+++ /work/SRC/openSUSE:Factory/.nlopt.new/nlopt.changes 2016-08-03 
11:44:10.0 +0200
@@ -1,0 +2,8 @@
+Thu Jun 23 09:19:01 UTC 2016 - badshah...@gmail.com
+
+- Use %requires_eq octave-cli instead of Requires, octave installs
+  its files to versioned dirs, so it is important for nlopt to
+  be rebuilt for every version update of octave. Making the
+  Requires version dependent achieves this.
+
+---



Other differences:
--
++ nlopt.spec ++
--- /var/tmp/diff_new_pack.dypCcK/_old  2016-08-03 11:44:11.0 +0200
+++ /var/tmp/diff_new_pack.dypCcK/_new  2016-08-03 11:44:11.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package nlopt
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -79,7 +79,7 @@
 %package -n octave-nlopt_optimize
 Summary:Octave interface to nonlinear optimization libray
 Group:  Productivity/Scientific/Math
-Requires:   octave-cli
+%requires_eq  octave-cli
 
 %description -n octave-nlopt_optimize
 NLopt is a free/open-source library for nonlinear optimization,




commit nlopt for openSUSE:Factory

2016-01-16 Thread h_root
Hello community,

here is the log from the commit of package nlopt for openSUSE:Factory checked 
in at 2016-01-16 11:57:04

Comparing /work/SRC/openSUSE:Factory/nlopt (Old)
 and  /work/SRC/openSUSE:Factory/.nlopt.new (New)


Package is "nlopt"

Changes:

--- /work/SRC/openSUSE:Factory/nlopt/nlopt.changes  2015-06-02 
10:09:22.0 +0200
+++ /work/SRC/openSUSE:Factory/.nlopt.new/nlopt.changes 2016-01-16 
11:57:07.0 +0100
@@ -1,0 +2,6 @@
+Tue Nov 17 16:33:16 UTC 2015 - dmitr...@opensuse.org
+
+- Fix compatibility with Octave 4.0
+  * nlopt-octave-4.0.patch
+
+---

New:

  nlopt-octave-4.0.patch



Other differences:
--
++ nlopt.spec ++
--- /var/tmp/diff_new_pack.vGqxsU/_old  2016-01-16 11:57:08.0 +0100
+++ /var/tmp/diff_new_pack.vGqxsU/_new  2016-01-16 11:57:08.0 +0100
@@ -28,10 +28,12 @@
 Patch1: nlopt-2.3-pkgconfig.patch
 # PATCH-FIX-UPSTREAM pythondir.patch
 Patch2: pythondir.patch
+# PATCH-FIX-UPSTREAM nlopt-octave-4.0.patch -- 
https://github.com/stevengj/nlopt/issues/33
+Patch3: nlopt-octave-4.0.patch
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  hdf5-devel
-# BuildRequires:  octave-devel
+BuildRequires:  octave-devel
 BuildRequires:  pkgconfig
 BuildRequires:  python-numpy-devel
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -45,8 +47,6 @@
 %package -n lib%{name}0
 Summary:A library for nonlinear optimization
 Group:  System/Libraries
-# FIXME temporary, octave-nlopt_optimize is inconsistent with octave 4.0
-Obsoletes:  octave-nlopt_optimize
 
 %description -n lib%{name}0
 NLopt is a free/open-source library for nonlinear optimization,
@@ -76,23 +76,24 @@
 
 This package contains Python interface to NLopt library.
 
-# %%package -n octave-nlopt_optimize
-# Summary:Octave interface to nonlinear optimization libray
-# 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.
-# 
-# This package contains Octave interface to NLopt library.
+%package -n octave-nlopt_optimize
+Summary:Octave interface to nonlinear optimization libray
+Group:  Productivity/Scientific/Math
+Requires:   octave-cli
+
+%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.
+
+This package contains Octave interface to NLopt library.
 
 %prep
 %setup -q
 %patch1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %configure --enable-shared \
@@ -125,13 +126,13 @@
 %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/*
+%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-octave-4.0.patch ++
diff --git a/octave/nlopt_optimize-oct.cc b/octave/nlopt_optimize-oct.cc
index 4e08421..819db4e 100644
--- a/octave/nlopt_optimize-oct.cc
+++ b/octave/nlopt_optimize-oct.cc
@@ -29,7 +29,12 @@
 #include "nlopt.h"
 #include "nlopt_optimize_usage.h"
 
-static int struct_val_default(Octave_map &m, const std::string& k,
+#include 
+#if OCTAVE_MAJOR_VERSION < 3 || (OCTAVE_MAJOR_VERSION == 3 && 
OCTAVE_MINOR_VERSION < 8)
+#  define octave_map Octave_map
+#endif
+
+static int struct_val_default(octave_map &m, const std::string& k,
 int dflt)
 {
   if (m.contains(k)) {
@@ -39,7 +44,7 @@ static int struct_val_default(Octave_map &m, const 
std::string& k,
   return dflt;
 }
 
-static double struct_val_default(Octave_map &m, const std::string& k,
+static double struct_val_default(octave_map &m, const std::string& k,
 double dflt)
 {
   if (m.contains(k)) {
@@ -49,7 +54,7 @@ static double struct_val_default(Octave_map &m, const 
std::string& k,
   return dflt;
 }
 
-static Matrix struct_val_default(Octave_map &m, const std::string& k,
+static Matrix struct_val_default(octave_map &m

commit nlopt for openSUSE:Factory

2015-06-02 Thread h_root
Hello community,

here is the log from the commit of package nlopt for openSUSE:Factory checked 
in at 2015-06-02 10:09:21

Comparing /work/SRC/openSUSE:Factory/nlopt (Old)
 and  /work/SRC/openSUSE:Factory/.nlopt.new (New)


Package is "nlopt"

Changes:

--- /work/SRC/openSUSE:Factory/nlopt/nlopt.changes  2014-11-14 
09:19:15.0 +0100
+++ /work/SRC/openSUSE:Factory/.nlopt.new/nlopt.changes 2015-06-02 
10:09:22.0 +0200
@@ -1,0 +2,5 @@
+Sun May 31 20:41:37 UTC 2015 - dmitr...@opensuse.org
+
+- Disable Octave module due to incompatibility with Octave 4.0
+
+---



Other differences:
--
++ nlopt.spec ++
--- /var/tmp/diff_new_pack.P3ZTre/_old  2015-06-02 10:09:23.0 +0200
+++ /var/tmp/diff_new_pack.P3ZTre/_new  2015-06-02 10:09:23.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package nlopt
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -31,7 +31,7 @@
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  hdf5-devel
-BuildRequires:  octave-devel
+# BuildRequires:  octave-devel
 BuildRequires:  pkgconfig
 BuildRequires:  python-numpy-devel
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -45,6 +45,8 @@
 %package -n lib%{name}0
 Summary:A library for nonlinear optimization
 Group:  System/Libraries
+# FIXME temporary, octave-nlopt_optimize is inconsistent with octave 4.0
+Obsoletes:  octave-nlopt_optimize
 
 %description -n lib%{name}0
 NLopt is a free/open-source library for nonlinear optimization,
@@ -74,18 +76,18 @@
 
 This package contains Python interface to NLopt library.
 
-%package -n octave-nlopt_optimize
-Summary:Octave interface to nonlinear optimization libray
-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.
-
-This package contains Octave interface to NLopt library.
+# %%package -n octave-nlopt_optimize
+# Summary:Octave interface to nonlinear optimization libray
+# 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.
+# 
+# This package contains Octave interface to NLopt library.
 
 %prep
 %setup -q
@@ -123,13 +125,13 @@
 %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/*
+# %%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




commit nlopt for openSUSE:Factory

2014-11-14 Thread h_root
Hello community,

here is the log from the commit of package nlopt for openSUSE:Factory checked 
in at 2014-11-14 09:19:10

Comparing /work/SRC/openSUSE:Factory/nlopt (Old)
 and  /work/SRC/openSUSE:Factory/.nlopt.new (New)


Package is "nlopt"

Changes:

--- /work/SRC/openSUSE:Factory/nlopt/nlopt.changes  2014-02-11 
11:30:15.0 +0100
+++ /work/SRC/openSUSE:Factory/.nlopt.new/nlopt.changes 2014-11-14 
09:19:15.0 +0100
@@ -1,0 +2,7 @@
+Thu Nov 13 08:13:11 UTC 2014 - dmitr...@opensuse.org
+
+- Update to version 2.4.2
+  * Bugfix release, see included NEWS file for details.
+- Update package descriptionts.
+
+---

Old:

  nlopt-2.4.1.tar.gz

New:

  nlopt-2.4.2.tar.gz



Other differences:
--
++ nlopt.spec ++
--- /var/tmp/diff_new_pack.E2WNpL/_old  2014-11-14 09:19:16.0 +0100
+++ /var/tmp/diff_new_pack.E2WNpL/_new  2014-11-14 09:19:16.0 +0100
@@ -17,7 +17,7 @@
 
 
 Name:   nlopt
-Version:2.4.1
+Version:2.4.2
 Release:0
 Summary:A library for nonlinear optimization
 License:LGPL-2.0
@@ -28,16 +28,12 @@
 Patch1: nlopt-2.3-pkgconfig.patch
 # PATCH-FIX-UPSTREAM pythondir.patch
 Patch2: pythondir.patch
+BuildRequires:  fdupes
 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
@@ -66,7 +62,7 @@
 developing applications that use %{name}.
 
 %package -n python-%{name}
-Summary:A library for nonlinear optimization
+Summary:Python interface to nonlinear optimization libray
 Group:  Development/Libraries/Python
 Requires:   python-numpy
 
@@ -76,8 +72,10 @@
 optimization routines available online as well as original
 implementations of various other algorithms.
 
+This package contains Python interface to NLopt library.
+
 %package -n octave-nlopt_optimize
-Summary:A library for nonlinear optimization
+Summary:Octave interface to nonlinear optimization libray
 Group:  Productivity/Scientific/Math
 Requires:   octave
 
@@ -87,6 +85,7 @@
 optimization routines available online as well as original
 implementations of various other algorithms.
 
+This package contains Octave interface to NLopt library.
 
 %prep
 %setup -q
@@ -101,6 +100,7 @@
 %install
 %makeinstall
 find %{buildroot} -name '*.la' -exec rm -f {} ';'
+%fdupes %{buildroot}%{py_sitedir}
 
 %post -n lib%{name}0 -p /sbin/ldconfig
 

++ nlopt-2.4.1.tar.gz -> nlopt-2.4.2.tar.gz ++
 4110 lines of diff (skipped)

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit nlopt for openSUSE:Factory

2014-02-11 Thread h_root
Hello community,

here is the log from the commit of package nlopt for openSUSE:Factory checked 
in at 2014-02-11 11:30:14

Comparing /work/SRC/openSUSE:Factory/nlopt (Old)
 and  /work/SRC/openSUSE:Factory/.nlopt.new (New)


Package is "nlopt"

Changes:

--- /work/SRC/openSUSE:Factory/nlopt/nlopt.changes  2013-09-11 
12:57:04.0 +0200
+++ /work/SRC/openSUSE:Factory/.nlopt.new/nlopt.changes 2014-02-11 
11:30:15.0 +0100
@@ -1,0 +2,22 @@
+Tue Feb 11 00:37:32 UTC 2014 - badshah...@gmail.com
+
+- Update to version 2.4.1
+  - No Linux relevant changes from version 2.4.0 
+- Changes from version 2.4.0:
+  + New genetic algorithm ESCH
+  + Fix swig dir for VPATH builds
+  + Use python-config program in the configure script to find the
+include directories for Python, if possible (may be overridden
+by PYTHON_CONFIG environment variable)
+  + Bugfix in copy constructor for C++ and Python interfaces
+  + Bugfix in return value for setting min/max objective
+  + Handle negative rescalings in COBYLA and BOBYQA
+  + Plugin installation honors the configure --prefix, if any
+  + Various compilation fixes for compatibility with recent
+software
+- Packaging changes:
+  + Minor rebase of pythondir.patch
+  + Drop nlopt-2.3-no-return-in-nonvoid-function.patch: corrected
+upstream.
+
+---

Old:

  nlopt-2.3-no-return-in-nonvoid-function.patch
  nlopt-2.3.tar.gz

New:

  nlopt-2.4.1.tar.gz



Other differences:
--
++ nlopt.spec ++
--- /var/tmp/diff_new_pack.GcVABP/_old  2014-02-11 11:30:16.0 +0100
+++ /var/tmp/diff_new_pack.GcVABP/_new  2014-02-11 11:30:16.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package nlopt
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 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
@@ -17,17 +17,16 @@
 
 
 Name:   nlopt
-Version:2.3
+Version:2.4.1
 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
+# PATCH-FIX-UPSTREAM pythondir.patch
 Patch2: pythondir.patch
 BuildRequires:  gcc-c++
 BuildRequires:  hdf5-devel
@@ -91,7 +90,6 @@
 
 %prep
 %setup -q
-%patch0 -p1
 %patch1
 %patch2 -p1
 

++ nlopt-2.3.tar.gz -> nlopt-2.4.1.tar.gz ++
 20151 lines of diff (skipped)

++ pythondir.patch ++
--- /var/tmp/diff_new_pack.GcVABP/_old  2014-02-11 11:30:16.0 +0100
+++ /var/tmp/diff_new_pack.GcVABP/_new  2014-02-11 11:30:16.0 +0100
@@ -1,8 +1,8 @@
-Index: nlopt-2.3/swig/Makefile.in
+Index: nlopt-2.4.1/swig/Makefile.in
 ===
 nlopt-2.3.orig/swig/Makefile.in
-+++ nlopt-2.3/swig/Makefile.in
-@@ -492,12 +492,12 @@ install-pythonPYTHON: $(python_PYTHON)
+--- nlopt-2.4.1.orig/swig/Makefile.in
 nlopt-2.4.1/swig/Makefile.in
+@@ -570,12 +570,12 @@ install-pythonPYTHON: $(python_PYTHON)
done; \
for file in $$list2; do echo $$file; done | $(am__base_list) | \
while read files; do \

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit nlopt for openSUSE:Factory

2013-09-11 Thread h_root
Hello community,

here is the log from the commit of package nlopt for openSUSE:Factory checked 
in at 2013-09-11 12:57:03

Comparing /work/SRC/openSUSE:Factory/nlopt (Old)
 and  /work/SRC/openSUSE:Factory/.nlopt.new (New)


Package is "nlopt"

Changes:

--- /work/SRC/openSUSE:Factory/nlopt/nlopt.changes  2013-07-17 
09:26:07.0 +0200
+++ /work/SRC/openSUSE:Factory/.nlopt.new/nlopt.changes 2013-09-11 
12:57:04.0 +0200
@@ -1,0 +2,5 @@
+Tue Sep 10 22:20:20 UTC 2013 - dval...@suse.com
+
+- install python parts to sitearch (pythondir.patch)
+
+---

New:

  pythondir.patch



Other differences:
--
++ nlopt.spec ++
--- /var/tmp/diff_new_pack.Ifuxs8/_old  2013-09-11 12:57:05.0 +0200
+++ /var/tmp/diff_new_pack.Ifuxs8/_new  2013-09-11 12:57:05.0 +0200
@@ -28,6 +28,7 @@
 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
@@ -92,6 +93,7 @@
 %setup -q
 %patch0 -p1
 %patch1
+%patch2 -p1
 
 %build
 %configure --enable-shared \
@@ -102,12 +104,6 @@
 %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

++ pythondir.patch ++
Index: nlopt-2.3/swig/Makefile.in
===
--- nlopt-2.3.orig/swig/Makefile.in
+++ nlopt-2.3/swig/Makefile.in
@@ -492,12 +492,12 @@ install-pythonPYTHON: $(python_PYTHON)
done; \
for file in $$list2; do echo $$file; done | $(am__base_list) | \
while read files; do \
- echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pythondir)'"; \
- $(INSTALL_DATA) $$files "$(DESTDIR)$(pythondir)" || exit $$?; \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pyexecdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(pyexecdir)" || exit $$?; \
done || exit $$?; \
if test -n "$$dlist"; then \
  $(am__py_compile) --destdir "$(DESTDIR)" \
-   --basedir "$(pythondir)" $$dlist; \
+   --basedir "$(pyexecdir)" $$dlist; \
else :; fi
 
 uninstall-pythonPYTHON:
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit nlopt for openSUSE:Factory

2013-07-17 Thread h_root
Hello community,

here is the log from the commit of package nlopt for openSUSE:Factory checked 
in at 2013-07-17 09:26:06

Comparing /work/SRC/openSUSE:Factory/nlopt (Old)
 and  /work/SRC/openSUSE:Factory/.nlopt.new (New)


Package is "nlopt"

Changes:

--- /work/SRC/openSUSE:Factory/nlopt/nlopt.changes  2013-06-13 
17:12:58.0 +0200
+++ /work/SRC/openSUSE:Factory/.nlopt.new/nlopt.changes 2013-07-17 
09:26:07.0 +0200
@@ -1,0 +2,7 @@
+Wed Jun 12 09:17:53 UTC 2013 - tchva...@suse.com
+
+- Add fix for .pc file so we can use this library even
+  with other projects.
+  * nlopt-2.3-pkgconfig.patch
+
+---

New:

  nlopt-2.3-pkgconfig.patch



Other differences:
--
++ nlopt.spec ++
--- /var/tmp/diff_new_pack.eqyBFi/_old  2013-07-17 09:26:07.0 +0200
+++ /var/tmp/diff_new_pack.eqyBFi/_new  2013-07-17 09:26:07.0 +0200
@@ -26,6 +26,8 @@
 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
 BuildRequires:  gcc-c++
 BuildRequires:  hdf5-devel
 BuildRequires:  octave-devel
@@ -89,6 +91,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1
 
 %build
 %configure --enable-shared \

++ nlopt-2.3-pkgconfig.patch ++
--- nlopt.pc.in.orig2013-06-12 02:23:16.0 +0100
+++ nlopt.pc.in 2012-06-12 02:25:18.0 +0100
@@ -6,5 +6,6 @@
 Name: NLopt
 Description: nonlinear optimization libary
 Version: @VERSION@
-Libs: -L${libdir} -lnlopt -lm
+Libs: -L${libdir} -lnlopt@NLOPT_SUFFIX@
+Libs.private: -lm
 Cflags: -I${includedir}
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit nlopt for openSUSE:Factory

2013-06-13 Thread h_root
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.0 +0200
@@ -0,0 +1,26 @@
+---
+Sun Feb 24 12:00:14 UTC 2013 - sco...@free.fr
+
+- 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 - sco...@free.fr
+
+- again fix build on x86_64 
+
+---
+Sun Aug 19 18:13:53 UTC 2012 - sco...@free.fr
+
+- fix build on x86_64
+- fix package group names 
+
+---
+Sun Aug 19 17:34:54 UTC 2012 - sco...@free.fr
+
+- 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.

%packagedevel
Summary:Development files for %{name}
Group:  Development/Libraries/C and C++
Requires:   lib%{name}0 = %{version}

%descriptiondevel
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
%conf