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