]> git.pld-linux.org Git - packages/elvis.git/blob - elvis.spec
- rename file name with license details to LICENSE.
[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:        3
6 License:        Artistic (see 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 Obsoletes:      vim-static
33 Obsoletes:      nvi
34
35 %description static
36 The classic unix /bin/vi - small, statically linked editor which is
37 useful as a rescue tool.
38
39 %description static -l pl
40 Klasyczny unixowy /bin/vi - ma³y, skompilowany statycznie edytor,
41 który przydaje siê przy awarii systemu.
42
43 %prep
44 %setup -q
45
46 %build
47 CC="%{__cc} %{rpmcflags}"; export CC
48 LDFLAGS="-static %{rpmldflags}"
49 %configure \
50         --without-x \
51         --datadir=%{_datadir}/elvis
52         
53 %{__make} LIBS="-ltinfo"
54 mv -f elvis elvis.static
55
56 %{__make} clean
57
58 LDFLAGS="%{rpmldflags}"
59 %configure \
60         --with-x \
61         --datadir=%{_datadir}/elvis
62
63 %{__make} LIBS="-ltinfo -lX11 -L/usr/X11R6/lib"
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT/{bin,%{_bindir},%{_mandir}/man1,%{_datadir}/elvis}
68
69 install elvis ref $RPM_BUILD_ROOT%{_bindir}
70 install elvis.static $RPM_BUILD_ROOT/bin/vi
71 install lib/*.man $RPM_BUILD_ROOT%{_mandir}/man1
72
73 rm -f   lib/*.man
74 mv -f lib/license LICENSE
75 install lib/* $RPM_BUILD_ROOT%{_libdir}/elvis
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %files
81 %defattr(644,root,root,755)
82 %doc LICENSE BUGS 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.061328 seconds and 3 git commands to generate.