# # spec file for package perl-Data-SearchEngine # # Copyright (c) 2024 SUSE LLC # # 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 https://bugs.opensuse.org/ # %define cpan_name Data-SearchEngine Name: perl-Data-SearchEngine Version: 0.330.0 Release: 0 # 0.33 -> normalize -> 0.330.0 %define cpan_version 0.33 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Role for search engine abstraction URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/A/AN/ANELSON/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Data::Paginator) >= 0.30.0 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.30.0 Requires: perl(JSON::Any) Requires: perl(JSON::XS) Requires: perl(Moose) Requires: perl(Moose::Role) Requires: perl(MooseX::Storage) Requires: perl(MooseX::Storage::Deferred) Provides: perl(Data::SearchEngine) = %{version} Provides: perl(Data::SearchEngine::Item) = %{version} Provides: perl(Data::SearchEngine::Meta::Attribute::Trait::Digestable) = %{version} Provides: perl(Data::SearchEngine::Modifiable) = %{version} Provides: perl(Data::SearchEngine::Paginator) = %{version} Provides: perl(Data::SearchEngine::Query) = %{version} Provides: perl(Data::SearchEngine::Results) = %{version} Provides: perl(Data::SearchEngine::Results::Faceted) = %{version} Provides: perl(Data::SearchEngine::Results::Spellcheck) = %{version} Provides: perl(Data::SearchEngine::Results::Spellcheck::Suggestion) = %{version} Provides: perl(Moose::Meta::Attribute::Custom::Trait::Digestable) = %{version} %undefine __perllib_provides %{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 %autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor %make_build %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %doc Changes ignore.txt README README.mkdn %license LICENSE %changelog