Hello community,

here is the log from the commit of package sngrep for openSUSE:Factory checked 
in at 2018-11-19 23:30:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sngrep (Old)
 and      /work/SRC/openSUSE:Factory/.sngrep.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sngrep"

Mon Nov 19 23:30:42 2018 rev:2 rq:649354 version:1.4.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/sngrep/sngrep.changes    2018-04-20 
17:26:48.388334480 +0200
+++ /work/SRC/openSUSE:Factory/.sngrep.new/sngrep.changes       2018-11-19 
23:30:42.835279120 +0100
@@ -1,0 +2,8 @@
+Thu Nov 15 20:04:49 UTC 2018 - Cristian Rodríguez <[email protected]>
+
+- Switch to ncurses6w.
+- 0001-ui-add-support-for-ncurses-compiled-with-opaque-stru.patch 
+  setting ESCDELAY global can't be done with ncurses6 opaque, must
+  use set_escdelay
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ sngrep.spec ++++++
--- /var/tmp/diff_new_pack.yxOP53/_old  2018-11-19 23:30:43.903277889 +0100
+++ /var/tmp/diff_new_pack.yxOP53/_new  2018-11-19 23:30:43.915277876 +0100
@@ -1,6 +1,7 @@
 #
 # spec file for package sngrep
 #
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2018, Martin Hauke <[email protected]>
 #
 # All modifications and additions to the file contributed by third parties
@@ -12,14 +13,15 @@
 # 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:           sngrep
 Version:        1.4.5
 Release:        0
 Summary:        Ncurses SIP Messages flow viewer
-License:        GPL-3.0+
+License:        GPL-3.0-or-later
 Group:          Productivity/Telephony/Utilities
 URL:            https://github.com/irontec/sngrep
 #Git-Clone:     https://github.com/irontec/sngrep.git
@@ -32,11 +34,7 @@
 BuildRequires:  pkgconfig(libcrypto)
 BuildRequires:  pkgconfig(libpcre)
 BuildRequires:  pkgconfig(libssl)
-%if 0%{?suse_version} < 1500
-BuildRequires:  ncurses-devel
-%else
-BuildRequires:  ncurses5-devel
-%endif
+BuildRequires:  pkgconfig(ncursesw)
 
 %description
 sngrep displays SIP Messages grouped by Call-Id into flow
@@ -52,7 +50,7 @@
 
 %build
 autoreconf -fi
-CFLAGS="%{optflags} `ncursesw5-config --cflags`"
+export CFLAGS="%optflags $(pkg-config --cflags ncursesw)"
 %configure \
     --enable-unicode \
     --with-openssl \

++++++ 0001-ui-add-support-for-ncurses-compiled-with-opaque-stru.patch ++++++
--- /var/tmp/diff_new_pack.yxOP53/_old  2018-11-19 23:30:43.947277839 +0100
+++ /var/tmp/diff_new_pack.yxOP53/_new  2018-11-19 23:30:43.951277834 +0100
@@ -8,10 +8,10 @@
  src/curses/ui_column_select.c | 24 ++++++++++++++++++++----
  1 file changed, 20 insertions(+), 4 deletions(-)
 
-diff --git a/src/curses/ui_column_select.c b/src/curses/ui_column_select.c
-index 98d1551..b8e98c9 100644
---- a/src/curses/ui_column_select.c
-+++ b/src/curses/ui_column_select.c
+Index: sngrep-1.4.5/src/curses/ui_column_select.c
+===================================================================
+--- sngrep-1.4.5.orig/src/curses/ui_column_select.c
++++ sngrep-1.4.5/src/curses/ui_column_select.c
 @@ -19,6 +19,7 @@
   ** along with this program.  If not, see <http://www.gnu.org/licenses/>.
   **
@@ -20,7 +20,7 @@
  /**
   * @file ui_column_select.c
   * @author Ivan Alonso [aka Kaian] <[email protected]>
-@@ -470,20 +471,31 @@ column_select_move_item(ui_t *ui, ITEM *item, int pos)
+@@ -470,20 +471,31 @@ column_select_move_item(ui_t *ui, ITEM *
      // Swap position with destination
      int item_pos = item_index(item);
      info->items[item_pos] = info->items[pos];
@@ -65,6 +65,16 @@
 +    menu_driver(info->menu, REQ_UP_ITEM);
 +    menu_driver(info->menu, REQ_DOWN_ITEM);
  }
--- 
-2.13.6
-
+Index: sngrep-1.4.5/src/curses/ui_manager.c
+===================================================================
+--- sngrep-1.4.5.orig/src/curses/ui_manager.c
++++ sngrep-1.4.5/src/curses/ui_manager.c
+@@ -93,7 +93,7 @@ ncurses_init()
+     // Hide the cursor
+     curs_set(0);
+     // Only delay ESC Sequences 25 ms (we dont want Escape sequences)
+-    ESCDELAY = 25;
++    set_escdelay(25);
+ 
+     // Redefine some keys
+     term = getenv("TERM");


Reply via email to