]>
Commit | Line | Data |
---|---|---|
d32cb5e0 ZU |
1 | # TODO: |
2 | # - zsh completion subpackage (I don't know, what is the correct place) | |
3 | %define shortname task | |
4 | Summary: Taskwarrior is a command-line to do list manager | |
5 | Summary(hu.UTF-8): Taskwarrior egy parancssoros ToDo-kezelő | |
6 | Name: taskwarrior | |
73f187c8 | 7 | Version: 1.9.1 |
de354309 | 8 | Release: 1 |
d32cb5e0 ZU |
9 | License: GPL v2 |
10 | Group: Applications | |
11 | Source0: http://www.taskwarrior.org/download/%{shortname}-%{version}.tar.gz | |
73f187c8 | 12 | # Source0-md5: f486d06a9440a7034516de2a31659d3a |
d32cb5e0 ZU |
13 | Patch0: %{name}-flags.patch |
14 | URL: http://taskwarrior.org/ | |
15 | BuildRequires: autoconf | |
16 | BuildRequires: automake | |
17 | BuildRequires: intltool | |
77891e6e | 18 | BuildRequires: libstdc++-devel |
d32cb5e0 ZU |
19 | BuildRequires: libtool |
20 | BuildRequires: ncurses-devel | |
21 | BuildRequires: pkgconfig | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %define bashdir %{_sysconfdir}/bash_completion.d | |
25 | %define vimdir %{_datadir}/vim/vimfiles | |
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 | ||
33 | %description -l pl.UTF-8 | |
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 | ||
39 | %package -n bash-completion-taskwarrior | |
40 | Summary: bash-completion for taskwarrior | |
41 | Group: Applications/Shells | |
42 | Requires: %{name} = %{version}-%{release} | |
43 | ||
44 | %description -n bash-completion-taskwarrior | |
45 | bash-completion for taskwarrior. | |
46 | ||
47 | %package -n vim-syntax-taskwarrior | |
48 | Summary: Vim-syntax: taskwarrior | |
49 | Group: Applications/Editors/Vim | |
50 | Requires: %{name} = %{version}-%{release} | |
51 | ||
52 | %description -n vim-syntax-taskwarrior | |
53 | Vim-syntax: taskwarrior. | |
54 | ||
55 | %prep | |
56 | %setup -q -n %{shortname}-%{version} | |
57 | %patch0 -p1 | |
58 | ||
59 | %build | |
60 | %{__libtoolize} | |
61 | %{__aclocal} | |
62 | %{__autoconf} | |
63 | %{__autoheader} | |
64 | %{__automake} | |
65 | %configure \ | |
66 | --with-ncurses-inc=/usr/include/ncursesw | |
67 | %{__make} | |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %{__make} install \ | |
73 | DESTDIR=$RPM_BUILD_ROOT | |
74 | ||
75 | %{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/%{shortname} | |
76 | ||
77 | install -d $RPM_BUILD_ROOT%{bashdir} | |
78 | install scripts/bash/task_completion.sh $RPM_BUILD_ROOT%{bashdir}/%{shortname} | |
79 | ||
80 | install -d $RPM_BUILD_ROOT%{vimdir}/{ftdetect,syntax} | |
81 | for dir in ftdetect syntax; do | |
82 | install -d $RPM_BUILD_ROOT%{vimdir}/$dir | |
83 | install scripts/vim/$dir/* $RPM_BUILD_ROOT%{vimdir}/$dir | |
84 | done | |
85 | ||
86 | %clean | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %files | |
90 | %defattr(644,root,root,755) | |
91 | %doc AUTHORS ChangeLog NEWS README i18n doc/rc | |
92 | %attr(755,root,root) %{_bindir}/%{shortname} | |
93 | %{_mandir}/man1/*1* | |
94 | %{_mandir}/man5/*5* | |
95 | ||
96 | %files -n bash-completion-taskwarrior | |
97 | %defattr(644,root,root,755) | |
98 | %{bashdir}/%{shortname} | |
99 | ||
100 | %files -n vim-syntax-taskwarrior | |
77891e6e | 101 | %defattr(644,root,root,755) |
d32cb5e0 ZU |
102 | %{vimdir}/ftdetect/* |
103 | %{vimdir}/syntax/* |