Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libclaw for openSUSE:Factory checked 
in at 2021-05-17 18:45:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libclaw (Old)
 and      /work/SRC/openSUSE:Factory/.libclaw.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libclaw"

Mon May 17 18:45:27 2021 rev:3 rq:893708 version:1.7.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/libclaw/libclaw.changes  2017-06-20 
09:40:07.978287751 +0200
+++ /work/SRC/openSUSE:Factory/.libclaw.new.2988/libclaw.changes        
2021-05-17 18:45:57.912458013 +0200
@@ -1,0 +2,7 @@
+Sun May 16 13:01:59 UTC 2021 - Ferdinand Thiessen <[email protected]>
+
+- Add no-boost-math.patch, as Boost.Math now (boost 1.76) requires
+  c++11, but source code does not work with c++11, so replacing
+  Boost.Math with standard functions.
+
+-------------------------------------------------------------------

New:
----
  no-boost-math.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libclaw.spec ++++++
--- /var/tmp/diff_new_pack.CwIDsw/_old  2021-05-17 18:45:58.468455654 +0200
+++ /var/tmp/diff_new_pack.CwIDsw/_new  2021-05-17 18:45:58.472455638 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package libclaw
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # 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/
 #
 
 
@@ -20,9 +20,9 @@
 Version:        1.7.4
 Release:        0
 Summary:        C++ library of various utility functions
-License:        LGPL-2.1+
+License:        LGPL-2.1-or-later
 Group:          Development/Libraries/C and C++
-Url:            http://libclaw.sourceforge.net/
+URL:            http://libclaw.sourceforge.net/
 Source:         http://downloads.sf.net/%{name}/%{name}-%{version}.tar.gz
 # FEATURE-OPENSUSE not to strip libs.
 Patch0:         libclaw-1.6.1-nostrip.patch
@@ -34,6 +34,8 @@
 Patch3:         fix-cmake.patch
 # PATCH-FIX-UPSTREAM to be built via gcc7.
 Patch4:         libclaw-1.7.4-gcc7.patch
+# PATCH-FIX-UPSTREAM no-boost-math.patch -- Boost.Math now requires c++11, so 
get rid of it
+Patch5:         no-boost-math.patch
 BuildRequires:  boost-devel >= 1.42
 BuildRequires:  cmake >= 2.8.8
 BuildRequires:  doxygen
@@ -84,6 +86,7 @@
 %patch2
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 # Fix encoding of examples
 find examples -type f |
 while read F
@@ -94,12 +97,8 @@
 done
 
 %build
-%cmake \
-%if 0%{suse_version} > 1320
-       -DCMAKE_CXX_FLAGS="%{optflags} -std=c++98" \
-%endif
-       -DCMAKE_BUILD_TYPE=RelWithDebInfo
-make %{?_smp_mflags} VERBOSE=1
+%cmake
+%make_build
 
 %install
 %cmake_install
@@ -109,24 +108,19 @@
 %find_lang %{name}
 
 %post -n %{name}1 -p /sbin/ldconfig
-
 %postun -n %{name}1 -p /sbin/ldconfig
 
 %files -n %{name}1 -f %{name}.lang
-%defattr(-,root,root)
-%{_libdir}/*.so.*
-%doc COPYING
+%license COPYING
+%{_libdir}/%{name}*.so.*
 
 %files devel
-%defattr(-,root,root)
 %{_bindir}/claw-config
-%dir %{_datadir}/cmake/%{name}
-%{_datadir}/cmake/libclaw/%{name}*.cmake
-%{_includedir}/claw
-%{_libdir}/*.so
+%{_datadir}/cmake/libclaw/
+%{_includedir}/claw/
+%{_libdir}/%{name}*.so
 
 %files doc
-%defattr(-,root,root)
 %doc %{_datadir}/doc/%{name}1
 
 %changelog

++++++ no-boost-math.patch ++++++
diff -Nur libclaw-1.7.4/claw/code/tween/easing/easing_elastic.cpp 
new/claw/code/tween/easing/easing_elastic.cpp
--- libclaw-1.7.4/claw/code/tween/easing/easing_elastic.cpp     2013-07-03 
21:34:38.000000000 +0200
+++ new/claw/code/tween/easing/easing_elastic.cpp       2021-05-16 
14:17:33.716091909 +0200
@@ -28,7 +28,6 @@
  */
 #include <claw/tween/easing/easing_elastic.hpp>
 
-#include <boost/math/constants/constants.hpp>
 #include <cmath>
 
 /**
@@ -38,7 +37,7 @@
  */
 double claw::tween::easing_elastic_func( double t )
 {
-  const double pi( boost::math::constants::pi<double>() );
+  const double pi( 
3.14159265358979323846264338327950288419716939937510582097494459230781640628620899L
 );
   const double v(t-1);
   const double p(0.3);
 
diff -Nur libclaw-1.7.4/claw/code/tween/easing/easing_sine.cpp 
new/claw/code/tween/easing/easing_sine.cpp
--- libclaw-1.7.4/claw/code/tween/easing/easing_sine.cpp        2013-07-03 
21:34:38.000000000 +0200
+++ new/claw/code/tween/easing/easing_sine.cpp  2021-05-16 14:29:37.561118048 
+0200
@@ -28,7 +28,6 @@
  */
 #include <claw/tween/easing/easing_sine.hpp>
 
-#include <boost/math/constants/constants.hpp>
 #include <cmath>
 
 /**
@@ -38,6 +37,6 @@
  */
 double claw::tween::easing_sine_func( double t )
 {
-  const double pi( boost::math::constants::pi<double>() );
+  const double pi( 
3.14159265358979323846264338327950288419716939937510582097494459230781640628620899L
 );
   return 1 - std::cos(t * pi / 2);
 } // easing_sine_func()
diff -Nur libclaw-1.7.4/claw/impl/curve.tpp new/claw/impl/curve.tpp
--- libclaw-1.7.4/claw/impl/curve.tpp   2013-07-03 21:34:38.000000000 +0200
+++ new/claw/impl/curve.tpp     2021-05-16 14:03:12.910091138 +0200
@@ -26,8 +26,8 @@
  * \brief Implementation of claw::math::curve.
  * \author Julien Jorge
  */
-#include <boost/math/special_functions/cbrt.hpp>
-#include <boost/math/constants/constants.hpp>
+
+#include <cmath>
 
 
/*----------------------------------------------------------------------------*/
 /**
@@ -516,10 +516,12 @@
   else if ( delta > 0 )
     {
     result.push_back
-      ( boost::math::cbrt
-        ( (-q + std::sqrt(delta)) / 2.0 )
-        + boost::math::cbrt
-        ( (-q - std::sqrt(delta)) / 2.0 ) - b / (3.0 * a));
+      ( std::pow(
+        ( (-q + std::sqrt(delta)) / 2.0 ),
+        1.L/3.L)
+        + std::pow(
+        ( (-q - std::sqrt(delta)) / 2.0 ) - b / (3.0 * a),
+        1.L/3.L));
     }
   else
     for ( std::size_t i=0; i!=3; ++i )
@@ -527,7 +529,7 @@
         ( 2.0 * std::sqrt( -p / 3.0 )
           * std::cos
           ( std::acos( std::sqrt(27.0 / (- p * p * p)) * - q / 2.0 ) / 3.0
-            + 2.0 * i * boost::math::constants::pi<double>() / 3.0 ) 
+            + 2.0 * i * 
3.14159265358979323846264338327950288419716939937510582097494459230781640628620899L
 / 3.0 ) 
           - b / (3.0 * a));
 
   return result;
diff -Nur libclaw-1.7.4/CMakeLists.txt new/CMakeLists.txt
--- libclaw-1.7.4/CMakeLists.txt        2013-07-03 21:34:38.000000000 +0200
+++ new/CMakeLists.txt  2021-05-16 14:17:55.612220993 +0200
@@ -77,6 +77,8 @@
 # set compilation defines
 add_definitions( ${CLAW_DEFINITIONS} )
 
+set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++03")
+
 
#-------------------------------------------------------------------------------
 # application
 set( CLAW_APPLICATION_SOURCES

Reply via email to