Hello community,

here is the log from the commit of package eventstat for openSUSE:Factory 
checked in at 2020-03-12 23:08:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/eventstat (Old)
 and      /work/SRC/openSUSE:Factory/.eventstat.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "eventstat"

Thu Mar 12 23:08:00 2020 rev:9 rq:784310 version:0.04.09

Changes:
--------
--- /work/SRC/openSUSE:Factory/eventstat/eventstat.changes      2019-12-18 
14:48:42.245949202 +0100
+++ /work/SRC/openSUSE:Factory/.eventstat.new.3160/eventstat.changes    
2020-03-12 23:12:32.919329665 +0100
@@ -1,0 +2,12 @@
+Mon Mar  9 18:53:10 UTC 2020 - Martin Hauke <mar...@gmx.de>
+
+- Drop SLE12 compat ifdef
+- Supplement against bash-completion, not bash
+
+-------------------------------------------------------------------
+Wed Feb 26 13:36:40 UTC 2020 - Martin Hauke <mar...@gmx.de>
+
+- Update to version 0.04.09
+  * Add bash completion script
+
+-------------------------------------------------------------------

Old:
----
  eventstat-0.04.08.tar.gz

New:
----
  eventstat-0.04.09.tar.gz

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

Other differences:
------------------
++++++ eventstat.spec ++++++
--- /var/tmp/diff_new_pack.900k8n/_old  2020-03-12 23:12:33.275329805 +0100
+++ /var/tmp/diff_new_pack.900k8n/_new  2020-03-12 23:12:33.279329807 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package eventstat
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 # Copyright (c) 2017, Martin Hauke <mar...@gmx.de>
 #
 # All modifications and additions to the file contributed by third parties
@@ -18,7 +18,7 @@
 
 
 Name:           eventstat
-Version:        0.04.08
+Version:        0.04.09
 Release:        0
 Summary:        Kernel event states monitoring tool
 License:        GPL-2.0-or-later
@@ -33,12 +33,24 @@
 The tool requires sudo to run since it needs to write to /proc/timer_stats to
 start and stop the event monitoring.
 
+%package bash-completion
+Summary:        Bash Completion for %{name}
+Group:          System/Benchmark
+BuildRequires:  bash-completion
+Requires:       %{name} = %{version}
+Requires:       bash-completion
+Supplements:    (eventstat and bash-completion)
+BuildArch:      noarch
+
+%description bash-completion
+Bash completion script for %{name}.
+
 %prep
 %setup -q
 
 %build
 export CFLAGS="%{optflags}"
-make %{?_smp_mflags}
+%make_build
 
 %install
 %make_install
@@ -48,4 +60,7 @@
 %{_bindir}/eventstat
 %{_mandir}/man8/eventstat.8%{?ext_man}
 
+%files bash-completion
+%{_datadir}/bash-completion/completions/%{name}
+
 %changelog

++++++ eventstat-0.04.08.tar.gz -> eventstat-0.04.09.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/eventstat-0.04.08/Makefile 
new/eventstat-0.04.09/Makefile
--- old/eventstat-0.04.08/Makefile      2019-12-16 12:12:12.000000000 +0100
+++ new/eventstat-0.04.09/Makefile      2020-02-26 01:05:14.000000000 +0100
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2011-2019 Canonical, Ltd.
+# Copyright (C) 2011-2020 Canonical, Ltd.
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.04.08
+VERSION=0.04.09
 
 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2
 
@@ -32,6 +32,7 @@
 
 BINDIR=/usr/bin
 MANDIR=/usr/share/man/man8
+BASHDIR=/usr/share/bash-completion/completions
 
 eventstat: eventstat.o
        $(CC) $(CFLAGS) $< -lm -lncurses -o $@ $(LDFLAGS)
@@ -43,7 +44,7 @@
        rm -rf eventstat-$(VERSION)
        mkdir eventstat-$(VERSION)
        cp -rp Makefile eventstat.c eventstat.8 COPYING snap .travis.yml \
-               eventstat-$(VERSION)
+               bash-completion eventstat-$(VERSION)
        tar -zcf eventstat-$(VERSION).tar.gz eventstat-$(VERSION)
        rm -rf eventstat-$(VERSION)
 
@@ -56,3 +57,5 @@
        cp eventstat ${DESTDIR}${BINDIR}
        mkdir -p ${DESTDIR}${MANDIR}
        cp eventstat.8.gz ${DESTDIR}${MANDIR}
+       mkdir -p ${DESTDIR}${BASHDIR}
+       cp bash-completion/eventstat ${DESTDIR}${BASHDIR}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/eventstat-0.04.08/bash-completion/eventstat 
new/eventstat-0.04.09/bash-completion/eventstat
--- old/eventstat-0.04.08/bash-completion/eventstat     1970-01-01 
01:00:00.000000000 +0100
+++ new/eventstat-0.04.09/bash-completion/eventstat     2020-02-26 
01:05:14.000000000 +0100
@@ -0,0 +1,50 @@
+# eventstat tab completion for bash.
+#
+# Copyright (C) 2020 Canonical
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
+
+_eventstat()
+{
+       local cur prev words cword
+       _init_completion || return
+
+       case "$prev" in
+        '-n')
+               COMPREPLY=( $(compgen -W "maxevents" -- $cur) )
+                return 0
+                ;;
+        '-r')
+               _filedir
+               return 0
+               ;;
+        '-t')
+               COMPREPLY=( $(compgen -W "threshold" -- $cur) )
+                return 0
+                ;;
+       esac
+
+       case "$cur" in
+                -*)
+                        OPTS="-c -C -d -h -l -q -s -S -T -w -n -r -t"
+                        COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
+                        return 0
+                        ;;
+        esac
+       return 0
+}
+
+# load the completion
+complete -F _eventstat eventstat
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/eventstat-0.04.08/eventstat.c 
new/eventstat-0.04.09/eventstat.c
--- old/eventstat-0.04.08/eventstat.c   2019-12-16 12:12:12.000000000 +0100
+++ new/eventstat-0.04.09/eventstat.c   2020-02-26 01:05:14.000000000 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2011-2019 Canonical
+ * Copyright (C) 2011-2020 Canonical
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License


Reply via email to