diff --git a/.cvsignore b/.cvsignore index 457de0c..9228f76 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -bash-completion-20090314gitf4f0984.tar.gz +bash-completion-1.0.tar.gz diff --git a/bash-completion-repomanage b/bash-completion-repomanage new file mode 100644 index 0000000..d932496 --- /dev/null +++ b/bash-completion-repomanage @@ -0,0 +1,24 @@ +# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*- +# ex: ts=8 sw=8 noet filetype=sh +# +# bash completion for repomanage + +have repomanage && +_repomanage() +{ + local cur prev + + COMPREPLY=() + cur=`_get_cword` + prev=${COMP_WORDS[COMP_CWORD-1]} + + [[ "$prev" == -@(h|-help|k|-keep) ]] && return 0 + + if [[ "$cur" == -* ]] ; then + COMPREPLY=( $( compgen -W '-o --old -n --new -s --space -k \ + --keep -c --nocheck -h --help' -- $cur ) ) + else + _filedir -d + fi +} && +complete -F _repomanage $filenames repomanage diff --git a/bash-completion-snapshot.sh b/bash-completion-snapshot.sh deleted file mode 100644 index fd4b25f..0000000 --- a/bash-completion-snapshot.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -if [ -z "$1" -o $# -ne 1 ]; then - echo "Usage: $0 " - exit 2 -fi - -rev="$1" -url="http://git.debian.org/?p=bash-completion/bash-completion.git;a=snapshot;h=$rev;sf=tgz" - -curl "$url" > bash-completion-$(date +%Y%m%d)git${rev:0:7}.tar.gz diff --git a/bash-completion.spec b/bash-completion.spec index 28d9d52..06d04ff 100644 --- a/bash-completion.spec +++ b/bash-completion.spec @@ -1,22 +1,16 @@ -%define snap 20090314gitf4f0984 - Name: bash-completion -Version: 20080705 -Release: 4%{?snap:.%{snap}} +Version: 1.0 +Release: 1%{?dist} +Epoch: 1 Summary: Programmable completion for Bash Group: System Environment/Shells License: GPLv2+ URL: http://bash-completion.alioth.debian.org/ -# Snapshot tarballs created with Source99 -%if 0%{?snap:1} -Source0: %{name}-%{snap}.tar.gz -%else -Source0: http://ftp.debian.org/debian/pool/main/b/bash-completion/%{name}_%{version}.tar.gz -%endif +Source0: http://bash-completion.alioth.debian.org/files/%{name}-%{version}.tar.gz Source1: %{name}-mock Source2: %{name}-plague-client -Source99: %{name}-snapshot.sh +Source3: %{name}-repomanage BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -30,10 +24,11 @@ of the programmable completion feature of bash 2. %prep -%setup -q -n %{name} +%setup -q install -pm 644 %{SOURCE1} contrib/mock install -pm 644 %{SOURCE2} contrib/plague-client -mv to_review/repomanage contrib/ +install -pm 644 %{SOURCE3} contrib/repomanage + %build @@ -254,10 +249,15 @@ rm -rf $RPM_BUILD_ROOT %triggerun -- yum-utils %do_triggerun repomanage +%triggerin -- vnc +%do_triggerin vncviewer +%triggerun -- vnc +%do_triggerun vncviewer + %files -f %{name}-ghosts.list %defattr(-,root,root,-) -%doc AUTHORS README TODO debian/changelog debian/copyright +%doc AUTHORS CHANGES COPYING README TODO %config(noreplace) %{_sysconfdir}/profile.d/bash_completion.sh %{_sysconfdir}/bash_completion %dir %{_sysconfdir}/bash_completion.d/ @@ -265,6 +265,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Mon Apr 6 2009 Ville Skyttä - 1:1.0-1 +- 1.0. + * Mon Mar 23 2009 Ville Skyttä - 20080705-4.20090314gitf4f0984 - Add dependency on coreutils for triggers (#490768). - Update and improve mock completion. diff --git a/sources b/sources index 23032ba..00208f6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b507df0fa02482b6e54c7dfc741834f5 bash-completion-20090314gitf4f0984.tar.gz +cd1c5648272917fbe0eef4ba30bb93f4 bash-completion-1.0.tar.gz