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