Files
perl-Data-SearchEngine/perl-Data-SearchEngine.spec

76 lines
2.4 KiB
RPMSpec

#
# spec file for package perl-Data-SearchEngine
#
# Copyright (c) 2015 SUSE LINUX 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-Data-SearchEngine
Version: 0.33
Release: 0
%define cpan_name Data-SearchEngine
Summary: Role for Search Engine Abstraction
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Data-SearchEngine/
Source0: http://www.cpan.org/authors/id/A/AN/ANELSON/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Data::Paginator) >= 0.03
BuildRequires: perl(JSON::Any)
BuildRequires: perl(JSON::XS)
BuildRequires: perl(Moose)
BuildRequires: perl(Moose::Role)
BuildRequires: perl(MooseX::Storage)
BuildRequires: perl(MooseX::Storage::Deferred)
Requires: perl(Data::Paginator) >= 0.03
Requires: perl(JSON::Any)
Requires: perl(JSON::XS)
Requires: perl(Moose)
Requires: perl(Moose::Role)
Requires: perl(MooseX::Storage)
Requires: perl(MooseX::Storage::Deferred)
%{perl_requires}
%description
There are *lots* of search engine libraries. Each has a different
interface. The goal of Data::SearchEngine is to provide a simple, extensive
set of classes and roles that you can use to wrap a search implementation.
The net result will be an easily swappable backend with a common set of
features.
%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 ignore.txt LICENSE README README.mkdn
%changelog