Name: ansifilter Summary: ANSI terminal escape code converter Version: 1.7 Release: 1 Group: Development/Tools License: GPLv3 URL: http://www.andre-simon.de/doku/ansifilter/en/ansifilter.html Source0: http://www.andre-simon.de/zip/%{name}-%{version}.tar.bz2 Source1: http://www.andre-simon.de/zip/%{name}-%{version}.tar.bz2.asc Patch0: %{name}-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: coreutils %description Ansifilter handles text files containing ANSI terminal escape codes. The command sequences may be stripped or be interpreted to generate formatted output (HTML, RTF, TeX, LaTeX, BBCode). %prep %setup -q -n %{name} %patch0 %build make %install export PATH=/opt/freeware/bin:$PATH [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make install DESTDIR=${RPM_BUILD_ROOT} /usr/bin/strip -X32_64 ${RPM_BUILD_ROOT}%{_bindir}/* || : gunzip ${RPM_BUILD_ROOT}%{_mandir}/man1/*.gz 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(-,root,system,-) %doc ChangeLog COPYING INSTALL README %{_bindir}/* %{_mandir}/man1/* /usr/bin/* %changelog * Tue Apr 30 2013 Michael Perzl - 1.7-1 - first version for AIX V5.1 and higher