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