File cgrep.spec of Package cgrep

Summary:	cgrep
Name:		cgrep
Version:	8.13
Release:	0
License:	GPL
Group:		Productivity/Text/Utilities
Source:		%{name}-%{version}.tar.gz
BuildRoot:	%{_tmppath}/making_of_%{name}_%{version}
Packager:	Alcatel-Lucent Central Exptools Administrator <exptools@alcatel-lucent.com>
URL:		http://www.bell-labs.com/project/wwexptools/cgrep/

#----------------------------------------------------------
%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

%build
CFLAGS=-O2 ./configure \
  --prefix=%{_prefix} \
  --mandir=%{_mandir} \
  --datadir=%{_datadir} \
  --libdir=%{_libdir} \
  --sysconfdir=%{_sysconfdir} \
  --enable-docdir=%{_defaultdocdir}
make 

%install
make DESTDIR=${RPM_BUILD_ROOT} install

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%{_docdir}/*
%{_bindir}/*
%{_mandir}/man?/*

openSUSE Build Service is sponsored by