4a0ff1d
Name:           perl-Text-Context-EitherSide
4a0ff1d
Version:        1.4
4a0ff1d
Release:        1%{?dist}
4a0ff1d
Summary:        Get n words either side of search keywords
4a0ff1d
License:        Artistic 2.0
4a0ff1d
Group:          Development/Libraries
4a0ff1d
URL:            http://search.cpan.org/dist/Text-Context-EitherSide/
4a0ff1d
Source0:        http://www.cpan.org/authors/id/T/TM/TMTM/Text-Context-EitherSide-%{version}.tar.gz
4a0ff1d
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
4a0ff1d
BuildArch:      noarch
4a0ff1d
BuildRequires:  perl(ExtUtils::MakeMaker)
4a0ff1d
BuildRequires:  perl(Test::More)
4a0ff1d
BuildRequires:  perl(Test::Pod)
4a0ff1d
BuildRequires:  perl(Test::Pod::Coverage)
4a0ff1d
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
4a0ff1d
4a0ff1d
%description
4a0ff1d
Suppose you have a large piece of text - typically, say, a web page or a
4a0ff1d
mail message. And now suppose you've done some kind of full-text search on
4a0ff1d
that text for a bunch of keywords, and you want to display the context in
4a0ff1d
which you found the keywords inside the body of the text.
4a0ff1d
4a0ff1d
%prep
4a0ff1d
%setup -q -n Text-Context-EitherSide-%{version}
4a0ff1d
4a0ff1d
%build
4a0ff1d
%{__perl} Makefile.PL INSTALLDIRS=vendor
4a0ff1d
make %{?_smp_mflags}
4a0ff1d
4a0ff1d
%install
4a0ff1d
rm -rf $RPM_BUILD_ROOT
4a0ff1d
4a0ff1d
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
4a0ff1d
4a0ff1d
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
4a0ff1d
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
4a0ff1d
4a0ff1d
%{_fixperms} $RPM_BUILD_ROOT/*
4a0ff1d
4a0ff1d
%check
4a0ff1d
make test
4a0ff1d
4a0ff1d
%clean
4a0ff1d
rm -rf $RPM_BUILD_ROOT
4a0ff1d
4a0ff1d
%files
4a0ff1d
%defattr(-,root,root,-)
4a0ff1d
%doc Changes README
4a0ff1d
%{perl_vendorlib}/*
4a0ff1d
%{_mandir}/man3/*
4a0ff1d
4a0ff1d
%changelog
4a0ff1d
* Mon May 04 2009 Iain Arnell <iarnell@gmail.com> 1.4-1
4a0ff1d
- Specfile autogenerated by cpanspec 1.77.