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