# # spec file for package perl-Search-Tools # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: perl-Search-Tools Version: 0.63 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}/%{name}-%{version}-build %{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. %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} %changelog