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