]> git.pld-linux.org Git - packages/perl-Parse-RecDescent.git/blame - perl-Parse-RecDescent.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Parse-RecDescent.git] / perl-Parse-RecDescent.spec
CommitLineData
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 7Summary: Parse::RecDescent - generate recursive-descent parsers
3557c889 8Summary(pl.UTF-8): Parse::RecDescent - generowanie zmniejszających rekurencyjnie analizatorów
4f193989 9Name: perl-Parse-RecDescent
8667ace8 10Version: 1.967015
3aa72b5c 11Release: 1
d4f943d6 12License: Artistic
4f193989 13Group: Development/Languages/Perl
55c4e319 14Source0: http://www.cpan.org/modules/by-module/Parse/%{pdir}-%{pnam}-%{version}.tar.gz
8667ace8 15# Source0-md5: 7a36d45d62a9b68603edcdbd276006cc
75c1f355 16URL: http://search.cpan.org/dist/Parse-RecDescent/
d4f943d6 17BuildRequires: perl-Text-Balanced
10acfadd 18BuildRequires: perl-devel >= 1:5.8.0
14432588 19BuildRequires: rpm-perlprov >= 4.1-13
d4f943d6
JB
20# these versions included own copy of Text::Balanced
21BuildConflicts: perl-Parse-RecDescent < 1.92
bf99d160 22BuildArch: noarch
59df6fe4 23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
4f193989 24
14432588 25%define _noautoreq 'perl(Calc)'
7f5f0a8c 26
4f193989 27%description
d4f943d6
JB
28RecDescent incrementally generates top-down recursive-descent text
29parsers 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
45RecDescent generuje przyrostowo zstępujące, zmniejszające
46rekurencyjnie analizatory tekstu w oparciu o prostą specyfikację
47gramatyki, 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
75rm -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
83rm -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*
This page took 0.094835 seconds and 4 git commands to generate.