]>
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 |
8e918086 | 6 | Version: 2.5.0 |
a7bad3ef | 7 | Release: 1 |
055c4275 | 8 | License: MIT |
d32cb5e0 ZU |
9 | Group: Applications |
10 | Source0: http://www.taskwarrior.org/download/%{shortname}-%{version}.tar.gz | |
8e918086 | 11 | # Source0-md5: bca2a8a6f7727ccbcefd5e190d935910 |
d32cb5e0 | 12 | URL: http://taskwarrior.org/ |
7d0ec3f1 JP |
13 | BuildRequires: cmake >= 2.8 |
14 | BuildRequires: gnutls-devel | |
77891e6e | 15 | BuildRequires: libstdc++-devel |
7d0ec3f1 | 16 | BuildRequires: libuuid-devel |
d32cb5e0 ZU |
17 | BuildRequires: pkgconfig |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %define bashdir %{_sysconfdir}/bash_completion.d | |
3aaaa44d | 21 | %define fishdir %{_datadir}/fish/completions |
d32cb5e0 | 22 | %define vimdir %{_datadir}/vim/vimfiles |
7a372522 | 23 | %define zshdir %{_datadir}/zsh/site-functions |
d32cb5e0 ZU |
24 | |
25 | %description | |
26 | Taskwarrior is an ambitious project to supercharge task (most | |
27 | excellent CLI task manager by Paul Beckingham) with an interactive | |
28 | interface, a powerful search tool, hotkeys, forms data entry, and a | |
29 | host of new features. | |
30 | ||
de23b95d | 31 | %description -l hu.UTF-8 |
d32cb5e0 ZU |
32 | Taskwarrior egy törekvő project, amely a task-ot bővíti ki (a legjobb |
33 | CLI feladatkezelő Paul Beckingham-től) egy interaktív felületettel, | |
34 | hatékony kereső eszközzel, hotkey-ekkel, űrlapokkal és új lehetőségek | |
35 | tömegeivel. | |
36 | ||
6b1cb557 | 37 | %description -l pl.UTF-8 |
38 | Taskwarrior jest ambitnym projektem mającym na celu ulepszenie | |
7a372522 | 39 | programu task (najlepszego konsolowego menadżera zadań stworzonego |
6b1cb557 | 40 | przez Paula Beckinghama) poprzez dodanie interaktywnego interfejsu, |
41 | potężnej wyszukiwarki, skrótów klawiszowych, formularzy wprowadzania | |
7a372522 | 42 | danych i wielu innych ulepszeń. |
6b1cb557 | 43 | |
d32cb5e0 ZU |
44 | %package -n bash-completion-taskwarrior |
45 | Summary: bash-completion for taskwarrior | |
6b1cb557 | 46 | Summary(pl.UTF-8): bashowe uzupełnianie nazw dla taskwarriora |
d32cb5e0 ZU |
47 | Group: Applications/Shells |
48 | Requires: %{name} = %{version}-%{release} | |
3aaaa44d | 49 | Requires: bash-completion |
d1a06f8f ER |
50 | %if "%{_rpmversion}" >= "5" |
51 | BuildArch: noarch | |
52 | %endif | |
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 | |
66 | %if "%{_rpmversion}" >= "5" | |
67 | BuildArch: noarch | |
68 | %endif | |
69 | ||
70 | %description -n fish-completion-taskwarrior | |
71 | fish-completion for taskwarrior. | |
72 | ||
73 | %description -n fish-completion-taskwarrior -l pl.UTF-8 | |
74 | Pakiet ten dostarcza uzupełnianie nazw w fish dla taskwarriora. | |
75 | ||
d32cb5e0 ZU |
76 | %package -n vim-syntax-taskwarrior |
77 | Summary: Vim-syntax: taskwarrior | |
6b1cb557 | 78 | Summary(pl.UTF-8): Składnia dla Vima: taskwarrior |
d32cb5e0 ZU |
79 | Group: Applications/Editors/Vim |
80 | Requires: %{name} = %{version}-%{release} | |
d1a06f8f ER |
81 | %if "%{_rpmversion}" >= "5" |
82 | BuildArch: noarch | |
83 | %endif | |
d32cb5e0 ZU |
84 | |
85 | %description -n vim-syntax-taskwarrior | |
86 | Vim-syntax: taskwarrior. | |
87 | ||
6b1cb557 | 88 | %description -n vim-syntax-taskwarrior -l pl.UTF-8 |
89 | Ta wtyczka dostarcza podświetlanie składni dla taskwarriora. | |
90 | ||
7a372522 | 91 | %package -n zsh-completion-taskwarrior |
92 | Summary: zsh-completion for taskwarrior | |
93 | Summary(pl.UTF-8): Uzupełnianie nazw w zsh dla taskwarriora | |
94 | Group: Applications/Shells | |
95 | Requires: %{name} = %{version}-%{release} | |
d1a06f8f ER |
96 | %if "%{_rpmversion}" >= "5" |
97 | BuildArch: noarch | |
98 | %endif | |
7a372522 | 99 | |
100 | %description -n zsh-completion-taskwarrior | |
101 | zsh-completion for taskwarrior. | |
102 | ||
103 | %description -n zsh-completion-taskwarrior -l pl.UTF-8 | |
104 | Pakiet ten dostarcza funkcje uzupełniania nazw powłoki zsh dla | |
105 | taskwarriora. | |
106 | ||
d32cb5e0 ZU |
107 | %prep |
108 | %setup -q -n %{shortname}-%{version} | |
d32cb5e0 ZU |
109 | |
110 | %build | |
9fadc849 | 111 | %cmake |
d32cb5e0 ZU |
112 | |
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
116 | %{__make} install \ | |
7a372522 | 117 | DESTDIR=$RPM_BUILD_ROOT |
d32cb5e0 ZU |
118 | |
119 | %{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/%{shortname} | |
120 | ||
3aaaa44d | 121 | install -d $RPM_BUILD_ROOT{%{bashdir},%{fishdir},%{zshdir}} |
41269a5e | 122 | install -p scripts/bash/task.sh $RPM_BUILD_ROOT%{bashdir} |
3aaaa44d | 123 | install -p scripts/fish/task.fish $RPM_BUILD_ROOT%{fishdir} |
7a372522 | 124 | install -p scripts/zsh/_task $RPM_BUILD_ROOT%{zshdir} |
125 | ||
d32cb5e0 ZU |
126 | install -d $RPM_BUILD_ROOT%{vimdir}/{ftdetect,syntax} |
127 | for dir in ftdetect syntax; do | |
128 | install -d $RPM_BUILD_ROOT%{vimdir}/$dir | |
7a372522 | 129 | install -p scripts/vim/$dir/* $RPM_BUILD_ROOT%{vimdir}/$dir |
d32cb5e0 ZU |
130 | done |
131 | ||
132 | %clean | |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
135 | %files | |
136 | %defattr(644,root,root,755) | |
7d0ec3f1 | 137 | %doc AUTHORS ChangeLog DEVELOPER EXPOSITION NEWS README.md doc/rc |
d32cb5e0 ZU |
138 | %attr(755,root,root) %{_bindir}/%{shortname} |
139 | %{_mandir}/man1/*1* | |
140 | %{_mandir}/man5/*5* | |
141 | ||
142 | %files -n bash-completion-taskwarrior | |
143 | %defattr(644,root,root,755) | |
41269a5e | 144 | %{bashdir}/task.sh |
d32cb5e0 | 145 | |
3aaaa44d JP |
146 | %files -n fish-completion-taskwarrior |
147 | %defattr(644,root,root,755) | |
148 | %{fishdir}/task.fish | |
149 | ||
d32cb5e0 | 150 | %files -n vim-syntax-taskwarrior |
77891e6e | 151 | %defattr(644,root,root,755) |
7a372522 | 152 | %{vimdir}/ftdetect/*.vim |
153 | %{vimdir}/syntax/*.vim | |
154 | ||
155 | %files -n zsh-completion-taskwarrior | |
156 | %defattr(644,root,root,755) | |
157 | %{zshdir}/_task |