ex-vi/ex.spec

59 lines
1.4 KiB
RPMSpec
Raw Normal View History

2004-12-04 13:17:05 +00:00
#
2024-10-10 18:04:47 +00:00
# Sccsid @(#)ex.spec 1.7 (gritter) 1/22/05
2004-12-04 13:17:05 +00:00
#
Summary: A port of the traditional ex/vi editors
Name: ex
2024-10-10 18:04:47 +00:00
Version: 050325
2004-12-04 13:17:05 +00:00
Release: 1
License: BSD
Source: %{name}-%{version}.tar.bz2
Group: System Environment/Base
2024-10-10 18:04:47 +00:00
Vendor: Gunnar Ritter <Gunnar.Ritter@pluto.uni-freiburg.de>
2004-12-04 13:17:05 +00:00
URL: <http://ex-vi.sourceforge.net>
BuildRoot: %{_tmppath}/%{name}-root
Requires: /etc/termcap
# prefix applies to bindir, libexecdir, and mandir.
%define prefix /usr
%define bindir %{prefix}/5bin
%define libexecdir %{prefix}/5lib
%define mandir %{prefix}/share/man/5man
%define preservedir /var/preserve
# install command
%define ucbinstall install
%define cflags -Os -fomit-frame-pointer
%define makeflags PREFIX=%{prefix} BINDIR=%{bindir} LIBEXECDIR=%{libexecdir} MANDIR=%{mandir} PRESERVEDIR=%{preservedir} INSTALL=%{ucbinstall} RPMCFLAGS="%{cflags}"
%description
This is a port of the traditional ex and vi editor implementation as
found on 2BSD and 4BSD. It was enhanced to support most of the additions
in System V and POSIX.2, and international character sets like UTF-8 and
many East Asian encodings.
2004-12-04 13:17:05 +00:00
%prep
rm -rf %{buildroot}
%setup
%build
make %{makeflags}
%install
make DESTDIR=%{buildroot} %{makeflags} install
%clean
cd ..; rm -rf %{_builddir}/%{name}-%{version}
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc Changes LICENSE README TODO
%{bindir}/*
%{libexecdir}/*
%{mandir}/man1/*
%{preservedir}