1 %include /usr/lib/rpm/macros.python
2 %define module simpleparse
3 %define cap_name SimpleParse
5 Summary: Python package providing a simple parser generator for use with the mxTextTool
6 Summary(pl): Pakiet zawieraj±cy prosty generator parserów dla mxTextTool
11 Group: Development/Languages/Python
12 Source0: http://dl.sourceforge.net/%{module}/%{cap_name}-%{version}.zip
13 # Source0-md5: a270945935ec596ec87d5f5f19e806ad
14 URL: http://simpleparse.sourceforge.net/
15 Requires: python-mx-TextTools >= 2.1-0b5
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 SimpleParse allows you to generate tagging tables for use with the
20 text-tagging engine directly from your EBNF grammar.
23 SimpleParse pozwala na generowanie tabeli taguj±cych do u¿ytku z
24 silnikiem taguj±cym tekst bezpo¶rendnio z gramatyk EBNF.
27 %setup -q -n %{cap_name}-%{version}
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{py_sitedir}
36 python setup.py install \
37 --root=$RPM_BUILD_ROOT --optimize=2
40 rm -rf $RPM_BUILD_ROOT
43 %defattr(644,root,root,755)
45 %doc %{module}/doc %{module}/examples
46 %dir %{py_sitedir}/%{module}
47 %{py_sitedir}/%{module}/*.py[co]
48 %dir %{py_sitedir}/%{module}/common
49 %{py_sitedir}/%{module}/common/*.py[co]
50 %dir %{py_sitedir}/%{module}/xml
51 %{py_sitedir}/%{module}/xml/*.py[co]