Hello community, here is the log from the commit of package pagemon for openSUSE:Factory checked in at 2020-03-08 22:24:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/pagemon (Old) and /work/SRC/openSUSE:Factory/.pagemon.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "pagemon" Sun Mar 8 22:24:48 2020 rev:9 rq:782691 version:0.01.19 Changes: -------- --- /work/SRC/openSUSE:Factory/pagemon/pagemon.changes 2019-12-18 14:48:41.733948968 +0100 +++ /work/SRC/openSUSE:Factory/.pagemon.new.26092/pagemon.changes 2020-03-08 22:25:00.168109500 +0100 @@ -1,0 +2,16 @@ +Sun Mar 8 13:20:37 UTC 2020 - Martin Hauke <mar...@gmx.de> + +- Supplement against bash-completion, not bash + +------------------------------------------------------------------- +Sun Mar 8 12:53:30 UTC 2020 - Martin Hauke <mar...@gmx.de> + +- Drop SLE12 compat ifdef + +------------------------------------------------------------------- +Wed Feb 26 19:25:58 UTC 2020 - Martin Hauke <mar...@gmx.de> + +- Update to version 0.01.19 + * Add bash completion script + +------------------------------------------------------------------- Old: ---- pagemon-0.01.18.tar.xz New: ---- pagemon-0.01.19.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pagemon.spec ++++++ --- /var/tmp/diff_new_pack.fod3Pv/_old 2020-03-08 22:25:01.460110298 +0100 +++ /var/tmp/diff_new_pack.fod3Pv/_new 2020-03-08 22:25:01.460110298 +0100 @@ -1,7 +1,7 @@ # # spec file for package pagemon # -# 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: pagemon -Version: 0.01.18 +Version: 0.01.19 Release: 0 Summary: Interactive memory/page monitoring tool License: GPL-2.0-or-later @@ -32,12 +32,23 @@ allowing one to browse the memory map of an active running process on Linux. +%package bash-completion +Summary: Bash Completion for %{name} +Group: System/Benchmark +Requires: %{name} = %{version} +Requires: bash-completion +Supplements: (pagemon 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 +59,7 @@ %{_sbindir}/pagemon %{_mandir}/man8/pagemon.8%{?ext_man} +%files bash-completion +%{_datadir}/bash-completion/completions/%{name} + %changelog ++++++ pagemon-0.01.18.tar.xz -> pagemon-0.01.19.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pagemon-0.01.18/Makefile new/pagemon-0.01.19/Makefile --- old/pagemon-0.01.18/Makefile 2019-12-16 14:17:45.000000000 +0100 +++ new/pagemon-0.01.19/Makefile 2020-02-26 15:20:38.000000000 +0100 @@ -1,5 +1,5 @@ # -# Copyright (C) 2015-2019 Colin Ian King +# Copyright (C) 2015-2020 Colin Ian King # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,7 +18,7 @@ # Author: Colin Ian King <colin.i.k...@gmail.com> # -VERSION=0.01.18 +VERSION=0.01.19 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2 -fPIC LDFLAGS += -lncurses @@ -35,6 +35,7 @@ BINDIR=/usr/sbin MANDIR=/usr/share/man/man8 +BASHDIR=/usr/share/bash-completion/completions SRC = pagemon.c perf.c OBJS = $(SRC:.c=.o) @@ -51,7 +52,8 @@ dist: rm -rf pagemon-$(VERSION) mkdir pagemon-$(VERSION) - cp -rp README Makefile pagemon.c pagemon.8 perf.c perf.h COPYING .travis.yml pagemon-$(VERSION) + cp -rp README Makefile pagemon.c pagemon.8 perf.c perf.h COPYING \ + .travis.yml bash-completion pagemon-$(VERSION) tar -Jcf pagemon-$(VERSION).tar.xz pagemon-$(VERSION) rm -rf pagemon-$(VERSION) @@ -63,3 +65,5 @@ cp pagemon ${DESTDIR}${BINDIR} mkdir -p ${DESTDIR}${MANDIR} cp pagemon.8.gz ${DESTDIR}${MANDIR} + mkdir -p ${DESTDIR}${BASHDIR} + cp bash-completion/pagemon ${DESTDIR}${BASHDIR} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pagemon-0.01.18/bash-completion/pagemon new/pagemon-0.01.19/bash-completion/pagemon --- old/pagemon-0.01.18/bash-completion/pagemon 1970-01-01 01:00:00.000000000 +0100 +++ new/pagemon-0.01.19/bash-completion/pagemon 2020-02-26 15:20:38.000000000 +0100 @@ -0,0 +1,47 @@ +# pagemon 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. + +_pagemon() +{ + local cur prev words cword + _init_completion || return + + case "$prev" in + '-p') COMPREPLY=( $(compgen -W '$(command ps axo pid | sed 1d) ' $cur ) ) + return 0 + ;; + '-t') COMPREPLY=( $(compgen -W "ticks" -- $cur) ) + return 0 + ;; + '-z') COMPREPLY=( $(compgen -W "zoom" -- $cur) ) + return 0 + ;; + esac + + case "$cur" in + -*) + OPTS="-a -d -h -p -r -t -v -z" + COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) + return 0 + ;; + esac + return 0 +} + +# load the completion +complete -F _pagemon pagemon diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pagemon-0.01.18/pagemon.c new/pagemon-0.01.19/pagemon.c --- old/pagemon-0.01.18/pagemon.c 2019-12-16 14:17:45.000000000 +0100 +++ new/pagemon-0.01.19/pagemon.c 2020-02-26 15:20:38.000000000 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (C) Colin Ian King 2015-2019 + * Copyright (C) Colin Ian King 2015-2020 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pagemon-0.01.18/perf.c new/pagemon-0.01.19/perf.c --- old/pagemon-0.01.18/perf.c 2019-12-16 14:17:45.000000000 +0100 +++ new/pagemon-0.01.19/perf.c 2020-02-26 15:20:38.000000000 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (C) Colin Ian King 2015-2019 + * Copyright (C) Colin Ian King 2015-2020 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pagemon-0.01.18/perf.h new/pagemon-0.01.19/perf.h --- old/pagemon-0.01.18/perf.h 2019-12-16 14:17:45.000000000 +0100 +++ new/pagemon-0.01.19/perf.h 2020-02-26 15:20:38.000000000 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (C) Colin Ian King 2015-2019 + * Copyright (C) Colin Ian King 2015-2020 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License