- 1.0.
This commit is contained in:
parent
e35953bd8c
commit
742eb987e3
@ -1 +1 @@
|
|||||||
bash-completion-20090314gitf4f0984.tar.gz
|
bash-completion-1.0.tar.gz
|
||||||
|
24
bash-completion-repomanage
Normal file
24
bash-completion-repomanage
Normal file
@ -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
|
@ -1,11 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if [ -z "$1" -o $# -ne 1 ]; then
|
|
||||||
echo "Usage: $0 <git-revision>"
|
|
||||||
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
|
|
@ -1,22 +1,16 @@
|
|||||||
%define snap 20090314gitf4f0984
|
|
||||||
|
|
||||||
Name: bash-completion
|
Name: bash-completion
|
||||||
Version: 20080705
|
Version: 1.0
|
||||||
Release: 4%{?snap:.%{snap}}
|
Release: 1%{?dist}
|
||||||
|
Epoch: 1
|
||||||
Summary: Programmable completion for Bash
|
Summary: Programmable completion for Bash
|
||||||
|
|
||||||
Group: System Environment/Shells
|
Group: System Environment/Shells
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://bash-completion.alioth.debian.org/
|
URL: http://bash-completion.alioth.debian.org/
|
||||||
# Snapshot tarballs created with Source99
|
Source0: http://bash-completion.alioth.debian.org/files/%{name}-%{version}.tar.gz
|
||||||
%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
|
|
||||||
Source1: %{name}-mock
|
Source1: %{name}-mock
|
||||||
Source2: %{name}-plague-client
|
Source2: %{name}-plague-client
|
||||||
Source99: %{name}-snapshot.sh
|
Source3: %{name}-repomanage
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -30,10 +24,11 @@ of the programmable completion feature of bash 2.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}
|
%setup -q
|
||||||
install -pm 644 %{SOURCE1} contrib/mock
|
install -pm 644 %{SOURCE1} contrib/mock
|
||||||
install -pm 644 %{SOURCE2} contrib/plague-client
|
install -pm 644 %{SOURCE2} contrib/plague-client
|
||||||
mv to_review/repomanage contrib/
|
install -pm 644 %{SOURCE3} contrib/repomanage
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
@ -254,10 +249,15 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%triggerun -- yum-utils
|
%triggerun -- yum-utils
|
||||||
%do_triggerun repomanage
|
%do_triggerun repomanage
|
||||||
|
|
||||||
|
%triggerin -- vnc
|
||||||
|
%do_triggerin vncviewer
|
||||||
|
%triggerun -- vnc
|
||||||
|
%do_triggerun vncviewer
|
||||||
|
|
||||||
|
|
||||||
%files -f %{name}-ghosts.list
|
%files -f %{name}-ghosts.list
|
||||||
%defattr(-,root,root,-)
|
%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
|
%config(noreplace) %{_sysconfdir}/profile.d/bash_completion.sh
|
||||||
%{_sysconfdir}/bash_completion
|
%{_sysconfdir}/bash_completion
|
||||||
%dir %{_sysconfdir}/bash_completion.d/
|
%dir %{_sysconfdir}/bash_completion.d/
|
||||||
@ -265,6 +265,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 6 2009 Ville Skyttä <ville.skytta at iki.fi> - 1:1.0-1
|
||||||
|
- 1.0.
|
||||||
|
|
||||||
* Mon Mar 23 2009 Ville Skyttä <ville.skytta at iki.fi> - 20080705-4.20090314gitf4f0984
|
* Mon Mar 23 2009 Ville Skyttä <ville.skytta at iki.fi> - 20080705-4.20090314gitf4f0984
|
||||||
- Add dependency on coreutils for triggers (#490768).
|
- Add dependency on coreutils for triggers (#490768).
|
||||||
- Update and improve mock completion.
|
- Update and improve mock completion.
|
||||||
|
Loading…
Reference in New Issue
Block a user