]> git.pld-linux.org Git - packages/elvis.git/blob - elvis.spec
- upgraded to 2.2i
[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/unreleased/%{name}-%{version}.tar.gz
9 # Source0-md5:  dd53b90614686692d68d27e0223be770
10 BuildRequires:  ORBit-devel
11 BuildRequires:  XFree86-devel
12 BuildRequires:  ncurses-devel >= 5.0
13 BuildRequires:  ncurses-static
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 Obsoletes:      elvis-X11
16
17 %define         _libdir         %{_datadir}
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 unixowy /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 LDFLAGS="-static %{rpmldflags}"
50 %configure \
51         --without-x \
52         --datadir=%{_datadir}/elvis
53
54 %{__make} LIBS="-ltinfo"
55 mv -f elvis elvis.static
56
57 %{__make} clean
58
59 LDFLAGS="%{rpmldflags}"
60 %configure \
61         --with-x \
62         --datadir=%{_datadir}/elvis
63
64 %{__make} LIBS="-ltinfo -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/themes}
69
70 install elvis ref $RPM_BUILD_ROOT%{_bindir}
71 install elvis.static $RPM_BUILD_ROOT/bin/vi
72 install lib/*.man $RPM_BUILD_ROOT%{_mandir}/man1
73
74 rm -f lib/*.man
75 mv -f lib/license.html LICENSE.html
76 install lib/*.* $RPM_BUILD_ROOT%{_libdir}/elvis
77 install lib/themes/* $RPM_BUILD_ROOT%{_libdir}/elvis/themes
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %files
83 %defattr(644,root,root,755)
84 %doc LICENSE.html BUGS README.html
85 %attr(755,root,root) %{_bindir}/elvis
86 %attr(755,root,root) %{_bindir}/ref
87 %{_mandir}/man1/*
88 %{_libdir}/elvis
89
90 %files static
91 %defattr(644,root,root,755)
92 %attr(755,root,root) /bin/vi
This page took 0.060556 seconds and 3 git commands to generate.