Files
perl-Search-Query/perl-Search-Query.spec
2025-08-12 18:17:01 +02:00

84 lines
2.7 KiB
RPMSpec

#
# spec file for package perl-Search-Query
#
# 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 Search-Query
Name: perl-Search-Query
Version: 0.307.0
Release: 0
# 0.307 -> normalize -> 0.307.0
%define cpan_version 0.307
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Polyglot query parsing
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/K/KA/KARMAN/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Data::Dump)
BuildRequires: perl(Data::Transformer)
BuildRequires: perl(Module::Pluggable)
BuildRequires: perl(Moo)
BuildRequires: perl(Type::Tiny)
BuildRequires: perl(namespace::autoclean) >= 0.28
Requires: perl(Data::Dump)
Requires: perl(Data::Transformer)
Requires: perl(Module::Pluggable)
Requires: perl(Moo)
Requires: perl(Type::Tiny)
Requires: perl(namespace::autoclean) >= 0.28
Provides: perl(Search::Query) = %{version}
Provides: perl(Search::Query::Clause) = %{version}
Provides: perl(Search::Query::Dialect) = %{version}
Provides: perl(Search::Query::Dialect::Native) = %{version}
Provides: perl(Search::Query::Dialect::SQL) = %{version}
Provides: perl(Search::Query::Dialect::SWISH) = %{version}
Provides: perl(Search::Query::Field) = %{version}
Provides: perl(Search::Query::Field::SQL) = %{version}
Provides: perl(Search::Query::Field::SWISH) = %{version}
Provides: perl(Search::Query::Parser) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
This class provides documentation and class methods.
Search::Query started as a fork of the excellent Search::QueryParser module
and was then rewritten to provide support for alternate query dialects.
%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 README
%changelog