Add packaging, do not strip binaries, fix paths
[platform/upstream/vi.git] / packaging / vi.spec
1 Name:           vi
2 Version:        050325
3 Release:        1
4 License:        BSD-4-Clause-UC and BSD-4-Clause-Caldera
5
6 Summary:        The Traditional Vi
7
8 Url:            http://ex-vi.sourceforge.net/
9 Group:          Base/Utilities
10 Source:         http://prdownloads.sourceforge.net/ex-vi/ex-%{version}.tar.bz2
11 Source1:        vi.manifest
12 BuildRequires:  gcc
13 BuildRequires:  make
14 BuildRequires:  glibc-devel >= 2.2.2
15 BuildRequires:  ncurses-devel
16 Conflicts:      vim-base
17
18 %description
19 Compared to most of its many clones, the traditional vi is a rather small
20 program just with its extremely powerful editing interface, but lacking fancy
21 features like multiple undo, multiple screens, or syntax highlighting.
22 This port of vi has generally preserved the original style, terminal control,
23 and feature set. It adds support for international character sets, including
24 multibyte encodings such as UTF-8, and some minor enhancements that were not
25 present in BSD vi 3.7, but had been included in later vi versions for System V
26 or in POSIX.2.
27
28 %prep
29 %setup -q -n ex-%{version}
30
31 cp %{SOURCE1} .
32
33 %build
34 export CFLAGS="%{optflags} -Wall -pipe -fno-strict-aliasing"
35 export CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/-D_FORTIFY_SOURCE=1}
36
37 make
38
39 %install
40 %make_install
41
42 rm -Rf %{buildroot}%{_mandir}
43
44 %files
45 %defattr(-,root,root,-)
46 %manifest vi.manifest
47 %{_bindir}/edit
48 %{_bindir}/ex
49 %{_bindir}/vedit
50 %{_bindir}/vi
51 %{_bindir}/view
52 %{_libexecdir}/expreserve
53 %{_libexecdir}/exrecover