Compare commits

...

10 Commits

Author SHA256 Message Date
8d21b2bc76 Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Regexp-Grammars?expand=0&rev=15
2024-08-16 21:31:24 +00:00
b5366600da Accepting request 1006065 from devel:languages:perl:autoupdate
- updated to 1.058
   see /usr/share/doc/packages/perl-Regexp-Grammars/Changes
   
  1.058  
 
    * Added a CONTRIBUTING file to the distribution.
      (Thanks, Marc!)
 
    * Removed unneeded dependency on B::Hooks::Parser
      (Thanks, Lars!)
 
    * Backed out a fix for a very subtle bug with automatic whitespace matching under <debug: on>
      The original fix in 1.057 was insufficient. This will be fixed properly in the next release.
      (sorry, Malan!)

OBS-URL: https://build.opensuse.org/request/show/1006065
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Regexp-Grammars?expand=0&rev=14
2022-09-27 15:34:38 +00:00
Lars Vogdt
7c9dd300d0 Accepting request 808382 from devel:languages:perl:autoupdate
updated to 1.057
   see /usr/share/doc/packages/perl-Regexp-Grammars/Changes
  
  
  1.056  
  
      * Silenced 'undefined' warning from context-string tracking
        (thanks Hugo)
  
  
  1.057  
  
      * Fixed a very subtle bug with automatic whitespace matching under <debug: on>
        (thanks, Malan!)

OBS-URL: https://build.opensuse.org/request/show/808382
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Regexp-Grammars?expand=0&rev=13
2020-05-28 22:24:54 +00:00
Lars Vogdt
5c9dc3765c Accepting request 801778 from devel:languages:perl:autoupdate
updated to 1.055
   see /usr/share/doc/packages/perl-Regexp-Grammars/Changes
  
  
  1.055  
  
      * Fixed bug in parsing (??{...}) constructs
        (thanks Hugo)

OBS-URL: https://build.opensuse.org/request/show/801778
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Regexp-Grammars?expand=0&rev=12
2020-05-11 08:10:56 +00:00
8ec83ca180 Skip a lot of blank lines
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Regexp-Grammars?expand=0&rev=11
2020-05-06 14:04:22 +00:00
36cfb12c8b Accepting request 800619 from devel:languages:perl:autoupdate
updated to 1.054
   see /usr/share/doc/packages/perl-Regexp-Grammars/Changes
  
  
  1.053  
  
      * Fixed irritating "Satisified" typo in interface
        (thanks, Stéphane!)
  
      * Fixed equally irritating "???/!!!" typo in docs
        (thanks, Stéphane!)
  
      * Other minor doc fixes
  
      * INCOMPATIBLE CHANGE: <, %, and %% are now never treated as literal.
        They are now always either part of the module's metasyntax,
        or else a fatal error. All literal <, %, and %% characters
        must henceforth be quoted by backslashing: \<, \%, and \%\%
        (thanks, Hugo!)
  
  
  
  1.054  
  
      * Fixed bug in positive lookahead translation
        (thanks Hugo!)

OBS-URL: https://build.opensuse.org/request/show/800619
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Regexp-Grammars?expand=0&rev=10
2020-05-06 14:00:58 +00:00
Lars Vogdt
c357aaed73 Accepting request 716719 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/716719
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Regexp-Grammars?expand=0&rev=9
2019-07-19 14:47:25 +00:00
Stephan Kulow
1a11339a3a Accepting request 715815 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/715815
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Regexp-Grammars?expand=0&rev=8
2019-07-17 05:26:07 +00:00
Lars Vogdt
a080b725f3 Accepting request 698579 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/698579
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Regexp-Grammars?expand=0&rev=7
2019-04-27 10:29:06 +00:00
dfbba1f0a1 Accepting request 647213 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/647213
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Regexp-Grammars?expand=0&rev=6
2018-11-08 15:11:03 +00:00
4 changed files with 147 additions and 116 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d7718d9bb0d4259eabf326838e3f841b440c4e959faf9615d9ad9c345f4a3d6f
size 257602

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ea88d58e251674fae39b49f4d3b5342eaccb8fcb55856cd304aa1a5ff3d41c92
size 265786

View File

@@ -1,25 +1,139 @@
-------------------------------------------------------------------
Fri Sep 16 03:08:00 UTC 2022 - Tina Müller <timueller+perl@suse.de>
- updated to 1.058
see /usr/share/doc/packages/perl-Regexp-Grammars/Changes
1.058 Thu Sep 15 01:30:29 2022
* Added a CONTRIBUTING file to the distribution.
(Thanks, Marc!)
* Removed unneeded dependency on B::Hooks::Parser
(Thanks, Lars!)
* Backed out a fix for a very subtle bug with automatic whitespace matching under <debug: on>
The original fix in 1.057 was insufficient. This will be fixed properly in the next release.
(sorry, Malan!)
-------------------------------------------------------------------
Sat May 23 03:10:44 UTC 2020 - Tina Müller <timueller+perl@suse.de>
updated to 1.057
see /usr/share/doc/packages/perl-Regexp-Grammars/Changes
1.056 Fri May 22 20:46:21 2020
* Silenced 'undefined' warning from context-string tracking
(thanks Hugo)
1.057 Fri May 22 22:06:11 2020
* Fixed a very subtle bug with automatic whitespace matching under <debug: on>
(thanks, Malan!)
-------------------------------------------------------------------
Fri May 8 03:12:51 UTC 2020 - Tina Müller <timueller+perl@suse.de>
updated to 1.055
see /usr/share/doc/packages/perl-Regexp-Grammars/Changes
1.055 Thu May 7 22:53:14 2020
* Fixed bug in parsing (??{...}) constructs
(thanks Hugo)
-------------------------------------------------------------------
Wed May 6 03:15:53 UTC 2020 - Tina Müller <timueller+perl@suse.de>
updated to 1.054
see /usr/share/doc/packages/perl-Regexp-Grammars/Changes
1.053 Sun May 3 06:41:38 2020
* Fixed irritating "Satisified" typo in interface
(thanks, Stéphane!)
* Fixed equally irritating "???/!!!" typo in docs
(thanks, Stéphane!)
* Other minor doc fixes
* INCOMPATIBLE CHANGE: <, %, and %% are now never treated as literal.
They are now always either part of the module's metasyntax,
or else a fatal error. All literal <, %, and %% characters
must henceforth be quoted by backslashing: \<, \%, and \%\%
(thanks, Hugo!)
1.054 Tue May 5 06:16:58 2020
* Fixed bug in positive lookahead translation
(thanks Hugo!)
-------------------------------------------------------------------
Fri Jul 19 06:02:31 UTC 2019 - Stephan Kulow <coolo@suse.com>
- updated to 1.052
see /usr/share/doc/packages/perl-Regexp-Grammars/Changes
1.052 Wed Jul 17 08:17:29 2019
* Fixed bug in <nocontext:> handling (thanks, Alex!)
-------------------------------------------------------------------
Tue Jul 16 10:02:13 UTC 2019 - Stephan Kulow <coolo@suse.com>
- updated to 1.051
see /usr/share/doc/packages/perl-Regexp-Grammars/Changes
1.051 Tue Jul 2 20:17:55 2019
* Documented %% operator
* Numerous POD nits fixed (thanks, Ruud and Alex!)
-------------------------------------------------------------------
Sat Apr 27 05:30:24 UTC 2019 - Stephan Kulow <coolo@suse.com>
- updated to 1.050
see /usr/share/doc/packages/perl-Regexp-Grammars/Changes
1.050 Sat Apr 27 08:38:21 2019
* Improved detection of explicit space matching in rules
(now handles \h and as well as \s)
* Improved transparency of debugger so that it no longer injects
spurious whitespace matching after debugged constructs
(Thanks, Louis!)
-------------------------------------------------------------------
Thu Nov 8 06:54:28 UTC 2018 - Stephan Kulow <coolo@suse.com>
- updated to 1.049
see /usr/share/doc/packages/perl-Regexp-Grammars/Changes
1.049 Fri Oct 5 06:55:49 2018
* Modified documentation of problems with "non-backtracking"
constructs, to cover new cases that have been discovered.
(Sorry, Hugo)
* Extended documentation of rules vs tokens with a short
example demonstrating the explicit equivalence
(thanks, Stefan)
* Miscellaneous POD fixes (thanks, Hugo)
* Clarified behaviour of <[MATCH=subrule]>* on zero match
(Thanks, Alex)
* Added %% operator for separated lists
with optional trailing separator
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Sep 27 06:05:57 UTC 2017 - coolo@suse.com Wed Sep 27 06:05:57 UTC 2017 - coolo@suse.com
- updated to 1.048 - updated to 1.048
see /usr/share/doc/packages/perl-Regexp-Grammars/Changes see /usr/share/doc/packages/perl-Regexp-Grammars/Changes
1.047 Tue Sep 26 15:41:13 2017 1.047 Tue Sep 26 15:41:13 2017
* Fixed misleading (mis-)documentation of <[MATCH=item]> * Fixed misleading (mis-)documentation of <[MATCH=item]>
(thanks, Felix!) (thanks, Felix!)
* Fixed handling of (?>...) construct * Fixed handling of (?>...) construct
(thanks, Hugo!) (thanks, Hugo!)
1.048 Wed Sep 27 06:20:49 2017 1.048 Wed Sep 27 06:20:49 2017
* Hid use of Regexp package from CPAN * Hid use of Regexp package from CPAN
(Thanks, Neil) (Thanks, Neil)
@@ -29,38 +143,25 @@ Mon Jun 13 07:36:07 UTC 2016 - coolo@suse.com
- updated to 1.045 - updated to 1.045
see /usr/share/doc/packages/perl-Regexp-Grammars/Changes see /usr/share/doc/packages/perl-Regexp-Grammars/Changes
1.042 Wed Sep 16 16:32:23 2015 1.042 Wed Sep 16 16:32:23 2015
* Prelimary attempt to support raw named captures as well as R::G syntax * Prelimary attempt to support raw named captures as well as R::G syntax
(may induce bugs, though none found in the test suite) (may induce bugs, though none found in the test suite)
* Fixed bug deep inside demo/demo_rfc5322.pl * Fixed bug deep inside demo/demo_rfc5322.pl
(Thanks, Dale!) (Thanks, Dale!)
* Replaced Lexical::Vars with B::Hooks::Parser for 5.22+ compatibility * Replaced Lexical::Vars with B::Hooks::Parser for 5.22+ compatibility
(Thanks Alex!) (Thanks Alex!)
1.043 Mon Dec 14 13:14:25 2015 1.043 Mon Dec 14 13:14:25 2015
* Eliminated redundant calls to setup() and teardown() for B::Hooks::Parser * Eliminated redundant calls to setup() and teardown() for B::Hooks::Parser
* Removed timeout test, as it cannot be reliably run across platforms * Removed timeout test, as it cannot be reliably run across platforms
much faster or slower than the author's development platform. much faster or slower than the author's development platform.
(Thanls Slavin) (Thanks Slavin)
1.044 Wed Dec 16 08:22:01 2015 1.044 Wed Dec 16 08:22:01 2015
* Yet another attempt to code around the changes in vars-inside-regexes * Yet another attempt to code around the changes in vars-inside-regexes
to preserve post-5.18 compatibility (Thanks, Kent!) to preserve post-5.18 compatibility (Thanks, Kent!)
1.045 Tue Jan 12 15:55:21 2016 1.045 Tue Jan 12 15:55:21 2016
* Fixed bug causing premature clearing of action handlers * Fixed bug causing premature clearing of action handlers
(thanks Keith!) (thanks Keith!)
@@ -70,15 +171,10 @@ Sun May 3 08:46:01 UTC 2015 - coolo@suse.com
- updated to 1.041 - updated to 1.041
see /usr/share/doc/packages/perl-Regexp-Grammars/Changes see /usr/share/doc/packages/perl-Regexp-Grammars/Changes
1.041 Sun May 3 12:57:37 2015 1.041 Sun May 3 12:57:37 2015
* Documented edge case where new 5.18 regex compilation semantics * Documented edge case where new 5.18 regex compilation semantics
breaks the <%hash> construct, listing two work-arounds breaks the <%hash> construct, listing two work-arounds
(thanks David and Gianni!) (thanks David and Gianni!)
* Fixed subtle problem with implicit whitespace-matching invalidating * Fixed subtle problem with implicit whitespace-matching invalidating
subrule argument lists subrule argument lists
(thanks Alex!) (thanks Alex!)
@@ -89,177 +185,111 @@ Fri Apr 17 08:36:09 UTC 2015 - coolo@suse.com
- updated to 1.040 - updated to 1.040
see /usr/share/doc/packages/perl-Regexp-Grammars/Changes see /usr/share/doc/packages/perl-Regexp-Grammars/Changes
1.020 Thu Aug 16 14:13:03 2012 1.020 Thu Aug 16 14:13:03 2012
* Fixed licence generation in Makefile.PL * Fixed licence generation in Makefile.PL
* Fixed issues with the stupid behaviour * Fixed issues with the stupid behaviour
of Perl 5.17+ wrt (un)backslashed {'s of Perl 5.17+ wrt (un)backslashed {'s
* Fixed bad code in SYNOPSIS example * Fixed bad code in SYNOPSIS example
(Thanks Paul!) (Thanks Paul!)
* Fixed bad code in demo/demo_pos.pl * Fixed bad code in demo/demo_pos.pl
(Thanks Peng) (Thanks Peng)
* Corrected docs for <debug: on> * Corrected docs for <debug: on>
(Thanks Peng) (Thanks Peng)
* BACKWARDS INCOMPATIBLE CHANGE!!!! * BACKWARDS INCOMPATIBLE CHANGE!!!!
Due to limitations in Perl's qr overload Due to limitations in Perl's qr overload
The <\IDENT> backreference syntax has had to be changed The <\IDENT> backreference syntax has had to be changed
to <\_IDENT> to <\_IDENT>
1.021 Mon Aug 20 13:55:34 2012 1.021 Mon Aug 20 13:55:34 2012
* Made Latin-1 encoding of docs explicit * Made Latin-1 encoding of docs explicit
1.022 Tue Jan 22 18:39:16 2013 1.022 Tue Jan 22 18:39:16 2013
* Fixed minimization (by handling nocontext marker correctly) * Fixed minimization (by handling nocontext marker correctly)
(thanks Thomas!) (thanks Thomas!)
1.025 Wed Jan 30 09:39:52 2013 1.025 Wed Jan 30 09:39:52 2013
* Reuploaded with no substantive modifications * Reuploaded with no substantive modifications
1.026 Thu Jan 31 08:20:14 2013 1.026 Thu Jan 31 08:20:14 2013
* Re-fixed minimization (by handling nocontext marker correctly) * Re-fixed minimization (by handling nocontext marker correctly)
(thanks again Thomas!) (thanks again Thomas!)
1.027 Fri May 10 07:43:52 2013 1.027 Fri May 10 07:43:52 2013
* Fixed nasty bug where 0 used as an atom * Fixed nasty bug where 0 used as an atom
(many thanks Arseny!) (many thanks Arseny!)
1.028 Sat May 11 06:00:00 2013 1.028 Sat May 11 06:00:00 2013
* Fixed very nasty caching bug within interpolation support * Fixed very nasty caching bug within interpolation support
(many more thanks Arseny!) (many more thanks Arseny!)
1.029 Tue Jun 25 15:44:35 2013 1.029 Tue Jun 25 15:44:35 2013
* Doc patch (thanks Steven) * Doc patch (thanks Steven)
* Added workarounds for some unfortunate changes in 5.18 behaviour * Added workarounds for some unfortunate changes in 5.18 behaviour
(thanks Steven) (thanks Steven)
* CRITICAL: Added warning regarding fundamental and intractable * CRITICAL: Added warning regarding fundamental and intractable
incompatibilities with Perl 5.18, and announcing that incompatibilities with Perl 5.18, and announcing that
Regexp::Grammars is not supported under that version of Perl. :-( Regexp::Grammars is not supported under that version of Perl. :-(
1.030 Wed Jun 26 07:17:41 2013 1.030 Wed Jun 26 07:17:41 2013
* Added essential-but-missing Skip_if_Perl_518 to the MANIFEST * Added essential-but-missing Skip_if_Perl_518 to the MANIFEST
1.031 Mon Aug 19 09:55:37 2013 1.031 Mon Aug 19 09:55:37 2013
* Updated warning re 5.18 incompatibilities. Some progress has been * Updated warning re 5.18 incompatibilities. Some progress has been
made, but a complete solution is still at least a month away, made, but a complete solution is still at least a month away,
possibly longer. possibly longer.
* Added dependency on Lexical::Var under Perl 5.18 to overcome * Added dependency on Lexical::Var under Perl 5.18 to overcome
problem with magic pseudo-variables problem with magic pseudo-variables
1.032 Thu Aug 29 10:44:21 2013 1.032 Thu Aug 29 10:44:21 2013
* Culled stray DB::single = 1 (thanks Robert!) * Culled stray DB::single = 1 (thanks Robert!)
1.033 Sat Aug 31 13:10:57 2013 1.033 Sat Aug 31 13:10:57 2013
* Listed dependency on Lexical::Var under Perl 5.18 to overcome * Listed dependency on Lexical::Var under Perl 5.18 to overcome
problem with magic pseudo-variables (thanks Andreas!) problem with magic pseudo-variables (thanks Andreas!)
1.034 Wed Jun 11 06:50:04 2014 1.034 Wed Jun 11 06:50:04 2014
* Reverted actual encoding to match nominated encoding (i.e. Latin-1) * Reverted actual encoding to match nominated encoding (i.e. Latin-1)
(thanks Olivier) (thanks Olivier)
* Fixed last bug preventing module from passing * Fixed last bug preventing module from passing
its own test suite under 5.20. its own test suite under 5.20.
* Gave up (for the present) on Perl 5.18 compatibility. * Gave up (for the present) on Perl 5.18 compatibility.
* Noted limitations of passing %MATCH values as subrule args * Noted limitations of passing %MATCH values as subrule args
under 5.18+ under 5.18+
1.035 Sat Jun 28 19:03:54 2014 1.035 Sat Jun 28 19:03:54 2014
(All of the following with deepest thanks to Hugo...) (All of the following with deepest thanks to Hugo...)
* Removed no-longer-necessar Skip_if_Perl_518.pm from MANIFEST * Removed no-longer-necessar Skip_if_Perl_518.pm from MANIFEST
* Allowed rule declarations to be made anywhere * Allowed rule declarations to be made anywhere
(not just at the start of a line) (not just at the start of a line)
* Fixed buggy edge-case for in-rule whitespace auto-matching * Fixed buggy edge-case for in-rule whitespace auto-matching
at start of rule body (now works even if there is only a single at start of rule body (now works even if there is only a single
whitespace between <rule: NAME> and first element of rule body) whitespace between <rule: NAME> and first element of rule body)
* Made R::G auto-/x any regex used under its suasion * Made R::G auto-/x any regex used under its suasion
(solves formerly intractable problem of detecting a missing /x) (solves formerly intractable problem of detecting a missing /x)
* R::G now short-circuits any regex in its scope that does not * R::G now short-circuits any regex in its scope that does not
contain any R::G constructs (and does not auto-/x them either) contain any R::G constructs (and does not auto-/x them either)
* Added line numbers to all warnings generated by the module * Added line numbers to all warnings generated by the module
* Added detection of "stray" quantifiers: unquoted quantifiers that * Added detection of "stray" quantifiers: unquoted quantifiers that
don't actually quantify anything. don't actually quantify anything.
* Added line-number annotations to the transformed regex as a * Added line-number annotations to the transformed regex as a
last-gasp kind of assistance when confronted with the dreaded last-gasp kind of assistance when confronted with the dreaded
post-transformation "error marked with <-- HERE" message post-transformation "error marked with <-- HERE" message
1.036 Mon Sep 15 12:58:47 2014 1.036 Mon Sep 15 12:58:47 2014
* Minor doc improvements * Minor doc improvements
* Fixed odd behaviour of <debug: off> * Fixed odd behaviour of <debug: off>
(Thanks, Chris!) (Thanks, Chris!)
1.038 Thu Dec 11 14:52:05 2014 1.038 Thu Dec 11 14:52:05 2014
* Fixed bug where actions persisted after a failed ->with_actions() match * Fixed bug where actions persisted after a failed ->with_actions() match
(Thanks Hao Wu!) (Thanks Hao Wu!)
1.039 Sat Feb 7 08:39:58 2015 1.039 Sat Feb 7 08:39:58 2015
* Module works correctly under 5.18.4. * Module works correctly under 5.18.4.
Updated warnings to reflect this. Updated warnings to reflect this.
(Thanks p5p!) (Thanks p5p!)
1.040 Thu Mar 26 07:44:41 2015 1.040 Thu Mar 26 07:44:41 2015
* Tweaked Makefile.PL and BUILD.PL to (maybe) * Tweaked Makefile.PL and BUILD.PL to (maybe)
work more happily with the CPANTesters toolchain work more happily with the CPANTesters toolchain
@@ -268,4 +298,3 @@ Thu May 31 12:09:32 UTC 2012 - coolo@suse.com
- initial package 1.016 - initial package 1.016
* created by cpanspec 1.78.06 * created by cpanspec 1.78.06

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Regexp-Grammars # spec file for package perl-Regexp-Grammars
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -12,36 +12,37 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
Name: perl-Regexp-Grammars
Version: 1.048
Release: 0
%define cpan_name Regexp-Grammars %define cpan_name Regexp-Grammars
Name: perl-Regexp-Grammars
Version: 1.58.0
Release: 0
# 1.058 -> normalize -> 1.58.0
%define cpan_version 1.058
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Add grammatical parsing features to Perl 5.10 regexes Summary: Add grammatical parsing features to Perl 5.10 regexes
License: Artistic-1.0 or GPL-1.0+ URL: https://metacpan.org/release/%{cpan_name}
Group: Development/Libraries/Perl Source0: https://cpan.metacpan.org/authors/id/D/DC/DCONWAY/%{cpan_name}-%{cpan_version}.tar.gz
Url: http://search.cpan.org/dist/Regexp-Grammars/
Source0: https://cpan.metacpan.org/authors/id/D/DC/DCONWAY/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(B::Hooks::Parser) >= 0.16
BuildRequires: perl(Module::Build) BuildRequires: perl(Module::Build)
BuildRequires: perl(version) BuildRequires: perl(version)
Requires: perl(B::Hooks::Parser) >= 0.16
Requires: perl(version) Requires: perl(version)
Provides: perl(Regexp::Grammars) = %{version}
Provides: perl(Regexp::Grammars::Precursor)
%undefine __perllib_provides
%{perl_requires} %{perl_requires}
%description %description
This module adds a small number of new regex constructs that can be used This module adds a small number of new regex constructs that can be used
within Perl 5.10 patterns to implement complete recursive-descent parsing. within Perl 5.10 patterns to implement complete recursive-descent parsing.
Perl 5.10 already supports recursive=descent _matching_, via the new Perl 5.10 already supports recursive-descent _matching_, via the new
'(?<name>...)' and '(?&name)' constructs. For example, here is a simple '(?<name>...)' and '(?&name)' constructs. For example, here is a simple
matcher for a subset of the LaTeX markup language: matcher for a subset of the LaTeX markup language:
@@ -185,21 +186,22 @@ following sections explain each of those features, and some of the parsing
techniques they support. techniques they support.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build %build
%{__perl} Build.PL installdirs=vendor perl Build.PL --installdirs=vendor
./Build build flags=%{?_smp_mflags} ./Build build --flags=%{?_smp_mflags}
%check %check
./Build test ./Build test
%install %install
./Build install destdir=%{buildroot} create_packlist=0 ./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README %doc Changes README
%changelog %changelog