ex-vi/ex.spec

63 lines
1.6 KiB
RPMSpec
Raw Normal View History

2004-12-04 13:17:05 +00:00
#
2024-10-10 20:04:44 +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
2024-10-10 20:04:44 +00:00
Name: ex-vi
Version: 10102024
2004-12-04 13:17:05 +00:00
Release: 1
License: BSD
2024-10-10 20:09:32 +00:00
Source: %{name}-%{version}.tar.gz
2004-12-04 13:17:05 +00:00
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
# prefix applies to bindir, libexecdir, and mandir.
2024-10-10 20:04:44 +00:00
%global debug_package %{nil}
%define prefix /usr/archaic
%define bindir %{prefix}/bin
%define libexecdir %{prefix}/lib
%define mandir %{prefix}/share/man/man
2004-12-04 13:17:05 +00:00
2024-10-11 00:35:29 +00:00
%define preservedir /var/archaic/preserve
2004-12-04 13:17:05 +00:00
# install command
2024-10-10 20:04:44 +00:00
%define ucbinstall install
2004-12-04 13:17:05 +00:00
2024-10-10 20:04:44 +00:00
%define cflags -Os -fomit-frame-pointer
2004-12-04 13:17:05 +00:00
2024-10-10 20:04:44 +00:00
%define makeflags PREFIX=%{prefix} BINDIR=%{bindir} LIBEXECDIR=%{libexecdir} MANDIR=%{mandir} PRESERVEDIR=%{preservedir} INSTALL=%{ucbinstall} RPMCFLAGS="%{cflags}"
2004-12-04 13:17:05 +00:00
%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
2024-10-10 20:04:44 +00:00
%changelog
* Thu Oct 10 2024 Your Name <you@example.com> - 10102024-1
- Initial build of ex-vi package.
2004-12-04 13:17:05 +00:00
%prep
rm -rf %{buildroot}
%setup
%build
make %{makeflags}
%install
[ -d %{preservedir} ] || mkdir -p %{buildroot}%{preservedir}
2004-12-04 13:17:05 +00:00
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}