]>
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 | |
7 | Version: 1.9.0 | |
8 | Release: 0.1 | |
9 | License: GPL v2 | |
10 | Group: Applications | |
11 | Source0: http://www.taskwarrior.org/download/%{shortname}-%{version}.tar.gz | |
12 | # Source0-md5: b9c12f60ff509c1ce5c6292041789baa | |
13 | Patch0: %{name}-flags.patch | |
14 | URL: http://taskwarrior.org/ | |
15 | BuildRequires: autoconf | |
16 | BuildRequires: automake | |
17 | BuildRequires: intltool | |
18 | BuildRequires: libtool | |
19 | BuildRequires: ncurses-devel | |
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 | |
25 | ||
26 | %description | |
27 | Taskwarrior is an ambitious project to supercharge task (most | |
28 | excellent CLI task manager by Paul Beckingham) with an interactive | |
29 | interface, a powerful search tool, hotkeys, forms data entry, and a | |
30 | host of new features. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | Taskwarrior egy törekvő project, amely a task-ot bővíti ki (a legjobb | |
34 | CLI feladatkezelő Paul Beckingham-től) egy interaktív felületettel, | |
35 | hatékony kereső eszközzel, hotkey-ekkel, űrlapokkal és új lehetőségek | |
36 | tömegeivel. | |
37 | ||
38 | %package -n bash-completion-taskwarrior | |
39 | Summary: bash-completion for taskwarrior | |
40 | Group: Applications/Shells | |
41 | Requires: %{name} = %{version}-%{release} | |
42 | ||
43 | %description -n bash-completion-taskwarrior | |
44 | bash-completion for taskwarrior. | |
45 | ||
46 | %package -n vim-syntax-taskwarrior | |
47 | Summary: Vim-syntax: taskwarrior | |
48 | Group: Applications/Editors/Vim | |
49 | Requires: %{name} = %{version}-%{release} | |
50 | ||
51 | %description -n vim-syntax-taskwarrior | |
52 | Vim-syntax: taskwarrior. | |
53 | ||
54 | %prep | |
55 | %setup -q -n %{shortname}-%{version} | |
56 | %patch0 -p1 | |
57 | ||
58 | %build | |
59 | %{__libtoolize} | |
60 | %{__aclocal} | |
61 | %{__autoconf} | |
62 | %{__autoheader} | |
63 | %{__automake} | |
64 | %configure \ | |
65 | --with-ncurses-inc=/usr/include/ncursesw | |
66 | %{__make} | |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %{__make} install \ | |
72 | DESTDIR=$RPM_BUILD_ROOT | |
73 | ||
74 | %{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/%{shortname} | |
75 | ||
76 | install -d $RPM_BUILD_ROOT%{bashdir} | |
77 | install scripts/bash/task_completion.sh $RPM_BUILD_ROOT%{bashdir}/%{shortname} | |
78 | ||
79 | install -d $RPM_BUILD_ROOT%{vimdir}/{ftdetect,syntax} | |
80 | for dir in ftdetect syntax; do | |
81 | install -d $RPM_BUILD_ROOT%{vimdir}/$dir | |
82 | install scripts/vim/$dir/* $RPM_BUILD_ROOT%{vimdir}/$dir | |
83 | done | |
84 | ||
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %files | |
89 | %defattr(644,root,root,755) | |
90 | %doc AUTHORS ChangeLog NEWS README i18n doc/rc | |
91 | %attr(755,root,root) %{_bindir}/%{shortname} | |
92 | %{_mandir}/man1/*1* | |
93 | %{_mandir}/man5/*5* | |
94 | ||
95 | %files -n bash-completion-taskwarrior | |
96 | %defattr(644,root,root,755) | |
97 | %{bashdir}/%{shortname} | |
98 | ||
99 | %files -n vim-syntax-taskwarrior | |
100 | %{vimdir}/ftdetect/* | |
101 | %{vimdir}/syntax/* |