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