Hello community,

here is the log from the commit of package ledger for openSUSE:Factory checked 
in at 2020-02-03 11:27:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ledger (Old)
 and      /work/SRC/openSUSE:Factory/.ledger.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ledger"

Mon Feb  3 11:27:12 2020 rev:8 rq:769487 version:3.1.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/ledger/ledger.changes    2019-06-19 
20:55:22.433825184 +0200
+++ /work/SRC/openSUSE:Factory/.ledger.new.26092/ledger.changes 2020-02-03 
11:27:14.922138831 +0100
@@ -1,0 +2,8 @@
+Tue Jan 28 15:01:05 UTC 2020 - Cristian Rodríguez <crrodrig...@opensuse.org>
+
+- add patch ledger-cmakelists.patch:
+  * Use set(CMAKE_CXX_STANDARD 11) to select de desired standard
+  * Build everything with hidden visibility, this allows the compiler
+    to create significantly better code and smaller executable (-800kb)
+
+-------------------------------------------------------------------

New:
----
  ledger-cmakelists.patch

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

Other differences:
------------------
++++++ ledger.spec ++++++
--- /var/tmp/diff_new_pack.TZmqdd/_old  2020-02-03 11:27:16.226138887 +0100
+++ /var/tmp/diff_new_pack.TZmqdd/_new  2020-02-03 11:27:16.226138887 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ledger
 #
-# 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
@@ -35,6 +35,7 @@
 BuildRequires:  mpfr-devel
 BuildRequires:  python
 BuildRequires:  utfcpp-devel
+Patch0:         ledger-cmakelists.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -45,7 +46,7 @@
 
 %prep
 %setup -q
-
+%patch0  -p1
 %build
 %cmake -DBUILD_LIBRARY=OFF
 make %{?_smp_mflags}

++++++ ledger-cmakelists.patch ++++++
Index: ledger-3.1.3/CMakeLists.txt
===================================================================
--- ledger-3.1.3.orig/CMakeLists.txt
+++ ledger-3.1.3/CMakeLists.txt
@@ -19,7 +19,11 @@ list(APPEND CMAKE_MODULE_PATH "${PROJECT
 
 enable_testing()
 
-add_definitions(-std=c++11)
+set(CMAKE_CXX_STANDARD 11)
+cmake_policy(SET CMP0063 NEW)
+set(CMAKE_CXX_VISIBILITY_PRESET hidden)
+SET(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
+
 if (CYGWIN)
   add_definitions(-U__STRICT_ANSI__)
 endif()

Reply via email to