# vim: set sw=4 ts=4 et nu: Name: perl-Search-Tools Version: 0.57 Release: 0 Summary: High-performance tools for building search applications # ftp://ftp.cpan.org/pub/CPAN/authors/id/K/KA/KARMAN/Search-Tools-%{version}.tar.gz Source: Search-Tools-%{version}.tar.bz2 URL: http://search.cpan.org/dist/Search-Tools Group: Development/Libraries/Perl License: Perl License BuildRoot: %{_tmppath}/build-%{name}-%{version} %{perl_requires} BuildRequires: perl-macros BuildRequires: make BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Search::Query) >= 0.18 BuildRequires: perl(Rose::ObjectX::CAF) >= 0.03 BuildRequires: perl(Encoding::FixLatin) BuildRequires: perl(Encode) BuildRequires: perl(Test::More) >= 0.94 BuildRequires: perl(Data::Dump) BuildRequires: perl(File::Slurp) Requires: perl(Search::Query) >= 0.18 Requires: perl(Rose::ObjectX::CAF) >= 0.03 Requires: perl(Encoding::FixLatin) Requires: perl(Encode) Requires: perl(Data::Dump) Requires: perl(File::Slurp) %description Search::Tools is a set of utilities for building search applications. Rather than adhering to a particular search application or framework, the goal of Search::Tools is to provide general-purpose methods for common search application features. Think of Search::Tools like a toolbox rather than a hammer. Examples include: * Parsing search queries for the meaningful terms * Rich regular expressions for locating terms in the original indexed documents * Contextual snippets showing query terms * Highlighting of terms in context * Spell check terms and suggestions of alternate spellings. Search::Tools is derived from some of the features in HTML::HiLiter and SWISH::HiLiter, but has been re-written with an eye to accomodating more general purpose features. %debug_package %prep %setup -q -n "Search-Tools-%{version}" %__sed -i '/^auto_install/d' Makefile.PL %__chmod 0644 README Changes find . -type f -name '*.pm' -exec %__chmod 0644 {} \; %build %__perl Makefile.PL PREFIX="%{_prefix}" %__make %{?jobs:-j%{jobs}} %install %perl_make_install %perl_process_packlist %if 0%{?suse_version} == 0 || 0%{?suse_version} >= 1120 %check %__make test %endif %clean %{?buildroot:%__rm -rf "%{buildroot}"} %files %defattr(-,root,root) %doc Changes README %dir %{perl_vendorarch}/Search %{perl_vendorarch}/Search/Tools.pm %{perl_vendorarch}/Search/Tools %dir %{perl_vendorarch}/auto/Search %{perl_vendorarch}/auto/Search/Tools %doc %{perl_man3dir}/Search::Tools.%{perl_man3ext}%{ext_man} %doc %{perl_man3dir}/Search::Tools::*.%{perl_man3ext}%{ext_man}