Summary: cgrep Name: cgrep Version: 8.15 Release: 1 License: Lucent Public License Group: Productivity/Text/Utilities URL: http://www.bell-labs.com/project/wwexptools/cgrep/ Source0: %{name}-%{version}.tar.gz Patch0: %{name}-%{version}-aix.patch BuildRoot: %{_tmppath}/making_of_%{name}_%{version} BuildRequires: autoconf, automake, m4, libtool %description cgrep provides all the features of grep, egrep, and fgrep, with greatly enhanced performance (see the section on PERFORMANCE in the man page) along with many additional features, two of which are the ability to output the context (surrounding lines) of the matching lines and approximate matching. %prep %setup -q %patch0 %build ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} make %{?smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : 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 AUTHORS COPYING ChangeLog INSTALL NEWS README %{_bindir}/* %{_mandir}/man1/* /usr/bin/* %changelog * Wed Jun 26 2013 Michael Perzl - 8.15-1 - first version for AIX V5.1 and higher