1 %define module simpleparse
2 %define cap_name SimpleParse
3 Summary: Python package providing a simple parser generator for use with the mxTextTool
4 Summary(pl): Pakiet zawieraj±cy prosty generator parserów dla mxTextTool
9 Group: Development/Languages/Python
10 Source0: http://dl.sourceforge.net/%{module}/%{cap_name}-%{version}.zip
11 # Source0-md5: dffa19a7a21d342d56c3d1bf391c2c2d
12 URL: http://simpleparse.sourceforge.net/
13 BuildRequires: python-devel
14 BuildRequires: python-modules
16 Requires: python-mx-TextTools >= 2.0
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 SimpleParse allows you to generate tagging tables for use with the
21 text-tagging engine directly from your EBNF grammar.
24 SimpleParse pozwala na generowanie tabeli taguj±cych do u¿ytku z
25 silnikiem taguj±cym tekst bezpo¶rednio z gramatyk EBNF.
28 %setup -q -n %{cap_name}-%{version}
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{py_sitedir}
37 python setup.py install \
38 --root=$RPM_BUILD_ROOT --optimize=2
41 rm -rf $RPM_BUILD_ROOT
44 %defattr(644,root,root,755)
46 %doc %{module}/doc %{module}/examples
47 %dir %{py_sitescriptdir}/%{module}
48 %{py_sitescriptdir}/%{module}/*.py[co]
49 %dir %{py_sitescriptdir}/%{module}/common
50 %{py_sitescriptdir}/%{module}/common/*.py[co]
51 %dir %{py_sitescriptdir}/%{module}/xml
52 %{py_sitescriptdir}/%{module}/xml/*.py[co]