Hello community,

here is the log from the commit of package pass-otp for openSUSE:Factory 
checked in at 2018-11-19 23:34:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/pass-otp (Old)
 and      /work/SRC/openSUSE:Factory/.pass-otp.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "pass-otp"

Mon Nov 19 23:34:04 2018 rev:2 rq:650183 version:1.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/pass-otp/pass-otp.changes        2018-07-02 
23:33:05.365276106 +0200
+++ /work/SRC/openSUSE:Factory/.pass-otp.new/pass-otp.changes   2018-11-19 
23:34:12.711036897 +0100
@@ -1,0 +2,10 @@
+Mon Nov 19 09:57:54 UTC 2018 - Karol Babioch <[email protected]>
+
+- Update to version 1.2.0
+  * Bash completion is now supported
+  * Fix getopt parsing; passing `--issuer` and `--account` should no longer
+    hang
+- Applied spec-cleaner
+- Added fix-shebang.patch: Fixed shebang line for autodetection of dependencies
+
+-------------------------------------------------------------------

Old:
----
  pass-otp-1.1.1.tar.gz

New:
----
  fix-shebang.patch
  pass-otp-1.2.0.tar.gz

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

Other differences:
------------------
++++++ pass-otp.spec ++++++
--- /var/tmp/diff_new_pack.dSn9Up/_old  2018-11-19 23:34:14.983034270 +0100
+++ /var/tmp/diff_new_pack.dSn9Up/_new  2018-11-19 23:34:14.987034266 +0100
@@ -12,23 +12,24 @@
 # 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/
 #
 
+
 Name:           pass-otp
-Version:        1.1.1
+Version:        1.2.0
 Release:        0
 Summary:        A pass extension for managing one-time-password (OTP) tokens
 License:        GPL-3.0-or-later
 Group:          Productivity/Other
-Url:            https://github.com/tadfisher/pass-otp
+URL:            https://github.com/tadfisher/pass-otp
 Source0:        
https://github.com/tadfisher/pass-otp/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
-BuildRequires:  make
+Patch0:         fix-shebang.patch
 BuildRequires:  gcc
-Requires:       password-store
+BuildRequires:  make
 Requires:       oath-toolkit
+Requires:       password-store
 Requires:       qrencode
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
 
 %description
@@ -37,17 +38,21 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 
 %install
 %make_install LIBDIR=%{_libexecdir}
+install -Dpm 0644 %{buildroot}%{_sysconfdir}/bash_completion.d/pass-otp \
+  %{buildroot}%{_datadir}/bash-completion/completions/pass-otp
+rm %{buildroot}%{_sysconfdir}/bash_completion.d/pass-otp
 
 %files
-%defattr(-,root,root)
 %{_mandir}/man?/%{name}.?%{ext_man}
 %doc CHANGELOG.md README.md
 %license LICENSE
 %{_libexecdir}/password-store
+%{_datadir}/bash-completion/completions/pass-otp
 
 %changelog

++++++ fix-shebang.patch ++++++
From: Karol Babioch <[email protected]>
Subject: Fix shebang line for proper autodetection
Date: Mon Nov 19 11:12:56 CET 2018
---
 otp.bash |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: pass-otp-1.2.0/otp.bash
===================================================================
--- pass-otp-1.2.0.orig/otp.bash
+++ pass-otp-1.2.0/otp.bash
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/bash
 # pass otp - Password Store Extension (https://www.passwordstore.org/)
 # Copyright (C) 2017 Tad Fisher
 #
++++++ pass-otp-1.1.1.tar.gz -> pass-otp-1.2.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pass-otp-1.1.1/.travis.yml 
new/pass-otp-1.2.0/.travis.yml
--- old/pass-otp-1.1.1/.travis.yml      2018-06-29 00:44:44.000000000 +0200
+++ new/pass-otp-1.2.0/.travis.yml      2018-11-15 21:17:12.000000000 +0100
@@ -4,7 +4,7 @@
 language: bash
 
 env:
-  - PASS_VERSION=1.7.2
+  - PASS_VERSION=1.7.3
   - PASS_VERSION=master
 
 addons:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pass-otp-1.1.1/CHANGELOG.md 
new/pass-otp-1.2.0/CHANGELOG.md
--- old/pass-otp-1.1.1/CHANGELOG.md     2018-06-29 00:44:44.000000000 +0200
+++ new/pass-otp-1.2.0/CHANGELOG.md     2018-11-15 21:17:12.000000000 +0100
@@ -1,6 +1,14 @@
 Change Log
 =============
 
+Version 1.2.0 *(2018-11-15)*
+-------------------------------
+
+* New: Bash completion is now supported. (thanks Zoltan Kertesz)
+* Fix getopt parsing; passing `--issuer` and `--account` should no longer hang.
+  (thanks @xPMo)
+
+
 Version 1.1.1 *(2018-06-28)*
 -------------------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pass-otp-1.1.1/Makefile new/pass-otp-1.2.0/Makefile
--- old/pass-otp-1.1.1/Makefile 2018-06-29 00:44:44.000000000 +0200
+++ new/pass-otp-1.2.0/Makefile 2018-11-15 21:17:12.000000000 +0100
@@ -4,6 +4,7 @@
 LIBDIR ?= $(PREFIX)/lib
 SYSTEM_EXTENSION_DIR ?= $(LIBDIR)/password-store/extensions
 MANDIR ?= $(PREFIX)/share/man
+BASHCOMPDIR ?= /etc/bash_completion.d
 
 all:
        @echo "pass-$(PROG) is a shell script and does not need compilation, it 
can be simply executed."
@@ -17,6 +18,8 @@
        @install -v -d "$(DESTDIR)$(MANDIR)/man1" && install -m 0644 -v 
pass-$(PROG).1 "$(DESTDIR)$(MANDIR)/man1/pass-$(PROG).1"
        @install -v -d "$(DESTDIR)$(SYSTEM_EXTENSION_DIR)/"
        @install -v -m0755 $(PROG).bash 
"$(DESTDIR)$(SYSTEM_EXTENSION_DIR)/$(PROG).bash"
+       @install -v -d "$(DESTDIR)$(BASHCOMPDIR)/"
+       @install -v -m 644 pass-otp.bash.completion  
"$(DESTDIR)$(BASHCOMPDIR)/pass-otp"
        @echo
        @echo "pass-$(PROG) is installed succesfully"
        @echo
@@ -25,6 +28,7 @@
        @rm -vrf \
                "$(DESTDIR)$(SYSTEM_EXTENSION_DIR)/$(PROG).bash" \
                "$(DESTDIR)$(MANDIR)/man1/pass-$(PROG).1"
+               "$(DESTDIR)$(BASHCOMPDIR)/pass-otp"
 
 lint:
        shellcheck -s bash $(PROG).bash
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pass-otp-1.1.1/README.md new/pass-otp-1.2.0/README.md
--- old/pass-otp-1.1.1/README.md        2018-06-29 00:44:44.000000000 +0200
+++ new/pass-otp-1.2.0/README.md        2018-11-15 21:17:12.000000000 +0100
@@ -123,39 +123,63 @@
 pacman -S pass-otp
 ```
 
-### NixOS
+### Debian
 
-- `configuration.nix`
+`pass-otp` is available in `buster` and `sid` repositories with the 
package-name `pass-extension-otp` according to 
[tracker](https://tracker.debian.org/pkg/pass-otp):
 
-System-wide:
+```
+apt install pass-extension-otp
+```
 
-```nix
-{
-  environment.systemPackages = [ pkgs.pass-otp ];
-}
+### Gentoo Linux
+
+```
+emerge app-admin/pass-otp
 ```
 
-Per-user:
+### Nix/NixOS
+
+The following expression builds `pass` with the `pass-otp` extension:
 
 ```nix
-{
-  users.users."name".packages = [ pkgs.pass-otp ];
-}
+with pkgs;
+pass.withExtensions (exts: [ exts.pass-otp ])
 ```
 
-- Imperative
+The above can be installed imperatively via `nix-env` or ran in a temprorary
+environment via `nix-shell`.
 
+### macOS
+#### Brew
 ```
-nix-env -i pass-otp
+brew install oath-toolkit bash-completion
+git clone https://github.com/tadfisher/pass-otp
+cd pass-otp
+make install PREFIX=$(brew --prefix) BASHCOMPDIR=$(brew 
--prefix)/etc/bash_completion.d
 ```
 
-### macOS
+#### Macports.org
+```
+sudo port install pass-otp
+```
+
+### openSUSE
 
 ```
-brew install oath-toolkit
-git clone https://github.com/tadfisher/pass-otp
-cd pass-otp
-make install PREFIX=/usr/local
+zypper install pass-otp
+```
+
+### Crux Linux
+pass-otp in this port
+
+```
+#/etc/ports/mk.httpup
+# MK ports collection
+#
+# https://github.com/beli3ver/crux-ports/
+
+ROOT_DIR=/usr/ports/mk
+URL=https://raw.githubusercontent.com/beli3ver/crux-ports/master/
 ```
 
 ## Requirements
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pass-otp-1.1.1/otp.bash new/pass-otp-1.2.0/otp.bash
--- old/pass-otp-1.1.1/otp.bash 2018-06-29 00:44:44.000000000 +0200
+++ new/pass-otp-1.2.0/otp.bash 2018-11-15 21:17:12.000000000 +0100
@@ -242,7 +242,7 @@
 
 cmd_otp_append() {
   local opts force=0 echo=0 from_secret=0
-  opts="$($GETOPT -o fesi:a: -l force,echo,secret,issuer:account: -n 
"$PROGRAM" -- "$@")"
+  opts="$($GETOPT -o fesi:a: -l force,echo,secret,issuer:,account: -n 
"$PROGRAM" -- "$@")"
   local err=$?
   eval set -- "$opts"
   while true; do case $1 in
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pass-otp-1.1.1/pass-otp.bash.completion 
new/pass-otp-1.2.0/pass-otp.bash.completion
--- old/pass-otp-1.1.1/pass-otp.bash.completion 1970-01-01 01:00:00.000000000 
+0100
+++ new/pass-otp-1.2.0/pass-otp.bash.completion 2018-11-15 21:17:12.000000000 
+0100
@@ -0,0 +1,26 @@
+PASSWORD_STORE_EXTENSION_COMMANDS+=(otp)
+
+__password_store_extension_complete_otp() {
+  if [[ $COMP_CWORD -gt 2 ]]; then
+    case "${COMP_WORDS[2]}" in
+      insert|append)
+        COMPREPLY+=($(compgen -W "-e --echo -f --force -s --secret -i --issuer 
-a --account" -- ${cur}))
+        _pass_complete_entries
+        ;;
+      uri)
+        COMPREPLY+=($(compgen -W "-c --clip -q --qrcode" -- ${cur}))
+        _pass_complete_entries
+        ;;
+      validate)
+        _pass_complete_entries
+        ;;
+      *)
+        COMPREPLY+=($(compgen -W "-h --help" -- ${cur}))
+        _pass_complete_entries
+        ;;
+    esac
+  else
+      COMPREPLY+=($(compgen -W "insert append uri validate -h --help -c 
--clip" -- ${cur}))
+      _pass_complete_entries 1
+  fi
+}


Reply via email to