]>
Commit | Line | Data |
---|---|---|
b0ae55d0 | 1 | # TODO: |
da38de5b | 2 | # - use external rxp |
283022a9 MG |
3 | # - make documentation from rml file instead of downloading it |
4 | # (need for spec for http://www.reportlab.org/rl_toolkit.html) | |
db462542 | 5 | # |
6 | ||
0c6c2d84 | 7 | Summary: A Python wrapper for the RXP parser |
a9ff2f69 | 8 | Summary(pl.UTF-8): Pythonowy interfejs do analizatora XML RXP |
3cc05815 | 9 | Name: python-pyRXP |
b0ae55d0 JB |
10 | # keep 2.x here for python2 support; no accessible sdist found for 2.2.1 or 2.2.3 |
11 | Version: 2.2.0 | |
cf4b230f | 12 | Release: 1 |
ed3d0882 | 13 | License: GPL v2 |
14 | Group: Libraries/Python | |
3cc05815 | 15 | #Source0Download: https://pypi.org/simple/pyRXP/ |
b0ae55d0 JB |
16 | Source0: https://files.pythonhosted.org/packages/source/p/pyRXP/pyRXP-%{version}.tar.gz |
17 | # Source0-md5: 97a826803521fd8fade6e2ea3ec0827f | |
3cc05815 | 18 | URL: https://pypi.org/project/pyRXP/ |
b0ae55d0 | 19 | BuildRequires: python-devel >= 1:2.7 |
3cc05815 | 20 | BuildRequires: rpm-build >= 4.6 |
872be436 | 21 | BuildRequires: rpm-pythonprov |
3cc05815 | 22 | BuildRequires: rpmbuild(macros) >= 1.714 |
b0ae55d0 JB |
23 | Requires: python-modules >= 1:2.7 |
24 | Obsoletes: python-pyRXP-examples < 2 | |
ed3d0882 | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
39bf1c14 | 28 | pyRXP is a Python wrapper for RXP, a validating namespace-aware |
ed3d0882 | 29 | XML parser in C. |
30 | ||
93d12eb7 JR |
31 | %description -l pl.UTF-8 |
32 | pyRXP to pythonowy interfejs do RXP - kontrolującego poprawność | |
33 | analizatora XML-a z obsługą przestrzeni nazw, napisanego w C. | |
39bf1c14 | 34 | |
283022a9 MG |
35 | %package doc |
36 | Summary: Documentation for Python pyRXP module | |
a9ff2f69 | 37 | Summary(pl.UTF-8): Dokumentacja do modułu Pythona pyRXP |
3cc05815 | 38 | Group: Documentation |
283022a9 | 39 | Requires: %{name} = %{version}-%{release} |
3cc05815 | 40 | BuildArch: noarch |
283022a9 MG |
41 | |
42 | %description doc | |
43 | This package contains documentation files for Python pyRXP module. | |
44 | ||
93d12eb7 JR |
45 | %description doc -l pl.UTF-8 |
46 | Pakiet zawierający dokumentację dla modułu Pythona pyRXP. | |
283022a9 | 47 | |
ed3d0882 | 48 | %prep |
3cc05815 | 49 | %setup -q -n pyRXP-%{version} |
ed3d0882 | 50 | |
b0ae55d0 JB |
51 | # missing in sdist |
52 | touch LICENSE.txt | |
53 | ||
ed3d0882 | 54 | %build |
50122ca4 | 55 | %py_build |
ed3d0882 | 56 | |
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
50122ca4 | 60 | %py_install |
ed3d0882 | 61 | |
ed3d0882 | 62 | %clean |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
3cc05815 | 67 | %doc README.rst |
3cc05815 | 68 | %attr(755,root,root) %{py_sitedir}/pyRXPU.so |
cf4b230f | 69 | %{py_sitedir}/pyRXP-%{version}-py*.egg-info |
283022a9 MG |
70 | |
71 | %files doc | |
72 | %defattr(644,root,root,755) | |
3cc05815 | 73 | %doc docs/*.{gif,html} |