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