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