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