Hello community,
here is the log from the commit of package logtop for openSUSE:Factory checked in at 2018-11-22 13:26:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/logtop (Old)
and /work/SRC/openSUSE:Factory/.logtop.new.19453 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "logtop"
Thu Nov 22 13:26:30 2018 rev:2 rq:650639 version:0.6
Changes:
--------
--- /work/SRC/openSUSE:Factory/logtop/logtop.changes 2018-08-02 14:58:52.784351884 +0200
+++ /work/SRC/openSUSE:Factory/.logtop.new.19453/logtop.changes 2018-11-22 13:26:52.589915302 +0100
@@ -1,0 +2,5 @@
+Tue Nov 20 00:14:43 UTC 2018 - Cristian Rodríguez
+
+- logtop-ncursesw.patch: Move to ncursesw
+
+-------------------------------------------------------------------
New:
----
logtop-ncursesw.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ logtop.spec ++++++
--- /var/tmp/diff_new_pack.vfcpjW/_old 2018-11-22 13:26:53.097914772 +0100
+++ /var/tmp/diff_new_pack.vfcpjW/_new 2018-11-22 13:26:53.105914763 +0100
@@ -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/
#
@@ -25,8 +25,9 @@
URL: https://julienpalard.github.io/logtop/
Source: https://github.com/JulienPalard/logtop/archive/%{name}-%{version}.tar.gz
BuildRequires: make
-BuildRequires: ncurses-devel
BuildRequires: uthash-devel
+BuildRequires: pkgconfig(ncursesw)
+Patch0: logtop-ncursesw.patch
%description
Logtop is a basic log analyzer.
@@ -34,8 +35,9 @@
%prep
%setup -q -n %{name}-%{name}-%{version}
-
+%patch0 -p1
%build
+export CFLAGS="%{optflags}"
make %{?_smp_mflags}
%install
++++++ logtop-ncursesw.patch ++++++
Index: logtop-logtop-0.6/Makefile
===================================================================
--- logtop-logtop-0.6.orig/Makefile
+++ logtop-logtop-0.6/Makefile
@@ -23,8 +23,8 @@ OBJ = $(SRC:.c=.o)
CC = gcc
INCLUDE = .
-LIB = -lncurses #-lefence
-CFLAGS = -O3 -Wall -fPIC -Wextra -ansi -pedantic -Wstrict-prototypes -I$(INCLUDE)
+LIB = $(shell pkg-config --libs ncursesw) #-lefence
+CFLAGS += -O3 -Wall -fPIC -Wextra -pedantic -Wstrict-prototypes -I$(INCLUDE) $(shell pkg-config --cflags ncursesw)
RM = rm -fr
LDFLAGS =
@@ -32,7 +32,7 @@ $(NAME): $(OBJ)
$(CC) -o $(NAME) $(OBJ) $(LIB) $(LDFLAGS)
lib$(NAME): $(LIB_OBJ)
- $(CC) --shared -o $(LINKERNAME) $(OBJ) $(LIB) $(LDFLAGS)
+ $(CC) $(CFLAGS) --shared -o $(LINKERNAME) $(OBJ) $(LIB) $(LDFLAGS)
install: $(NAME)
mkdir -p $(DESTDIR)/usr/bin/
Index: logtop-logtop-0.6/src/main.c
===================================================================
--- logtop-logtop-0.6.orig/src/main.c
+++ logtop-logtop-0.6/src/main.c
@@ -29,6 +29,7 @@
#include
#include
#include
+#include
#include "main.h"
env_t gl_env;
@@ -192,6 +193,7 @@ static void on_sigint(int sig)
int main(int ac, char **av)
{
+ setlocale(LC_ALL, "");
parse_args(ac, av);
setup_sighandler(SIGINT, 0, on_sigint);
setup_sighandler(SIGALRM, SA_RESTART, update_display);