File perl-Lucene-QueryParser.spec of Package perl-Lucene-QueryParser
#
# spec file for package perl-Lucene-QueryParser
#
# Copyright (c) 2015 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-Lucene-QueryParser
Version: 1.04
Release: 0
%define cpan_name Lucene-QueryParser
Summary: Turn a Lucene query into a Perl data structure
License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Lucene-QueryParser/
Source: http://www.cpan.org/authors/id/S/SI/SIMON/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
#BuildRequires: perl(Plucene::Index::Term)
#BuildRequires: perl(Plucene::Search::BooleanClause)
#BuildRequires: perl(Plucene::Search::BooleanQuery)
#BuildRequires: perl(Plucene::Search::PhraseQuery)
#BuildRequires: perl(Plucene::Search::Query)
#BuildRequires: perl(Plucene::Search::TermQuery)
%{perl_requires}
%description
This module parses a Lucene query, as defined by
http://lucene.sourceforge.net/cgi-bin/faq/faqmanager.cgi?file=chapter.searc
h&toc=faq#q5
It deals with fields, types, phrases, subqueries, and so on; everything
handled by the 'SimpleQuery' class in Lucene. The data structure is similar
to the one given above, and is pretty self-explanatory.
The other function, 'deparse_query' turns such a data structure back into a
Lucene query string. This is useful if you've just been mucking about with
the data.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%changelog