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

98 lines
3.3 KiB
RPMSpec

#
# spec file for package perl-Data-SearchEngine
#
# 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-Data-SearchEngine
Version: 0.28
Release: 0
Summary: A role for search engine abstraction
Source: http://search.cpan.org/CPAN/authors/id/G/GP/GPHAT/Data-SearchEngine-%{version}.tar.gz
Url: http://search.cpan.org/dist/Data-SearchEngine
Group: Development/Libraries/Perl
License: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl-macros
BuildRequires: make
BuildRequires: perl(strict)
BuildRequires: perl(Test::More)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
BuildRequires: perl(Moose::Role)
BuildRequires: perl(Data::Paginator) >= 0.03
BuildRequires: perl(JSON::XS)
BuildRequires: perl(MooseX::Storage)
BuildRequires: perl(MooseX::Storage::Deferred)
BuildRequires: perl(Digest::MD5)
BuildRequires: perl(JSON::Any)
BuildRequires: perl(Moose)
Requires: perl(Moose::Role)
Requires: perl(Data::Paginator) >= 0.03
Requires: perl(JSON::XS)
Requires: perl(MooseX::Storage)
Requires: perl(MooseX::Storage::Deferred)
Requires: perl(Digest::MD5)
Requires: perl(JSON::Any)
Requires: perl(Moose)
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%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 "Data-SearchEngine-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?_smp_flags}
%install
%perl_make_install
%perl_process_packlist
%check
%__make test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes ignore.txt LICENSE README README.mkdn
%dir %{perl_vendorlib}/Data
%{perl_vendorlib}/Data/SearchEngine.pm
%{perl_vendorlib}/Data/SearchEngine
%dir %{perl_vendorlib}/Moose
%dir %{perl_vendorlib}/Moose/Meta
%dir %{perl_vendorlib}/Moose/Meta/Attribute
%dir %{perl_vendorlib}/Moose/Meta/Attribute/Custom
%dir %{perl_vendorlib}/Moose/Meta/Attribute/Custom/Trait
%{perl_vendorlib}/Moose/Meta/Attribute/Custom/Trait/Digestable.pm
%doc %{perl_man3dir}/Data::SearchEngine.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Data::SearchEngine::*.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Moose::Meta::Attribute::Custom::Trait::Digestable.%{perl_man3ext}%{ext_man}
%changelog