]>
Commit | Line | Data |
---|---|---|
c507144b | 1 | %define shortname task |
d32cb5e0 ZU |
2 | Summary: Taskwarrior is a command-line to do list manager |
3 | Summary(hu.UTF-8): Taskwarrior egy parancssoros ToDo-kezelő | |
7a372522 | 4 | Summary(pl.UTF-8): Taskwarrior - konsolowy manadżer rzeczy do zrobienia |
d32cb5e0 | 5 | Name: taskwarrior |
124e79b5 | 6 | Version: 1.9.4 |
6b1cb557 | 7 | Release: 1 |
8 | License: GPL v2+ | |
d32cb5e0 ZU |
9 | Group: Applications |
10 | Source0: http://www.taskwarrior.org/download/%{shortname}-%{version}.tar.gz | |
124e79b5 | 11 | # Source0-md5: 0c5d9dedb1ead69590af895d16708070 |
d32cb5e0 ZU |
12 | Patch0: %{name}-flags.patch |
13 | URL: http://taskwarrior.org/ | |
14 | BuildRequires: autoconf | |
15 | BuildRequires: automake | |
16 | BuildRequires: intltool | |
77891e6e | 17 | BuildRequires: libstdc++-devel |
d32cb5e0 | 18 | BuildRequires: libtool |
46f9b26f | 19 | BuildRequires: ncurses-ext-devel |
d32cb5e0 ZU |
20 | BuildRequires: pkgconfig |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %define bashdir %{_sysconfdir}/bash_completion.d | |
24 | %define vimdir %{_datadir}/vim/vimfiles | |
7a372522 | 25 | %define zshdir %{_datadir}/zsh/site-functions |
d32cb5e0 ZU |
26 | |
27 | %description | |
28 | Taskwarrior is an ambitious project to supercharge task (most | |
29 | excellent CLI task manager by Paul Beckingham) with an interactive | |
30 | interface, a powerful search tool, hotkeys, forms data entry, and a | |
31 | host of new features. | |
32 | ||
de23b95d | 33 | %description -l hu.UTF-8 |
d32cb5e0 ZU |
34 | Taskwarrior egy törekvő project, amely a task-ot bővíti ki (a legjobb |
35 | CLI feladatkezelő Paul Beckingham-től) egy interaktív felületettel, | |
36 | hatékony kereső eszközzel, hotkey-ekkel, űrlapokkal és új lehetőségek | |
37 | tömegeivel. | |
38 | ||
6b1cb557 | 39 | %description -l pl.UTF-8 |
40 | Taskwarrior jest ambitnym projektem mającym na celu ulepszenie | |
7a372522 | 41 | programu task (najlepszego konsolowego menadżera zadań stworzonego |
6b1cb557 | 42 | przez Paula Beckinghama) poprzez dodanie interaktywnego interfejsu, |
43 | potężnej wyszukiwarki, skrótów klawiszowych, formularzy wprowadzania | |
7a372522 | 44 | danych i wielu innych ulepszeń. |
6b1cb557 | 45 | |
d32cb5e0 ZU |
46 | %package -n bash-completion-taskwarrior |
47 | Summary: bash-completion for taskwarrior | |
6b1cb557 | 48 | Summary(pl.UTF-8): bashowe uzupełnianie nazw dla taskwarriora |
d32cb5e0 | 49 | Group: Applications/Shells |
cd824e9a | 50 | Requires: bash-completion |
d32cb5e0 ZU |
51 | Requires: %{name} = %{version}-%{release} |
52 | ||
53 | %description -n bash-completion-taskwarrior | |
54 | bash-completion for taskwarrior. | |
55 | ||
6b1cb557 | 56 | %description -n bash-completion-taskwarrior -l pl.UTF-8 |
57 | Pakiet ten dostarcza bashowe uzupełnianie nazw dla taskwarriora. | |
58 | ||
d32cb5e0 ZU |
59 | %package -n vim-syntax-taskwarrior |
60 | Summary: Vim-syntax: taskwarrior | |
6b1cb557 | 61 | Summary(pl.UTF-8): Składnia dla Vima: taskwarrior |
d32cb5e0 ZU |
62 | Group: Applications/Editors/Vim |
63 | Requires: %{name} = %{version}-%{release} | |
64 | ||
65 | %description -n vim-syntax-taskwarrior | |
66 | Vim-syntax: taskwarrior. | |
67 | ||
6b1cb557 | 68 | %description -n vim-syntax-taskwarrior -l pl.UTF-8 |
69 | Ta wtyczka dostarcza podświetlanie składni dla taskwarriora. | |
70 | ||
7a372522 | 71 | %package -n zsh-completion-taskwarrior |
72 | Summary: zsh-completion for taskwarrior | |
73 | Summary(pl.UTF-8): Uzupełnianie nazw w zsh dla taskwarriora | |
74 | Group: Applications/Shells | |
75 | Requires: %{name} = %{version}-%{release} | |
76 | ||
77 | %description -n zsh-completion-taskwarrior | |
78 | zsh-completion for taskwarrior. | |
79 | ||
80 | %description -n zsh-completion-taskwarrior -l pl.UTF-8 | |
81 | Pakiet ten dostarcza funkcje uzupełniania nazw powłoki zsh dla | |
82 | taskwarriora. | |
83 | ||
d32cb5e0 ZU |
84 | %prep |
85 | %setup -q -n %{shortname}-%{version} | |
86 | %patch0 -p1 | |
87 | ||
88 | %build | |
89 | %{__libtoolize} | |
90 | %{__aclocal} | |
91 | %{__autoconf} | |
92 | %{__autoheader} | |
93 | %{__automake} | |
94 | %configure \ | |
de23b95d ZU |
95 | --with-ncurses-inc="$(pkg-config --variable=includedir ncurses++w)" \ |
96 | --with-ncurses-lib="$(pkg-config --libs ncurses++w)" | |
d32cb5e0 ZU |
97 | %{__make} |
98 | ||
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %{__make} install \ | |
7a372522 | 103 | DESTDIR=$RPM_BUILD_ROOT |
d32cb5e0 ZU |
104 | |
105 | %{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/%{shortname} | |
106 | ||
7a372522 | 107 | install -d $RPM_BUILD_ROOT{%{bashdir},%{zshdir}} |
108 | install -p scripts/bash/task_completion.sh $RPM_BUILD_ROOT%{bashdir} | |
109 | install -p scripts/zsh/_task $RPM_BUILD_ROOT%{zshdir} | |
110 | ||
d32cb5e0 ZU |
111 | install -d $RPM_BUILD_ROOT%{vimdir}/{ftdetect,syntax} |
112 | for dir in ftdetect syntax; do | |
113 | install -d $RPM_BUILD_ROOT%{vimdir}/$dir | |
7a372522 | 114 | install -p scripts/vim/$dir/* $RPM_BUILD_ROOT%{vimdir}/$dir |
d32cb5e0 ZU |
115 | done |
116 | ||
117 | %clean | |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
120 | %files | |
121 | %defattr(644,root,root,755) | |
122 | %doc AUTHORS ChangeLog NEWS README i18n doc/rc | |
123 | %attr(755,root,root) %{_bindir}/%{shortname} | |
124 | %{_mandir}/man1/*1* | |
125 | %{_mandir}/man5/*5* | |
126 | ||
127 | %files -n bash-completion-taskwarrior | |
128 | %defattr(644,root,root,755) | |
7a372522 | 129 | %{bashdir}/task_completion.sh |
d32cb5e0 ZU |
130 | |
131 | %files -n vim-syntax-taskwarrior | |
77891e6e | 132 | %defattr(644,root,root,755) |
7a372522 | 133 | %{vimdir}/ftdetect/*.vim |
134 | %{vimdir}/syntax/*.vim | |
135 | ||
136 | %files -n zsh-completion-taskwarrior | |
137 | %defattr(644,root,root,755) | |
138 | %{zshdir}/_task |