Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package dragonbox for openSUSE:Factory 
checked in at 2023-08-09 17:24:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/dragonbox (Old)
 and      /work/SRC/openSUSE:Factory/.dragonbox.new.11712 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "dragonbox"

Wed Aug  9 17:24:30 2023 rev:3 rq:1103048 version:1.1.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/dragonbox/dragonbox.changes      2022-09-22 
14:49:16.546350727 +0200
+++ /work/SRC/openSUSE:Factory/.dragonbox.new.11712/dragonbox.changes   
2023-08-09 17:24:34.377126136 +0200
@@ -1,0 +2,9 @@
+Tue Aug  8 20:54:59 UTC 2023 - Fridrich Strba <[email protected]>
+
+- Build with g++ >= 7 since it is the version that allows C++17
+- Added patch:
+  * cmake.patch
+    + Build with cmake >= 3.5
+    + Allow building on SLE12-SP5
+
+-------------------------------------------------------------------

New:
----
  cmake.patch

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

Other differences:
------------------
++++++ dragonbox.spec ++++++
--- /var/tmp/diff_new_pack.Uo1AeB/_old  2023-08-09 17:24:34.869129200 +0200
+++ /var/tmp/diff_new_pack.Uo1AeB/_new  2023-08-09 17:24:34.873129224 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package dragonbox
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,16 +27,16 @@
 Source0:        %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
 # PATCH-FIX-SUSE install the header in a sane path
 Patch0:         fix-install-path.patch
+Patch1:         cmake.patch
 BuildRequires:  pkgconfig
 # Use cmake3 package on SLE12 because cmake is too old (version 3.5)
 %if !0%{?is_opensuse} && 0%{?sle_version} < 150000
-BuildRequires:  cmake3-full >= 3.14
 # Requires C++17
-BuildRequires:  gcc11-c++
+BuildRequires:  gcc7-c++
 %else
-BuildRequires:  cmake >= 3.14
-BuildRequires:  gcc-c++
+BuildRequires:  gcc-c++ >= 7
 %endif
+BuildRequires:  cmake >= 3.5
 
 %description
 This library is a reference implementation of Dragonbox in C++.
@@ -62,13 +62,12 @@
 %autosetup -p1
 
 %build
-# Use g++-11 to build a C++17 codebase
-%cmake \
-    -DDRAGONBOX_INSTALL_TO_CHARS=OFF \
-%if !0%{?is_opensuse} && 0%{?sle_version} < 150000
-    -DCMAKE_CXX_COMPILER=/usr/bin/g++-11 \
+%if 0%{?suse_version} < 1500
+export CC="gcc-7"
+export CXX="g++-7"
 %endif
- ;
+export CXXFLAGS="-std=c++17"
+%cmake -DDRAGONBOX_INSTALL_TO_CHARS=OFF
 %cmake_build
 
 %install

++++++ cmake.patch ++++++
--- dragonbox-1.1.3/CMakeLists.txt      2023-08-08 14:26:32.041915322 +0200
+++ dragonbox-1.1.3/CMakeLists.txt      2023-08-08 14:29:55.949917086 +0200
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.5)
 
 project(dragonbox
         VERSION 1.1.3
@@ -29,8 +29,6 @@
         INTERFACE
         "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>")
 
-target_compile_features(dragonbox INTERFACE cxx_std_17)
-
 # ---- Declare library (dragonbox_to_chars) ----
 
 set(dragonbox_to_chars_headers
@@ -49,8 +47,6 @@
         PUBLIC
         "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>")
 
-target_compile_features(dragonbox_to_chars PUBLIC cxx_std_17)
-
 # ---- Install ----
 
 option(DRAGONBOX_INSTALL_TO_CHARS
@@ -78,8 +74,7 @@
 write_basic_package_version_file(
         dragonboxConfigVersion.cmake
         VERSION ${PROJECT_VERSION}
-        COMPATIBILITY SameMajorVersion
-        ARCH_INDEPENDENT)
+        COMPATIBILITY SameMajorVersion)
 
 install(EXPORT dragonboxTargets
         NAMESPACE dragonbox::

Reply via email to