]>
Commit | Line | Data |
---|---|---|
294acefd ER |
1 | Summary: User-friendly face for Vim |
2 | Name: cream | |
3 | Version: 0.38 | |
4 | Release: 0.1 | |
5 | Source0: http://dl.sourceforge.net/cream/%{name}-%{version}.tar.gz | |
6 | # Source0-md5: 3415244ec2d58139063d8ab2604d3bb6 | |
7 | License: GPL v2 | |
8 | Group: Applications/Editors/Vim | |
9 | URL: http://cream.sourceforge.net/ | |
10 | BuildRequires: ImageMagick | |
11 | BuildRequires: desktop-file-utils | |
12 | Requires: gvim | |
13 | BuildArch: noarch | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | Cream is a modeless GUIification of Vim. Cream includes all the | |
18 | features of Vim plus many custom utilities. A short list of features | |
19 | includes syntax highlighting, spell check, multi-file find/replace, | |
20 | bookmarking, function prototype popups, macros, auto-wrapping, | |
21 | reformatting, justification, time/date stamps, file explorer, | |
22 | completion, sorting, calendar, tag navigation, block commenting, | |
23 | Microsoft, Unix and Apple format text editing, virtually unlimited | |
24 | file sizes, 38 varieties of 8-bit, 2-byte, and Unicode support, | |
25 | single/multiple document modes, unlimited undo/redo, show invisible | |
26 | characters, word count, and more. | |
27 | ||
28 | %prep | |
29 | %setup -q | |
30 | ||
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
33 | install -d $RPM_BUILD_ROOT{%{_datadir}/vim/cream/{addons,bitmaps,docs,docs-html,filetypes,help,spelldicts},%{_pixmapsdir}} | |
34 | cp -a creamrc $RPM_BUILD_ROOT%{_datadir}/vim/cream | |
35 | cp -a *.vim $RPM_BUILD_ROOT%{_datadir}/vim/cream | |
36 | cp -a addons/*.vim $RPM_BUILD_ROOT%{_datadir}/vim/cream/addons | |
37 | cp -a bitmaps/*.bmp $RPM_BUILD_ROOT%{_datadir}/vim/cream/bitmaps | |
38 | cp -a bitmaps/*.xpm $RPM_BUILD_ROOT%{_datadir}/vim/cream/bitmaps | |
39 | cp -a docs/*.txt $RPM_BUILD_ROOT%{_datadir}/vim/cream/docs | |
40 | cp -a docs-html/*.html $RPM_BUILD_ROOT%{_datadir}/vim/cream/docs-html | |
41 | ##cp -a docs-html/*.css $RPM_BUILD_ROOT%{_datadir}/vim/cream/docs-html | |
42 | cp -a docs-html/*.png $RPM_BUILD_ROOT%{_datadir}/vim/cream/docs-html | |
43 | cp -a filetypes/*.vim $RPM_BUILD_ROOT%{_datadir}/vim/cream/filetypes | |
44 | cp -a help/*.txt $RPM_BUILD_ROOT%{_datadir}/vim/cream/help | |
45 | cp -a spelldicts/cream-spell-dict-eng-s*.vim $RPM_BUILD_ROOT%{_datadir}/vim/cream/spelldicts | |
46 | cp -a spelldicts/cream-spell-dict.vim $RPM_BUILD_ROOT%{_datadir}/vim/cream/spelldicts | |
47 | ||
48 | install -d $RPM_BUILD_ROOT%{_bindir} | |
49 | cp -a cream $RPM_BUILD_ROOT%{_bindir} | |
50 | ||
51 | install -d $RPM_BUILD_ROOT%{_desktopdir} | |
52 | cp -a cream.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
53 | ||
54 | # menu | |
55 | desktop-file-install --vendor="" \ | |
56 | --remove-category="Application" \ | |
57 | --add-category="TextEditor" \ | |
58 | --dir $RPM_BUILD_ROOT%{_desktopdir} $RPM_BUILD_ROOT%{_desktopdir}/* | |
59 | ||
60 | # icons | |
61 | install %{name}.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png | |
62 | ||
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %files | |
67 | %defattr(644,root,root,755) | |
68 | %attr(755,root,root) %{_bindir}/%{name} | |
69 | %{_datadir}/vim/%{name} | |
70 | %{_desktopdir}/%{name}.desktop | |
71 | %{_pixmapsdir}/%{name}.png |