[packages/perl-Parser-MGC] new, version 0.15
glen
glen at pld-linux.org
Tue Mar 8 21:15:15 CET 2016
commit 80dbf398ba73ad61be47b2f486f2c91b2702e44f
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Mar 8 22:14:58 2016 +0200
new, version 0.15
created with pldcpan
perl-Parser-MGC.spec | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
---
diff --git a/perl-Parser-MGC.spec b/perl-Parser-MGC.spec
new file mode 100644
index 0000000..5a9837c
--- /dev/null
+++ b/perl-Parser-MGC.spec
@@ -0,0 +1,61 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+
+%define pdir Parser
+%define pnam MGC
+%include /usr/lib/rpm/macros.perl
+Summary: Parser::MGC - build simple recursive-descent parsers
+Name: perl-Parser-MGC
+Version: 0.15
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/Parser/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: c31a129ae1e322930c64e435f32e6fcc
+URL: http://search.cpan.org/dist/Parser-MGC/
+BuildRequires: perl-Module-Build
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-File-Slurp-Tiny
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This base class provides a low-level framework for building
+recursive-descent parsers that consume a given input string from left
+to right, returning a parse structure. It takes its name from the
+m//gc regexps used to implement the token parsing behaviour.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Build.PL \
+ destdir=$RPM_BUILD_ROOT \
+ installdirs=vendor
+./Build
+
+%{?with_tests:./Build test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Parser/*.pm
+%{perl_vendorlib}/Parser/MGC
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Parser-MGC.git/commitdiff/80dbf398ba73ad61be47b2f486f2c91b2702e44f
More information about the pld-cvs-commit
mailing list