Summary: Elvis is a clone of vi/ex Name: elvis Version: 2.2f Release: 1 License: Artistic (see LICENSE) Group: Applications/Editors Source0: ftp://ftp.cs.pdx.edu/pub/elvis/unreleased/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description Elvis is one of the most popular Vi clones. Its swift, well documented and has many features. %prep %setup -q %build ./configure \ --with-x=yes \ --datadir=%{_datadir}/%{name} \ aix make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_bindir} mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/%{name} cp elvis ref ${RPM_BUILD_ROOT}%{_bindir} chmod 0755 ${RPM_BUILD_ROOT}%{_bindir}/* /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : cp lib/elvis.man ${RPM_BUILD_ROOT}%{_mandir}/man1/elvis.1 cp lib/ref.man ${RPM_BUILD_ROOT}%{_mandir}/man1/ref.1 chmod 0644 ${RPM_BUILD_ROOT}%{_mandir}/man1/* rm -f lib/*.man mv -f lib/license LICENSE cp lib/* ${RPM_BUILD_ROOT}%{_datadir}/%{name} chmod 0644 ${RPM_BUILD_ROOT}%{_datadir}/%{name}/* cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(644,root,system,-) %doc LICENSE BUGS README.html %attr(755,root,system) %{_bindir}/%{name} %attr(755,root,system) %{_bindir}/ref %{_mandir}/man1/* %{_datadir}/%{name} /usr/bin/%{name} /usr/bin/ref %changelog * Tue Jul 06 2010 Michael Perzl - 2.2f-1 - first version for AIX V5.1 and higher