]>
Commit | Line | Data |
---|---|---|
3346d38f | 1 | Summary: Elvis is a clone of vi/ex |
75338ad3 | 2 | Summary(pl.UTF-8): Elvis jest klonem edytora vi |
3346d38f | 3 | Name: elvis |
01a6c994 | 4 | Version: 2.2_0 |
eb445417 | 5 | Release: 2 |
01a6c994 JB |
6 | Epoch: 1 |
7 | License: Artistic (see LICENSE.html) | |
3346d38f | 8 | Group: Applications/Editors |
130192f8 | 9 | Source0: ftp://ftp.cs.pdx.edu/pub/elvis/%{name}-%{version}.tar.gz |
01a6c994 | 10 | # Source0-md5: 6831b8df3e4a530395e66c2889783752 |
130192f8 | 11 | URL: http://elvis.vi-editor.org/ |
7ca5a3db | 12 | BuildRequires: XFree86-devel |
01a6c994 | 13 | BuildRequires: glibc-static |
0170ede9 | 14 | BuildRequires: ncurses-devel >= 5.0 |
15 | BuildRequires: ncurses-static | |
bf67d0ee | 16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c00fb948 | 17 | Obsoletes: elvis-X11 |
3346d38f | 18 | |
19 | %description | |
369fdbc3 PG |
20 | Elvis is one of the most popular Vi clones. Its swift, well |
21 | documented and has many features. | |
3346d38f | 22 | |
c80b433d JR |
23 | %description -l pl.UTF-8 |
24 | Elvis to jeden z popularniejszych klonów edytora vi. Jest szybki, | |
25 | posiada bogate możliwości i bardzo dobrą dokumentację. | |
3346d38f | 26 | |
27 | %package static | |
28 | Summary: Static elvis | |
75338ad3 | 29 | Summary(pl.UTF-8): elvis skompilowany statycznie |
3346d38f | 30 | Group: Applications/Editors |
3346d38f | 31 | Provides: vi |
32 | Obsoletes: vi | |
a46c900e JB |
33 | Obsoletes: vim-static |
34 | Obsoletes: nvi | |
3346d38f | 35 | |
36 | %description static | |
a46c900e | 37 | The classic unix /bin/vi - small, statically linked editor which is |
376c8b0e | 38 | useful as a rescue tool. |
3346d38f | 39 | |
c80b433d JR |
40 | %description static -l pl.UTF-8 |
41 | Klasyczny uniksowy /bin/vi - mały, skompilowany statycznie edytor, | |
42 | który przydaje się przy awarii systemu. | |
3346d38f | 43 | |
44 | %prep | |
45 | %setup -q | |
46 | ||
47 | %build | |
3687ae99 | 48 | CC="%{__cc} %{rpmcflags}"; export CC |
fe7dcf25 | 49 | %configure \ |
bd2c4061 | 50 | --without-x \ |
51 | --datadir=%{_datadir}/elvis | |
69642a89 | 52 | |
130192f8 | 53 | %{__make} \ |
01a6c994 | 54 | LIBS="%{rpmldflags} -static -ltinfo" |
3687ae99 | 55 | mv -f elvis elvis.static |
3346d38f | 56 | |
e4a0b32b | 57 | %{__make} clean |
3346d38f | 58 | |
fe7dcf25 | 59 | %configure \ |
bd2c4061 | 60 | --with-x \ |
61 | --datadir=%{_datadir}/elvis | |
0170ede9 | 62 | |
130192f8 | 63 | %{__make} \ |
eb445417 | 64 | LIBS="%{rpmldflags} -ltinfo -lXft -lXpm -lX11 -L/usr/X11R6/%{_lib}" |
3346d38f | 65 | |
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
01a6c994 | 68 | install -d $RPM_BUILD_ROOT{/bin,%{_bindir},%{_mandir}/man1,%{_datadir}/elvis} |
3346d38f | 69 | |
3687ae99 JB |
70 | install elvis ref $RPM_BUILD_ROOT%{_bindir} |
71 | install elvis.static $RPM_BUILD_ROOT/bin/vi | |
3346d38f | 72 | |
01a6c994 JB |
73 | for f in doc/{elv*,ref}.man ; do |
74 | install $f $RPM_BUILD_ROOT%{_mandir}/man1/`basename $f .man`.1 | |
75 | done | |
76 | ||
77 | cp -rf data/* $RPM_BUILD_ROOT%{_datadir}/elvis | |
78 | ||
79 | mv -f doc/license.html LICENSE.html | |
3346d38f | 80 | |
3346d38f | 81 | %clean |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
01a6c994 | 86 | %doc Announce* BUGS COPYING LICENSE.html README.html doc/howto.html |
39202a25 | 87 | %attr(755,root,root) %{_bindir}/elvis |
88 | %attr(755,root,root) %{_bindir}/ref | |
9dce381b | 89 | %{_mandir}/man1/* |
01a6c994 | 90 | %{_datadir}/elvis |
3346d38f | 91 | |
92 | %files static | |
376c8b0e | 93 | %defattr(644,root,root,755) |
3346d38f | 94 | %attr(755,root,root) /bin/vi |