]>
Commit | Line | Data |
---|---|---|
d78709d0 | 1 | # |
2 | # Conditional build: | |
a5f19e7f | 3 | %bcond_without tests # do not perform "make test" |
d78709d0 | 4 | # |
23df566c | 5 | %define pdir Parse |
6 | %define pnam RecDescent | |
d4f943d6 | 7 | Summary: Parse::RecDescent - generate recursive-descent parsers |
3557c889 | 8 | Summary(pl.UTF-8): Parse::RecDescent - generowanie zmniejszających rekurencyjnie analizatorów |
4f193989 | 9 | Name: perl-Parse-RecDescent |
8667ace8 | 10 | Version: 1.967015 |
3aa72b5c | 11 | Release: 1 |
d4f943d6 | 12 | License: Artistic |
4f193989 | 13 | Group: Development/Languages/Perl |
55c4e319 | 14 | Source0: http://www.cpan.org/modules/by-module/Parse/%{pdir}-%{pnam}-%{version}.tar.gz |
8667ace8 | 15 | # Source0-md5: 7a36d45d62a9b68603edcdbd276006cc |
75c1f355 | 16 | URL: http://search.cpan.org/dist/Parse-RecDescent/ |
d4f943d6 | 17 | BuildRequires: perl-Text-Balanced |
10acfadd | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
14432588 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
d4f943d6 JB |
20 | # these versions included own copy of Text::Balanced |
21 | BuildConflicts: perl-Parse-RecDescent < 1.92 | |
bf99d160 | 22 | BuildArch: noarch |
59df6fe4 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
4f193989 | 24 | |
14432588 | 25 | %define _noautoreq 'perl(Calc)' |
7f5f0a8c | 26 | |
4f193989 | 27 | %description |
d4f943d6 JB |
28 | RecDescent incrementally generates top-down recursive-descent text |
29 | parsers from simple yacc-like grammar specifications. It provides: | |
3839db85 | 30 | - Regular expressions or literal strings as terminals (tokens), |
31 | - Multiple (non-contiguous) productions for any rule, | |
32 | - Repeated, optional and alternate subrules within productions, | |
33 | - Late-bound (run-time dispatched) subrules, | |
0d690e92 | 34 | - Full access to Perl within actions specified as part of the grammar, |
3839db85 | 35 | - Simple automated error reporting during parser generation and |
36 | parsing, | |
37 | - The ability to commit to, uncommit to, or reject particular | |
38 | productions during a parse, | |
0d690e92 | 39 | - Incremental extension of the parsing grammar (even during a parse), |
3839db85 | 40 | - Precompilation of parser objects, |
0d690e92 ER |
41 | - User-definable reduce-reduce conflict resolution via "scoring" of |
42 | matching productions. | |
4f193989 | 43 | |
51226666 JR |
44 | %description -l pl.UTF-8 |
45 | RecDescent generuje przyrostowo zstępujące, zmniejszające | |
46 | rekurencyjnie analizatory tekstu w oparciu o prostą specyfikację | |
47 | gramatyki, podobną do używanej przez yacca. Udostępnia on: | |
48 | - Wyrażenia regularne i łańcuchy literałów jako terminale (tokeny), | |
49 | - Wielokrotną (nieciągłą) produkcję dla każdej reguły, | |
0d690e92 | 50 | - Powtarzane, opcjonalne i alternatywne podreguły w obrębie produkcji, |
51226666 JR |
51 | - Podreguły późnego wiązania (wysyłane w chwili uruchomienia), |
52 | - Pełen dostęp do Perla w obrębie akcji określonych jako część | |
3839db85 | 53 | gramatyki, |
51226666 | 54 | - Proste, zautomatyzowane sygnalizowanie błędów podczas generacji |
3839db85 | 55 | analizatora i podczas analizy, |
51226666 | 56 | - Możliwość zatwierdzenia, cofnięcia oraz odrzucania poszczególnych |
3839db85 | 57 | produkcji podczas analizy, |
51226666 | 58 | - Przyrostowe rozszerzanie gramatyki podlegającej analizie (nawet |
3839db85 | 59 | podczas samej analizy), |
51226666 JR |
60 | - Prekompilację obiektów analizatora, |
61 | - Definiowalne przez użytkownika rozpoznawanie konfliktów | |
3839db85 | 62 | "reduce-reduce" poprzez ocenianie dopasowania produkcji. |
4f193989 AF |
63 | |
64 | %prep | |
3aa72b5c | 65 | %setup -q -n %{pdir}-%{pnam}-%{version} |
4f193989 AF |
66 | |
67 | %build | |
d05e481c | 68 | %{__perl} Makefile.PL \ |
aea9a6d4 | 69 | INSTALLDIRS=vendor |
e60af692 | 70 | %{__make} |
a5f19e7f | 71 | |
10b9409c | 72 | %{?with_tests:%{__make} test} |
4f193989 AF |
73 | |
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
4f193989 | 76 | |
0d690e92 | 77 | %{__make} pure_install \ |
14432588 | 78 | DESTDIR=$RPM_BUILD_ROOT |
4f193989 | 79 | |
55c4e319 | 80 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Parse/RecDescent/.packlist |
0d690e92 | 81 | |
4f193989 AF |
82 | %clean |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %files | |
86 | %defattr(644,root,root,755) | |
d78709d0 | 87 | %doc README Changes |
55c4e319 JB |
88 | %{perl_vendorlib}/Parse/RecDescent.pm |
89 | %{_mandir}/man3/Parse::RecDescent.3pm* |