Subversion Repositories planix.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
99 7u83 1
#
2
# Sccsid @(#)ex.spec	1.7 (gritter) 1/22/05
3
#
4
Summary: A port of the traditional ex/vi editors
5
Name: ex
6
Version: 050325
7
Release: 1
8
License: BSD
9
Source: %{name}-%{version}.tar.bz2
10
Group: System Environment/Base
11
Vendor: Gunnar Ritter <Gunnar.Ritter@pluto.uni-freiburg.de>
12
URL: <http://ex-vi.sourceforge.net>
13
BuildRoot: %{_tmppath}/%{name}-root
14
 
15
Requires: /etc/termcap
16
 
17
# prefix applies to bindir, libexecdir, and mandir.
18
%define	prefix		/usr
19
%define	bindir		%{prefix}/5bin
20
%define	libexecdir	%{prefix}/5lib
21
%define	mandir		%{prefix}/share/man/5man
22
 
23
%define	preservedir	/var/preserve
24
 
25
# install command
26
%define	ucbinstall	install
27
 
28
%define	cflags		-Os -fomit-frame-pointer
29
 
30
%define	makeflags	PREFIX=%{prefix} BINDIR=%{bindir} LIBEXECDIR=%{libexecdir} MANDIR=%{mandir} PRESERVEDIR=%{preservedir} INSTALL=%{ucbinstall} RPMCFLAGS="%{cflags}"
31
 
32
%description
33
This is a port of the traditional ex and vi editor implementation as
34
found on 2BSD and 4BSD. It was enhanced to support most of the additions
35
in System V and POSIX.2, and international character sets like UTF-8 and
36
many East Asian encodings.
37
 
38
%prep
39
rm -rf %{buildroot}
40
%setup
41
 
42
%build
43
make %{makeflags}
44
 
45
%install
46
make DESTDIR=%{buildroot} %{makeflags} install
47
 
48
%clean
49
cd ..; rm -rf %{_builddir}/%{name}-%{version}
50
rm -rf %{buildroot}
51
 
52
%files
53
%defattr(-,root,root)
54
%doc Changes LICENSE README TODO
55
%{bindir}/*
56
%{libexecdir}/*
57
%{mandir}/man1/*
58
%{preservedir}