]> git.pld-linux.org Git - packages/elvis.git/blob - elvis.spec
- cosmetics.
[packages/elvis.git] / elvis.spec
1 Summary:        Elvis is a clone of vi/ex
2 Summary(pl):    Elvis jest klonem edytora vi
3 Name:           elvis
4 Version:        2.1
5 Release:        1
6 Copyright:      Artistic License
7 Group:          Applications/Editors
8 Group(pl):      Aplikacje/Edytory
9 Source:         ftp://ftp.cs.pdx.edu/pub/elvis/%{name}-%{version}.tar.gz
10 BuildRoot:      /tmp/%{name}-%{version}-root
11
12 %description
13 Vi clone.
14
15 %description -l pl
16 Elvis to jeden z popularniejszych klonów edytora vi. Jest szybki, posiada
17 bogate mo¿liwo¶ci i bardzo dobr± dokumentacjê.
18
19 %package static
20 Summary:        Static elvis
21 Summary(pl):    elvis skompilowany statycznie
22 Group:          Applications/Editors
23 Group(pl):      Aplikacje/Edytory
24 Provides:       vi
25 Obsoletes:      vi
26
27 %description static
28 The classic unix /bin/vi - small, static compiled editor which is useful
29 as a rescue tool.
30
31 %description static -l pl
32 Klasyczny unixowy /bin/vi - ma³y, skompilowany statycznie edytor, który
33 przydaje siê przy awarii systemu.
34
35 %prep
36 %setup -q
37
38 %build
39 CC="cc $RPM_OPT_FLAGS" LDFLAGS="-static -s" \
40 ./configure \
41         --prefix=/usr \
42         --without-x \
43         linux
44 make LIBS="-static -lncurses"
45 mv elvis elvis.static
46
47 make clean
48
49 CC="cc $RPM_OPT_FLAGS" LDFLAGS="-s" \
50 ./configure \
51         --prefix=/usr \
52         --with-x \
53         linux
54 make LIBS=" -lX11 -lncurses"
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT/usr/{bin,man/man1,lib/elvis}
59
60 install -s elvis        $RPM_BUILD_ROOT/usr/bin
61 install -s elvis.static $RPM_BUILD_ROOT/bin/vi
62 install -s ref          $RPM_BUILD_ROOT/usr/bin/
63
64 rm -f   lib/*man
65 install lib/*           $RPM_BUILD_ROOT/usr/lib/elvis
66
67 gzip -9nf $RPM_BUILD_ROOT/usr/man/man*/* \
68         lib/license BUGS
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %files
74 %defattr(644,root,root,755)
75 %doc {lib/license,BUGS}.gz README.html
76 %attr(755,root,root) /usr/bin/elvis
77 %attr(755,root,root) /usr/bin/ref
78 %attr(755,root,root) /bin/vi
79 /usr/lib/elvis
80
81 %files static
82 %attr(755,root,root) /bin/vi
83
84 %changelog
85 * Tue Apr 27 1999 Micha³ Kuratczyk <kura@pld.org.pl>
86   [2.1-1]
87 - built for PLD
This page took 0.052592 seconds and 3 git commands to generate.