]> git.pld-linux.org Git - packages/elvis.git/blob - elvis.spec
- 2.2f
[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 Group(de):      Applikationen/Editors
9 Group(pl):      Aplikacje/Edytory
10 Group(pt):      Aplicações/Editores
11 Source0:        ftp://ftp.cs.pdx.edu/pub/elvis/unreleased/%{name}-%{version}.tar.gz
12 BuildRequires:  ncurses-devel >= 5.0
13 BuildRequires:  ncurses-static
14 BuildRequires:  XFree86-devel
15 BuildRequires:  ORBit-devel
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 Obsoletes:      elvis-X11
18
19 %define         _libdir         %{_datadir}
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
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):    elvis skompilowany statycznie
32 Group:          Applications/Editors
33 Group(de):      Applikationen/Editors
34 Group(pl):      Aplikacje/Edytory
35 Group(pt):      Aplicações/Editores
36 Provides:       vi
37 Obsoletes:      vi
38
39 %description static
40 The classic unix /bin/vi - small, static compiled editor which is
41 useful as a rescue tool.
42
43 %description static -l pl
44 Klasyczny unixowy /bin/vi - ma³y, skompilowany statycznie edytor,
45 który przydaje siê przy awarii systemu.
46
47 %prep
48 %setup -q
49
50 %build
51 CC="%{__cc} %{rpmcflags}"; export CC
52 LDFLAGS="-static %{rpmldflags}"
53 %configure \
54         --without-x \
55         --datadir=%{_datadir}/elvis
56         
57 %{__make} LIBS="-ltinfo"
58 mv -f elvis elvis.static
59
60 %{__make} clean
61
62 LDFLAGS="%{rpmldflags}"
63 %configure \
64         --with-x \
65         --datadir=%{_datadir}/elvis
66
67 %{__make} 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}
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 .
79 install lib/* $RPM_BUILD_ROOT%{_libdir}/elvis
80
81 gzip -9nf license BUGS
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %files
87 %defattr(644,root,root,755)
88 %doc *.gz README.html
89 %attr(755,root,root) %{_bindir}/elvis
90 %attr(755,root,root) %{_bindir}/ref
91 %{_mandir}/man1/*
92 %{_libdir}/elvis
93
94 %files static
95 %defattr(644,root,root,755)
96 %attr(755,root,root) /bin/vi
This page took 0.063909 seconds and 3 git commands to generate.