Files
perl-Regexp-Parser/perl-Regexp-Parser.spec
2025-08-12 18:16:50 +02:00

99 lines
3.4 KiB
RPMSpec

#
# spec file for package perl-Regexp-Parser
#
# 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 Regexp-Parser
Name: perl-Regexp-Parser
Version: 0.230.0
Release: 0
# 0.23 -> normalize -> 0.230.0
%define cpan_version 0.23
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Base class for parsing regexes
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/T/TO/TODDR/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
Provides: perl(Perl6::Rule::Parser)
Provides: perl(Regexp::Parser) = %{version}
Provides: perl(Regexp::Parser::__object__)
Provides: perl(Regexp::Parser::alnum)
Provides: perl(Regexp::Parser::anchor)
Provides: perl(Regexp::Parser::anyof)
Provides: perl(Regexp::Parser::anyof_char)
Provides: perl(Regexp::Parser::anyof_class)
Provides: perl(Regexp::Parser::anyof_close)
Provides: perl(Regexp::Parser::anyof_range)
Provides: perl(Regexp::Parser::assertion)
Provides: perl(Regexp::Parser::branch)
Provides: perl(Regexp::Parser::close)
Provides: perl(Regexp::Parser::clump)
Provides: perl(Regexp::Parser::digit)
Provides: perl(Regexp::Parser::eval)
Provides: perl(Regexp::Parser::exact)
Provides: perl(Regexp::Parser::flags)
Provides: perl(Regexp::Parser::group)
Provides: perl(Regexp::Parser::groupp)
Provides: perl(Regexp::Parser::ifmatch)
Provides: perl(Regexp::Parser::ifthen)
Provides: perl(Regexp::Parser::logical)
Provides: perl(Regexp::Parser::minmod)
Provides: perl(Regexp::Parser::open)
Provides: perl(Regexp::Parser::prop)
Provides: perl(Regexp::Parser::quant)
Provides: perl(Regexp::Parser::ref)
Provides: perl(Regexp::Parser::reg_any)
Provides: perl(Regexp::Parser::space)
Provides: perl(Regexp::Parser::suspend)
Provides: perl(Regexp::Parser::tail)
Provides: perl(Regexp::Parser::unlessm)
%undefine __perllib_provides
%{perl_requires}
%description
This module parses regular expressions (regexes). Its default "grammar" is
Perl 5.8.4's regex set. Grammar is quoted because the module does not so
much define a grammar as let each matched node state what it expects to
match next, but there is not currently a way of extracting a complete
grammar. This may change in future versions.
This module is designed as a replacement (though not drop-in) for my old
_YAPE::Regex_ modules.
%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