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.UTF-8): 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 %pyrequires_eq python-libs
17 Requires: python-mx-TextTools >= 2.0
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 SimpleParse allows you to generate tagging tables for use with the
22 text-tagging engine directly from your EBNF grammar.
24 %description -l pl.UTF-8
25 SimpleParse pozwala na generowanie tabeli tagujących do użytku z
26 silnikiem tagującym tekst bezpośrednio z gramatyk EBNF.
29 %setup -q -n %{cap_name}-%{version}
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT%{py_sitedir}
38 python setup.py install \
39 --root=$RPM_BUILD_ROOT --optimize=2
42 rm -rf $RPM_BUILD_ROOT
45 %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]