packages (DEVEL): taskwarrior/taskwarrior.spec - add zsh completion subpack...
atler
atler at pld-linux.org
Thu Oct 28 15:38:02 CEST 2010
Author: atler Date: Thu Oct 28 13:38:02 2010 GMT
Module: packages Tag: DEVEL
---- Log message:
- add zsh completion subpackage
- fix bash completion
- cosmetics
---- Files affected:
packages/taskwarrior:
taskwarrior.spec (1.8.2.2 -> 1.8.2.3)
---- Diffs:
================================================================
Index: packages/taskwarrior/taskwarrior.spec
diff -u packages/taskwarrior/taskwarrior.spec:1.8.2.2 packages/taskwarrior/taskwarrior.spec:1.8.2.3
--- packages/taskwarrior/taskwarrior.spec:1.8.2.2 Thu Oct 28 10:44:32 2010
+++ packages/taskwarrior/taskwarrior.spec Thu Oct 28 15:37:56 2010
@@ -25,6 +25,7 @@
%define bashdir %{_sysconfdir}/bash_completion.d
%define vimdir %{_datadir}/vim/vimfiles
+%define zshdir %{_datadir}/zsh/site-functions
%description
Taskwarrior is an ambitious project to supercharge task (most
@@ -69,6 +70,19 @@
%description -n vim-syntax-taskwarrior -l pl.UTF-8
Ta wtyczka dostarcza podświetlanie składni dla taskwarriora.
+%package -n zsh-completion-taskwarrior
+Summary: zsh-completion for taskwarrior
+Summary(pl.UTF-8): Uzupełnianie nazw w zsh dla taskwarriora
+Group: Applications/Shells
+Requires: %{name} = %{version}-%{release}
+
+%description -n zsh-completion-taskwarrior
+zsh-completion for taskwarrior.
+
+%description -n zsh-completion-taskwarrior -l pl.UTF-8
+Pakiet ten dostarcza funkcje uzupełniania nazw powłoki zsh dla
+taskwarriora.
+
%prep
%setup -q -n %{shortname}-%{version}.%{beta}
%patch0 -p1
@@ -89,15 +103,18 @@
rm -rf $RPM_BUILD_ROOT
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT \
- bashscriptsdir=%{_sysconfdir}/bash_completion.d
+ DESTDIR=$RPM_BUILD_ROOT
%{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/%{shortname}
+install -d $RPM_BUILD_ROOT{%{bashdir},%{zshdir}}
+install -p scripts/bash/task_completion.sh $RPM_BUILD_ROOT%{bashdir}
+install -p scripts/zsh/_task $RPM_BUILD_ROOT%{zshdir}
+
install -d $RPM_BUILD_ROOT%{vimdir}/{ftdetect,syntax}
for dir in ftdetect syntax; do
install -d $RPM_BUILD_ROOT%{vimdir}/$dir
- install scripts/vim/$dir/* $RPM_BUILD_ROOT%{vimdir}/$dir
+ install -p scripts/vim/$dir/* $RPM_BUILD_ROOT%{vimdir}/$dir
done
%clean
@@ -112,12 +129,16 @@
%files -n bash-completion-taskwarrior
%defattr(644,root,root,755)
-%{_sysconfdir}/bash_completion.d/*
+%{bashdir}/task_completion.sh
%files -n vim-syntax-taskwarrior
%defattr(644,root,root,755)
-%{vimdir}/ftdetect/*
-%{vimdir}/syntax/*
+%{vimdir}/ftdetect/*.vim
+%{vimdir}/syntax/*.vim
+
+%files -n zsh-completion-taskwarrior
+%defattr(644,root,root,755)
+%{zshdir}/_task
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -125,6 +146,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.8.2.3 2010/10/28 13:37:56 atler
+- add zsh completion subpackage
+- fix bash completion
+- cosmetics
+
Revision 1.8.2.2 2010/10/28 08:44:32 lisu
- up to 1.9.3.beta2
- pl fix
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/taskwarrior/taskwarrior.spec?r1=1.8.2.2&r2=1.8.2.3&f=u
More information about the pld-cvs-commit
mailing list