mirror of
https://github.com/tildeclub/ex-vi.git
synced 2026-06-23 20:29:24 +00:00
Initial revision
This commit is contained in:
57
ex.spec
Normal file
57
ex.spec
Normal file
@@ -0,0 +1,57 @@
|
||||
#
|
||||
# Sccsid @(#)ex.spec 1.6 (gritter) 11/27/04
|
||||
#
|
||||
Summary: A port of the traditional ex/vi editors
|
||||
Name: ex
|
||||
Version: 041202
|
||||
Release: 1
|
||||
License: BSD
|
||||
Source: %{name}-%{version}.tar.bz2
|
||||
Group: System Environment/Base
|
||||
Vendor: Gunnar Ritter <Gunnar.Ritter@pluto.uni-freiburg.de>
|
||||
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. It
|
||||
was enhanced to support most of the additions in System V and POSIX.2,
|
||||
and international character sets (including UTF-8).
|
||||
|
||||
%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}
|
||||
Reference in New Issue
Block a user