Hello community,

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

Package is "powerstat"

Sun Mar  8 22:24:46 2020 rev:8 rq:782690 version:0.02.22

Changes:
--------
--- /work/SRC/openSUSE:Factory/powerstat/powerstat.changes      2020-01-15 
16:45:55.005203980 +0100
+++ /work/SRC/openSUSE:Factory/.powerstat.new.26092/powerstat.changes   
2020-03-08 22:24:58.464108449 +0100
@@ -1,0 +2,16 @@
+Sun Mar  8 13:21:25 UTC 2020 - Martin Hauke <[email protected]>
+
+- Supplement against bash-completion, not bash
+
+-------------------------------------------------------------------
+Sun Mar  8 12:54:37 UTC 2020 - Martin Hauke <[email protected]>
+
+- Drop SLE12 compat ifdef
+
+-------------------------------------------------------------------
+Wed Feb 26 18:55:52 UTC 2020 - Martin Hauke <[email protected]>
+
+- Update to version 0.02.22
+  * Add bash command completion script
+
+-------------------------------------------------------------------

Old:
----
  powerstat-0.02.21.tar.gz

New:
----
  powerstat-0.02.22.tar.gz

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

Other differences:
------------------
++++++ powerstat.spec ++++++
--- /var/tmp/diff_new_pack.EONc6I/_old  2020-03-08 22:24:58.924108733 +0100
+++ /var/tmp/diff_new_pack.EONc6I/_new  2020-03-08 22:24:58.924108733 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package powerstat
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 # Copyright (c) 2017, Martin Hauke <[email protected]>
 #
 # All modifications and additions to the file contributed by third parties
@@ -18,12 +18,12 @@
 
 
 Name:           powerstat
-Version:        0.02.21
+Version:        0.02.22
 Release:        0
 Summary:        Laptop power measuring tool
 License:        GPL-2.0-only
 Group:          System/Monitoring
-URL:            http://kernel.ubuntu.com/~cking/powerstat/
+URL:            https://kernel.ubuntu.com/~cking/powerstat/
 Source:         
http://kernel.ubuntu.com/~cking/tarballs/%{name}/%{name}-%{version}.tar.gz
 
 %description
@@ -32,12 +32,23 @@
 statistics. At the end of a run, powerstat will calculate the average,
 standard deviation and min/max of the gathered data.
 
+%package bash-completion
+Summary:        Bash Completion for %{name}
+Group:          System/Benchmark
+Requires:       %{name} = %{version}
+Requires:       bash-completion
+Supplements:    (powerstat 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
@@ -47,4 +58,7 @@
 %{_bindir}/powerstat
 %{_mandir}/man8/powerstat.8%{?ext_man}
 
+%files bash-completion
+%{_datadir}/bash-completion/completions/%{name}
+
 %changelog

++++++ powerstat-0.02.21.tar.gz -> powerstat-0.02.22.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.21/Makefile 
new/powerstat-0.02.22/Makefile
--- old/powerstat-0.02.21/Makefile      2020-01-13 19:59:45.000000000 +0100
+++ new/powerstat-0.02.22/Makefile      2020-02-26 15:34:32.000000000 +0100
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.02.21
+VERSION=0.02.22
 
 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"'
 
@@ -32,6 +32,7 @@
 
 BINDIR=/usr/bin
 MANDIR=/usr/share/man/man8
+BASHDIR=/usr/share/bash-completion/completions
 
 powerstat: powerstat.o
        $(CC) $(CFLAGS) $< -lm -o $@ $(LDFLAGS)
@@ -43,7 +44,7 @@
        rm -rf powerstat-$(VERSION)
        mkdir powerstat-$(VERSION)
        cp -rp Makefile mascot powerstat.c powerstat.8 COPYING snap \
-               .travis.yml powerstat-$(VERSION)
+               .travis.yml bash-completion powerstat-$(VERSION)
        tar -zcf powerstat-$(VERSION).tar.gz powerstat-$(VERSION)
        rm -rf powerstat-$(VERSION)
 
@@ -56,3 +57,5 @@
        cp powerstat ${DESTDIR}${BINDIR}
        mkdir -p ${DESTDIR}${MANDIR}
        cp powerstat.8.gz ${DESTDIR}${MANDIR}
+       mkdir -p ${DESTDIR}${BASHDIR}
+       cp bash-completion/powerstat ${DESTDIR}${BASHDIR}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.21/bash-completion/powerstat 
new/powerstat-0.02.22/bash-completion/powerstat
--- old/powerstat-0.02.21/bash-completion/powerstat     1970-01-01 
01:00:00.000000000 +0100
+++ new/powerstat-0.02.22/bash-completion/powerstat     2020-02-26 
15:34:32.000000000 +0100
@@ -0,0 +1,44 @@
+# powerstat 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.
+
+_powerstat()
+{
+       local cur prev
+       _init_completion || return
+
+       case "$prev" in
+       '-d')   COMPREPLY=( $(compgen -W "delay" -- $cur) )
+               return 0
+               ;;
+       '-i')   COMPREPLY=( $(compgen -W "threshold" -- $cur) )
+               return 0
+               ;;
+       esac
+
+       case "$cur" in
+                -*)
+                        OPTS="-a -b -c -d -D -f -g -h -H -i -n -p -r -R -s -S 
-t -z"
+                        COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
+                        return 0
+                        ;;
+        esac
+       return 0
+}
+
+# load the completion
+complete -F _powerstat powerstat


Reply via email to