X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=perl-Parse-RecDescent.spec;h=6ffac5fc70159e6bfed5522ad099f0ec968a1793;hb=HEAD;hp=1fb746c8785d9c79a5fac24325c7666547769e50;hpb=d4f943d6d141c49733ab6492d6e8bc4a98876daf;p=packages%2Fperl-Parse-RecDescent.git diff --git a/perl-Parse-RecDescent.spec b/perl-Parse-RecDescent.spec index 1fb746c..6ffac5f 100644 --- a/perl-Parse-RecDescent.spec +++ b/perl-Parse-RecDescent.spec @@ -1,84 +1,83 @@ # # Conditional build: -# _without_tests - do not perform "make test" +%bcond_without tests # do not perform "make test" # -%include /usr/lib/rpm/macros.perl %define pdir Parse %define pnam RecDescent Summary: Parse::RecDescent - generate recursive-descent parsers -Summary(pl): Parse::RecDescent - generowanie zmniejszaj±cych rekurencyjnie analizatorów +Summary(pl.UTF-8): Parse::RecDescent - generowanie zmniejszających rekurencyjnie analizatorów Name: perl-Parse-RecDescent -Version: 1.94 -Release: 2 +Version: 1.967015 +Release: 1 License: Artistic Group: Development/Languages/Perl -Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz -# Source0-md5: 497600b337a501eae11f31195ccec9d4 -Patch0: %{name}-paths.patch -BuildRequires: rpm-perlprov >= 4.1-13 +Source0: http://www.cpan.org/modules/by-module/Parse/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: 7a36d45d62a9b68603edcdbd276006cc +URL: http://search.cpan.org/dist/Parse-RecDescent/ BuildRequires: perl-Text-Balanced -BuildRequires: perl-devel >= 5.6.1 +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 # these versions included own copy of Text::Balanced BuildConflicts: perl-Parse-RecDescent < 1.92 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _noautoreq "perl(Calc)" +%define _noautoreq 'perl(Calc)' %description RecDescent incrementally generates top-down recursive-descent text parsers from simple yacc-like grammar specifications. It provides: - * Regular expressions or literal strings as terminals (tokens), - * Multiple (non-contiguous) productions for any rule, - * Repeated, optional and alternate subrules within productions, - * Late-bound (run-time dispatched) subrules, - * Full access to Perl within actions specified as part of the - grammar, - * Simple automated error reporting during parser generation and - parsing, - * The ability to commit to, uncommit to, or reject particular - productions during a parse, - * Incremental extension of the parsing grammar (even during a - parse), - * Precompilation of parser objects, - * User-definable reduce-reduce conflict resolution via - "scoring" of matching productions. +- Regular expressions or literal strings as terminals (tokens), +- Multiple (non-contiguous) productions for any rule, +- Repeated, optional and alternate subrules within productions, +- Late-bound (run-time dispatched) subrules, +- Full access to Perl within actions specified as part of the grammar, +- Simple automated error reporting during parser generation and + parsing, +- The ability to commit to, uncommit to, or reject particular + productions during a parse, +- Incremental extension of the parsing grammar (even during a parse), +- Precompilation of parser objects, +- User-definable reduce-reduce conflict resolution via "scoring" of + matching productions. -%description -l pl -RecDescent generuje przyrostowo zstêpuj±ce, zmniejszaj±ce -rekurencyjnie analizatory tekstu w oparciu o prost± specyfikacjê -gramatyki, podobn± do u¿ywanej przez yacca. Udostêpnia on: - * Wyra¿enia regularne i ³añcuchy litera³ów jako terminale (tokeny), - * Wielokrotn± (nieci±g³±) produkcjê dla ka¿dej regu³y, - * Powtarzane, opcjonalne i alternatywne podregu³y w obrêbie - produkcji, - * Podregu³y pó¼nego wi±zania (wysy³ane w chwili uruchomienia), - * Pe³en dostêp do Perlaw obrêbie akcji okre¶lonych jako czê¶æ - gramatyki, - * Proste, zautomatyzowane sygnalizowanie b³êdów podczas generacji - analizatora i podczas analizy, - * Mo¿liwo¶æ zatwierdzenia, cofniêcia oraz odrzucania poszczególnych - produkcji podczas analizy, - * Przyrostowe rozszerzanie gramatyki podlegaj±cej analizie (nawet - podczas samej analizy), - * Prekompilacjê obiektów analizatora, - * Definiowalne przez u¿ytkownika rozpoznawanie konfliktów - "reduce-reduce" poprzez ocenianie dopasowania produkcji. +%description -l pl.UTF-8 +RecDescent generuje przyrostowo zstępujące, zmniejszające +rekurencyjnie analizatory tekstu w oparciu o prostą specyfikację +gramatyki, podobną do używanej przez yacca. Udostępnia on: +- Wyrażenia regularne i łańcuchy literałów jako terminale (tokeny), +- Wielokrotną (nieciągłą) produkcję dla każdej reguły, +- Powtarzane, opcjonalne i alternatywne podreguły w obrębie produkcji, +- Podreguły późnego wiązania (wysyłane w chwili uruchomienia), +- Pełen dostęp do Perla w obrębie akcji określonych jako część + gramatyki, +- Proste, zautomatyzowane sygnalizowanie błędów podczas generacji + analizatora i podczas analizy, +- Możliwość zatwierdzenia, cofnięcia oraz odrzucania poszczególnych + produkcji podczas analizy, +- Przyrostowe rozszerzanie gramatyki podlegającej analizie (nawet + podczas samej analizy), +- Prekompilację obiektów analizatora, +- Definiowalne przez użytkownika rozpoznawanie konfliktów + "reduce-reduce" poprzez ocenianie dopasowania produkcji. %prep %setup -q -n %{pdir}-%{pnam}-%{version} -%patch0 -p1 %build %{__perl} Makefile.PL \ - INSTALLDIRS=vendor + INSTALLDIRS=vendor %{__make} -%{!?_without_tests:%{__make} test} + +%{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT -%{__make} install DESTDIR=$RPM_BUILD_ROOT +%{__make} pure_install \ + DESTDIR=$RPM_BUILD_ROOT + +%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Parse/RecDescent/.packlist %clean rm -rf $RPM_BUILD_ROOT @@ -86,5 +85,5 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc README Changes -%{perl_vendorlib}/Parse/*.pm -%{_mandir}/man3/* +%{perl_vendorlib}/Parse/RecDescent.pm +%{_mandir}/man3/Parse::RecDescent.3pm*