Hello community,

here is the log from the commit of package smemstat for openSUSE:Factory 
checked in at 2020-03-08 22:24:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/smemstat (Old)
 and      /work/SRC/openSUSE:Factory/.smemstat.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "smemstat"

Sun Mar  8 22:24:59 2020 rev:8 rq:782694 version:0.02.07

Changes:
--------
--- /work/SRC/openSUSE:Factory/smemstat/smemstat.changes        2019-12-18 
14:48:41.201948724 +0100
+++ /work/SRC/openSUSE:Factory/.smemstat.new.26092/smemstat.changes     
2020-03-08 22:25:09.884115496 +0100
@@ -1,0 +2,16 @@
+Sun Mar  8 13:10:38 UTC 2020 - Martin Hauke <mar...@gmx.de>
+
+- Supplement against bash-completion, not bash
+
+-------------------------------------------------------------------
+Sun Mar  8 12:55:09 UTC 2020 - Martin Hauke <mar...@gmx.de>
+
+- Drop SLE12 compat ifdef
+
+-------------------------------------------------------------------
+Wed Feb 26 19:21:42 UTC 2020 - Martin Hauke <mar...@gmx.de>
+
+- Update to version 0.02.07
+  * Add bash completion script
+
+-------------------------------------------------------------------

Old:
----
  smemstat-0.02.06.tar.xz

New:
----
  smemstat-0.02.07.tar.xz

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

Other differences:
------------------
++++++ smemstat.spec ++++++
--- /var/tmp/diff_new_pack.2BkZ2d/_old  2020-03-08 22:25:10.476115861 +0100
+++ /var/tmp/diff_new_pack.2BkZ2d/_new  2020-03-08 22:25:10.480115863 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package smemstat
 #
-# 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:           smemstat
-Version:        0.02.06
+Version:        0.02.07
 Release:        0
 Summary:        Memory usage monitoring tool
 License:        GPL-2.0-or-later
@@ -33,12 +33,23 @@
 memory. The tool can either report a current snapshot of memory usage or
 periodically dump out any changes in memory.
 
+%package bash-completion
+Summary:        Bash Completion for %{name}
+Group:          System/Benchmark
+Requires:       %{name} = %{version}
+Requires:       bash-completion
+Supplements:    (smemstat and bash-completion)
+BuildArch:      noarch
+
+%description bash-completion
+Bash completion script for %{name}.
+
 %prep
 %setup -q
 
 %build
 export CFLAGS="%{optflags} $(pkg-config --cflags ncursesw) -fwhole-program"
-make %{?_smp_mflags}
+%make_build
 
 %install
 %make_install
@@ -48,4 +59,7 @@
 %{_bindir}/smemstat
 %{_mandir}/man8/smemstat.8%{?ext_man}
 
+%files bash-completion
+%{_datadir}/bash-completion/completions/%{name}
+
 %changelog

++++++ smemstat-0.02.06.tar.xz -> smemstat-0.02.07.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/smemstat-0.02.06/Makefile 
new/smemstat-0.02.07/Makefile
--- old/smemstat-0.02.06/Makefile       2019-12-16 15:36:26.000000000 +0100
+++ new/smemstat-0.02.07/Makefile       2020-02-26 17:35:33.000000000 +0100
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2014-2019 Canonical, Ltd.
+# Copyright (C) 2014-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.02.06
+VERSION=0.02.07
 #
 
 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2
@@ -33,6 +33,7 @@
 
 BINDIR=/usr/bin
 MANDIR=/usr/share/man/man8
+BASHDIR=/usr/share/bash-completion/completions
 
 OBJS = smemstat.o 
 
@@ -46,7 +47,7 @@
        rm -rf smemstat-$(VERSION)
        mkdir smemstat-$(VERSION)
        cp -rp Makefile smemstat.c smemstat.8 COPYING README scripts \
-               snap .travis.yml smemstat-$(VERSION)
+               snap .travis.yml bash-completion smemstat-$(VERSION)
        tar -Jcf smemstat-$(VERSION).tar.xz smemstat-$(VERSION)
        rm -rf smemstat-$(VERSION)
 
@@ -60,3 +61,5 @@
        cp smemstat ${DESTDIR}${BINDIR}
        mkdir -p ${DESTDIR}${MANDIR}
        cp smemstat.8.gz ${DESTDIR}${MANDIR}
+       mkdir -p ${DESTDIR}${BASHDIR}
+       cp bash-completion/smemstat ${DESTDIR}${BASHDIR}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/smemstat-0.02.06/bash-completion/smemstat 
new/smemstat-0.02.07/bash-completion/smemstat
--- old/smemstat-0.02.06/bash-completion/smemstat       1970-01-01 
01:00:00.000000000 +0100
+++ new/smemstat-0.02.07/bash-completion/smemstat       2020-02-26 
17:35:33.000000000 +0100
@@ -0,0 +1,44 @@
+# smemstat 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.
+
+_smemstat()
+{
+       local cur prev
+       _init_completion || return
+
+       case "$prev" in
+        '-p')  COMPREPLY=( $(compgen -W '$(command ps axo pid | sed 1d) ' $cur 
) )
+               return 0
+               ;;
+       '-o')   _filedir
+               return 0
+               ;;
+       esac
+
+       case "$cur" in
+                -*)
+                        OPTS="-a -c -d -g -h -k -l -m -o -p -q -s -t -T"
+                        COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
+                        return 0
+                        ;;
+        esac
+       return 0
+}
+
+# load the completion
+complete -F _smemstat smemstat
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/smemstat-0.02.06/smemstat.8 
new/smemstat-0.02.07/smemstat.8
--- old/smemstat-0.02.06/smemstat.8     2019-12-16 15:36:26.000000000 +0100
+++ new/smemstat-0.02.07/smemstat.8     2020-02-26 17:35:33.000000000 +0100
@@ -104,7 +104,7 @@
 This manual page was written by Colin King <colin.k...@canonical.com>,
 for the Ubuntu project (but may be used by others).
 .SH COPYRIGHT
-Copyright \(co 2014-2019 Canonical Ltd.
+Copyright \(co 2014-2020 Canonical Ltd.
 .br
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/smemstat-0.02.06/smemstat.c 
new/smemstat-0.02.07/smemstat.c
--- old/smemstat-0.02.06/smemstat.c     2019-12-16 15:36:26.000000000 +0100
+++ new/smemstat-0.02.07/smemstat.c     2020-02-26 17:35:33.000000000 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2014-2019 Canonical, Ltd.
+ * Copyright (C) 2014-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


Reply via email to