%define upstream_name KinoSearch %define upstream_version 0.313 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 2 Summary: Surround highlight bits with tags License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module//%{upstream_name}-%{upstream_version}.tar.gz Patch0: KinoSearch-0.311-format_security.patch BuildRequires: perl(Devel::PPPort) >= 3.130.0 BuildRequires: perl(ExtUtils::CBuilder) >= 0.180.0 BuildRequires: perl(ExtUtils::ParseXS) >= 2.160.0 BuildRequires: perl(JSON::XS) >= 1.530.0 BuildRequires: perl(Lingua::Stem::Snowball) >= 0.952.0 BuildRequires: perl(Lingua::StopWords) >= 0.90.0 BuildRequires: perl(Module::Build) >= 0.360.0 BuildRequires: perl(Parse::RecDescent) BuildRequires: perl-devel %description KinoSearch is a loose port of the Java search engine library Apache Lucene, written in Perl and C. The archetypal application is website search, but it can be put to many different uses. %prep %setup -q -n %{upstream_name}-%{upstream_version} %patch0 -p2 -b .fmt %build %{__perl} Build.PL installdirs=vendor ./Build %check ./Build test %install %{__rm} -rf %{buildroot} ./Build install destdir=%{buildroot} %clean rm -rf %buildroot %files %defattr(-,root,root) %doc Changes META.yml README %{_mandir}/man3/* %perl_vendorlib/* %changelog * Sun Jun 12 2011 sander85 <sander85> 0.313.0-2.mga2 + Revision: 105421 - Rebuild for perl 5.14 * Mon Apr 04 2011 jquelin <jquelin> 0.313.0-1.mga1 + Revision: 80377 - update to 0.313 * Tue Mar 29 2011 jquelin <jquelin> 0.311.0-1.mga1 + Revision: 78797 - update to 0.311 * Sun Jan 23 2011 jquelin <jquelin> 0.165.0-4.mga1 + Revision: 33894 - mageia rebuild - imported package perl-KinoSearch