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