]>
Commit | Line | Data |
---|---|---|
ab026e99 MK |
1 | # TODO: |
2 | # - tests | |
593a3012 | 3 | %define module simpleparse |
4 | %define cap_name SimpleParse | |
7b286600 | 5 | Summary: Python package providing a simple parser generator for use with the mxTextTool |
8683066b | 6 | Summary(pl.UTF-8): Pakiet zawierający prosty generator parserów dla mxTextTool |
7b286600 | 7 | Name: python-%{module} |
ab026e99 | 8 | Version: 2.1.1 |
e494ebfc | 9 | Release: 2 |
7b286600 MK |
10 | License: BSD |
11 | Group: Development/Languages/Python | |
ab026e99 MK |
12 | Source0: https://pypi.python.org/packages/source/S/SimpleParse/%{cap_name}-%{version}.tar.gz |
13 | # Source0-md5: d67aaceca86acc763d6eebee919cc8aa | |
7b286600 | 14 | URL: http://simpleparse.sourceforge.net/ |
1b44e317 | 15 | BuildRequires: rpmbuild(macros) >= 1.710 |
a3055d07 | 16 | BuildRequires: python-devel |
17 | BuildRequires: python-modules | |
81d4061f | 18 | BuildRequires: rpm-pythonprov |
ab026e99 | 19 | Requires: python-libs |
7b286600 MK |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | SimpleParse allows you to generate tagging tables for use with the | |
24 | text-tagging engine directly from your EBNF grammar. | |
25 | ||
7063770f JR |
26 | %description -l pl.UTF-8 |
27 | SimpleParse pozwala na generowanie tabeli tagujących do użytku z | |
28 | silnikiem tagującym tekst bezpośrednio z gramatyk EBNF. | |
7b286600 MK |
29 | |
30 | %prep | |
31 | %setup -q -n %{cap_name}-%{version} | |
32 | ||
33 | %build | |
290679ec | 34 | %py_build |
7b286600 MK |
35 | |
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | install -d $RPM_BUILD_ROOT%{py_sitedir} | |
39 | ||
290679ec | 40 | %py_install |
ab026e99 MK |
41 | |
42 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
43 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
44 | %py_postclean | |
7b286600 MK |
45 | |
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
ab026e99 MK |
51 | %doc doc examples |
52 | %dir %{py_sitedir}/%{module} | |
53 | %{py_sitedir}/%{module}/*.py[co] | |
54 | %dir %{py_sitedir}/%{module}/common | |
55 | %{py_sitedir}/%{module}/common/*.py[co] | |
56 | %dir %{py_sitedir}/%{module}/examples | |
57 | %{py_sitedir}/%{module}/examples/*.py[co] | |
58 | %dir %{py_sitedir}/%{module}/stt | |
59 | %{py_sitedir}/%{module}/stt/*.py[co] | |
60 | %dir %{py_sitedir}/%{module}/stt/TextTools | |
61 | %{py_sitedir}/%{module}/stt/TextTools/*.py[co] | |
62 | %dir %{py_sitedir}/%{module}/stt/TextTools/Constants | |
63 | %{py_sitedir}/%{module}/stt/TextTools/Constants/*.py[co] | |
64 | %dir %{py_sitedir}/%{module}/stt/TextTools/mxTextTools | |
65 | %{py_sitedir}/%{module}/stt/TextTools/mxTextTools/*.py[co] | |
66 | %attr(755,root,root) %{py_sitedir}/%{module}/stt/TextTools/mxTextTools/mxTextTools.so | |
67 | %dir %{py_sitedir}/%{module}/tests | |
68 | %{py_sitedir}/%{module}/tests/*.py[co] | |
69 | %dir %{py_sitedir}/%{module}/xmlparser | |
70 | %{py_sitedir}/%{module}/xmlparser/*.py[co] | |
71 | %if "%{py_ver}" > "2.4" | |
72 | %{py_sitedir}/SimpleParse-*.egg-info | |
73 | %endif |