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