]>
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 |
a6a041d5 JP |
6 | Version: 2.5.3 |
7 | Release: 1 | |
055c4275 | 8 | License: MIT |
d32cb5e0 ZU |
9 | Group: Applications |
10 | Source0: http://www.taskwarrior.org/download/%{shortname}-%{version}.tar.gz | |
a6a041d5 JP |
11 | # Source0-md5: 41fa2b61f4de729e867b185ceac0a1a8 |
12 | Patch0: %{name}-link.patch | |
d32cb5e0 | 13 | URL: http://taskwarrior.org/ |
a6a041d5 | 14 | BuildRequires: cmake >= 3.0 |
7d0ec3f1 | 15 | BuildRequires: gnutls-devel |
a6a041d5 | 16 | BuildRequires: libstdc++-devel >= 6:5 |
7d0ec3f1 | 17 | BuildRequires: libuuid-devel |
d32cb5e0 | 18 | BuildRequires: pkgconfig |
15b2e361 | 19 | BuildRequires: rpmbuild(macros) >= 1.752 |
d32cb5e0 ZU |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %define bashdir %{_sysconfdir}/bash_completion.d | |
3aaaa44d | 23 | %define fishdir %{_datadir}/fish/completions |
d32cb5e0 | 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 ZU |
49 | Group: Applications/Shells |
50 | Requires: %{name} = %{version}-%{release} | |
3aaaa44d | 51 | Requires: bash-completion |
0e1fc581 | 52 | BuildArch: noarch |
d32cb5e0 ZU |
53 | |
54 | %description -n bash-completion-taskwarrior | |
55 | bash-completion for taskwarrior. | |
56 | ||
6b1cb557 | 57 | %description -n bash-completion-taskwarrior -l pl.UTF-8 |
58 | Pakiet ten dostarcza bashowe uzupełnianie nazw dla taskwarriora. | |
59 | ||
3aaaa44d JP |
60 | %package -n fish-completion-taskwarrior |
61 | Summary: fish-completion for taskwarrior | |
62 | Summary(pl.UTF-8): Uzupełnianie nazw w fish dla taskwarriora | |
63 | Group: Applications/Shells | |
64 | Requires: %{name} = %{version}-%{release} | |
65 | Requires: fish | |
0e1fc581 | 66 | BuildArch: noarch |
3aaaa44d JP |
67 | |
68 | %description -n fish-completion-taskwarrior | |
69 | fish-completion for taskwarrior. | |
70 | ||
71 | %description -n fish-completion-taskwarrior -l pl.UTF-8 | |
72 | Pakiet ten dostarcza uzupełnianie nazw w fish dla taskwarriora. | |
73 | ||
d32cb5e0 ZU |
74 | %package -n vim-syntax-taskwarrior |
75 | Summary: Vim-syntax: taskwarrior | |
6b1cb557 | 76 | Summary(pl.UTF-8): Składnia dla Vima: taskwarrior |
d32cb5e0 ZU |
77 | Group: Applications/Editors/Vim |
78 | Requires: %{name} = %{version}-%{release} | |
0e1fc581 | 79 | BuildArch: noarch |
d32cb5e0 ZU |
80 | |
81 | %description -n vim-syntax-taskwarrior | |
82 | Vim-syntax: taskwarrior. | |
83 | ||
6b1cb557 | 84 | %description -n vim-syntax-taskwarrior -l pl.UTF-8 |
85 | Ta wtyczka dostarcza podświetlanie składni dla taskwarriora. | |
86 | ||
7a372522 | 87 | %package -n zsh-completion-taskwarrior |
88 | Summary: zsh-completion for taskwarrior | |
89 | Summary(pl.UTF-8): Uzupełnianie nazw w zsh dla taskwarriora | |
90 | Group: Applications/Shells | |
91 | Requires: %{name} = %{version}-%{release} | |
0e1fc581 | 92 | BuildArch: noarch |
7a372522 | 93 | |
94 | %description -n zsh-completion-taskwarrior | |
95 | zsh-completion for taskwarrior. | |
96 | ||
97 | %description -n zsh-completion-taskwarrior -l pl.UTF-8 | |
98 | Pakiet ten dostarcza funkcje uzupełniania nazw powłoki zsh dla | |
99 | taskwarriora. | |
100 | ||
d32cb5e0 ZU |
101 | %prep |
102 | %setup -q -n %{shortname}-%{version} | |
a6a041d5 | 103 | %patch0 -p1 |
d32cb5e0 ZU |
104 | |
105 | %build | |
9fadc849 | 106 | %cmake |
d32cb5e0 ZU |
107 | |
108 | %install | |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %{__make} install \ | |
7a372522 | 112 | DESTDIR=$RPM_BUILD_ROOT |
d32cb5e0 ZU |
113 | |
114 | %{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/%{shortname} | |
115 | ||
3aaaa44d | 116 | install -d $RPM_BUILD_ROOT{%{bashdir},%{fishdir},%{zshdir}} |
41269a5e | 117 | install -p scripts/bash/task.sh $RPM_BUILD_ROOT%{bashdir} |
3aaaa44d | 118 | install -p scripts/fish/task.fish $RPM_BUILD_ROOT%{fishdir} |
7a372522 | 119 | install -p scripts/zsh/_task $RPM_BUILD_ROOT%{zshdir} |
120 | ||
d32cb5e0 ZU |
121 | install -d $RPM_BUILD_ROOT%{vimdir}/{ftdetect,syntax} |
122 | for dir in ftdetect syntax; do | |
123 | install -d $RPM_BUILD_ROOT%{vimdir}/$dir | |
7a372522 | 124 | install -p scripts/vim/$dir/* $RPM_BUILD_ROOT%{vimdir}/$dir |
d32cb5e0 ZU |
125 | done |
126 | ||
127 | %clean | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
130 | %files | |
131 | %defattr(644,root,root,755) | |
a6a041d5 | 132 | %doc AUTHORS ChangeLog DEVELOPER.md NEWS README.md doc/rc |
d32cb5e0 ZU |
133 | %attr(755,root,root) %{_bindir}/%{shortname} |
134 | %{_mandir}/man1/*1* | |
135 | %{_mandir}/man5/*5* | |
136 | ||
137 | %files -n bash-completion-taskwarrior | |
138 | %defattr(644,root,root,755) | |
41269a5e | 139 | %{bashdir}/task.sh |
d32cb5e0 | 140 | |
3aaaa44d JP |
141 | %files -n fish-completion-taskwarrior |
142 | %defattr(644,root,root,755) | |
143 | %{fishdir}/task.fish | |
144 | ||
d32cb5e0 | 145 | %files -n vim-syntax-taskwarrior |
77891e6e | 146 | %defattr(644,root,root,755) |
7a372522 | 147 | %{vimdir}/ftdetect/*.vim |
148 | %{vimdir}/syntax/*.vim | |
149 | ||
150 | %files -n zsh-completion-taskwarrior | |
151 | %defattr(644,root,root,755) | |
152 | %{zshdir}/_task |