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