]>
Commit | Line | Data |
---|---|---|
1 | Summary: Polish dictionaries for VIMspell | |
2 | Summary(pl.UTF-8): Polskie słowniki dla VIMspella | |
3 | Name: vim-spell-pl | |
4 | Version: 20131202 | |
5 | Release: 1 | |
6 | License: Creative Commons License | |
7 | Group: Applications/Editors/Vim | |
8 | Source0: http://sjp.pl/slownik/ort/sjp-myspell-pl-%{version}.zip | |
9 | # Source0-md5: c7a5d4d7db274d89660a0e78b1687c89 | |
10 | # vim-7.0/vim70/runtime/spell/pl/pl_PL.diff | |
11 | Patch0: %{name}-pl_PL.diff | |
12 | URL: http://www.sjp.pl/slownik/ort/ | |
13 | BuildRequires: unzip | |
14 | BuildRequires: vim >= 4:7.0 | |
15 | Requires: vim-rt >= 4:7.2.170 | |
16 | BuildArch: noarch | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %define _vimdatadir %{_datadir}/vim | |
20 | ||
21 | %description | |
22 | Polish dictionaries for VIMspell. | |
23 | ||
24 | %description -l pl.UTF-8 | |
25 | Polskie słowniki dla VIMspella. | |
26 | ||
27 | %prep | |
28 | %setup -q -c | |
29 | unzip pl_PL.zip | |
30 | %patch0 -p0 | |
31 | ||
32 | %build | |
33 | vim -u NONE -c 'set enc=iso-8859-2' -c 'mkspell! pl pl_PL' -c q | |
34 | vim -u NONE -c 'set enc=utf-8' -c 'mkspell! pl pl_PL' -c q | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | install -d $RPM_BUILD_ROOT%{_vimdatadir}/spell | |
39 | cp -a *.spl $RPM_BUILD_ROOT%{_vimdatadir}/spell | |
40 | ||
41 | %clean | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %files | |
45 | %defattr(644,root,root,755) | |
46 | %doc README_pl_PL.txt | |
47 | %{_vimdatadir}/spell/pl.*.spl |