]> git.pld-linux.org Git - packages/elvis.git/blame - elvis.spec
- tabs in preamble
[packages/elvis.git] / elvis.spec
CommitLineData
3346d38f 1Summary: Elvis is a clone of vi/ex
75338ad3 2Summary(pl.UTF-8): Elvis jest klonem edytora vi
3346d38f 3Name: elvis
01a6c994 4Version: 2.2_0
eb445417 5Release: 2
01a6c994
JB
6Epoch: 1
7License: Artistic (see LICENSE.html)
3346d38f 8Group: Applications/Editors
130192f8 9Source0: ftp://ftp.cs.pdx.edu/pub/elvis/%{name}-%{version}.tar.gz
01a6c994 10# Source0-md5: 6831b8df3e4a530395e66c2889783752
130192f8 11URL: http://elvis.vi-editor.org/
7ca5a3db 12BuildRequires: XFree86-devel
01a6c994 13BuildRequires: glibc-static
0170ede9 14BuildRequires: ncurses-devel >= 5.0
15BuildRequires: ncurses-static
bf67d0ee 16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
c00fb948 17Obsoletes: elvis-X11
3346d38f 18
19%description
369fdbc3
PG
20Elvis is one of the most popular Vi clones. Its swift, well
21documented and has many features.
3346d38f 22
c80b433d
JR
23%description -l pl.UTF-8
24Elvis to jeden z popularniejszych klonów edytora vi. Jest szybki,
25posiada bogate możliwości i bardzo dobrą dokumentację.
3346d38f 26
27%package static
28Summary: Static elvis
75338ad3 29Summary(pl.UTF-8): elvis skompilowany statycznie
3346d38f 30Group: Applications/Editors
3346d38f 31Provides: vi
32Obsoletes: vi
a46c900e
JB
33Obsoletes: vim-static
34Obsoletes: nvi
3346d38f 35
36%description static
a46c900e 37The classic unix /bin/vi - small, statically linked editor which is
376c8b0e 38useful as a rescue tool.
3346d38f 39
c80b433d
JR
40%description static -l pl.UTF-8
41Klasyczny uniksowy /bin/vi - mały, skompilowany statycznie edytor,
42który przydaje się przy awarii systemu.
3346d38f 43
44%prep
45%setup -q
46
47%build
3687ae99 48CC="%{__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 55mv -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
67rm -rf $RPM_BUILD_ROOT
01a6c994 68install -d $RPM_BUILD_ROOT{/bin,%{_bindir},%{_mandir}/man1,%{_datadir}/elvis}
3346d38f 69
3687ae99
JB
70install elvis ref $RPM_BUILD_ROOT%{_bindir}
71install elvis.static $RPM_BUILD_ROOT/bin/vi
3346d38f 72
01a6c994
JB
73for f in doc/{elv*,ref}.man ; do
74 install $f $RPM_BUILD_ROOT%{_mandir}/man1/`basename $f .man`.1
75done
76
77cp -rf data/* $RPM_BUILD_ROOT%{_datadir}/elvis
78
79mv -f doc/license.html LICENSE.html
3346d38f 80
3346d38f 81%clean
82rm -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
This page took 0.177883 seconds and 4 git commands to generate.