1 | %define ver 0.3.5 |
---|
2 | %define rel 1 |
---|
3 | |
---|
4 | Summary: Recursive descent parsing library for Python based on functional combinators |
---|
5 | Name: python-funcparserlib |
---|
6 | Version: %{ver} |
---|
7 | Release: %{rel}%{?_dist_release} |
---|
8 | License: MIT License |
---|
9 | Group: Development/Libraries |
---|
10 | URL: http://code.google.com/p/funcparserlib/ |
---|
11 | Source0:http://pypi.python.org/packages/source/f/funcparserlib/funcparserlib-%{version}.tar.gz |
---|
12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
---|
13 | BuildArch: noarch |
---|
14 | BuildRequires: python-devel |
---|
15 | Requires: python |
---|
16 | |
---|
17 | Vendor: Project Vine |
---|
18 | Distribution: Vine Linux |
---|
19 | |
---|
20 | %description |
---|
21 | Parser combinators are just higher-order functions that take parsers as |
---|
22 | their arguments and return them as result values. Parser combinators are: |
---|
23 | |
---|
24 | - First-class values |
---|
25 | - Extremely composable |
---|
26 | - Tend to make the code quite compact |
---|
27 | - Resemble the readable notation of xBNF grammars |
---|
28 | |
---|
29 | Parsers made with funcparserlib are pure-Python LL(*) parsers. It means |
---|
30 | that it's very easy to write them without thinking about look-aheads and |
---|
31 | all that hardcore parsing stuff. But the recursive descent parsing is a |
---|
32 | rather slow method compared to LL(k) or LR(k) algorithms. |
---|
33 | |
---|
34 | So the primary domain for funcparserlib is parsing little languages or |
---|
35 | external DSLs (domain specific languages). |
---|
36 | |
---|
37 | %prep |
---|
38 | %setup -q -n funcparserlib-%{ver} |
---|
39 | |
---|
40 | %build |
---|
41 | %__python setup.py build |
---|
42 | |
---|
43 | %install |
---|
44 | %__rm -rf %{buildroot} |
---|
45 | %__python setup.py install --skip-build --root %{buildroot} |
---|
46 | |
---|
47 | %clean |
---|
48 | %__rm -rf %{buildroot} |
---|
49 | |
---|
50 | %files |
---|
51 | %defattr(-,root,root,-) |
---|
52 | %doc CHANGES LICENSE README doc examples |
---|
53 | %{python_sitelib}/funcparserlib-%{ver}-py*.egg-info |
---|
54 | %{python_sitelib}/funcparserlib |
---|
55 | |
---|
56 | %changelog |
---|
57 | * Mon May 16 2011 IWAI, Masaharu <iwai@alib.jp> 0.3.5-1 |
---|
58 | - Initial build. |
---|
59 | |
---|
60 | |
---|