]> git.pld-linux.org Git - packages/python3-pyRXP.git/blame - python3-pyRXP.spec
- fixed Name
[packages/python3-pyRXP.git] / python3-pyRXP.spec
CommitLineData
b0ae55d0 1# TODO:
da38de5b 2# - use external rxp
db462542 3#
2d97f47a
JB
4# Conditional build:
5%bcond_without tests # unit tests
db462542 6
0c6c2d84 7Summary: A Python wrapper for the RXP parser
a9ff2f69 8Summary(pl.UTF-8): Pythonowy interfejs do analizatora XML RXP
b41a06ff 9Name: python3-pyRXP
2d97f47a 10Version: 3.0.1
cf4b230f 11Release: 1
ed3d0882 12License: GPL v2
13Group: Libraries/Python
3cc05815 14#Source0Download: https://pypi.org/simple/pyRXP/
b0ae55d0 15Source0: https://files.pythonhosted.org/packages/source/p/pyRXP/pyRXP-%{version}.tar.gz
2d97f47a 16# Source0-md5: 3942f6c321f34d25b3d951b01b4e79d8
3cc05815 17URL: https://pypi.org/project/pyRXP/
2d97f47a
JB
18BuildRequires: python3-devel >= 1:3.6
19BuildRequires: python3-setuptools
3cc05815 20BuildRequires: rpm-build >= 4.6
872be436 21BuildRequires: rpm-pythonprov
3cc05815 22BuildRequires: rpmbuild(macros) >= 1.714
2d97f47a 23Requires: python3-modules >= 1:3.6
ed3d0882 24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
39bf1c14 27pyRXP is a Python wrapper for RXP, a validating namespace-aware
ed3d0882 28XML parser in C.
29
93d12eb7
JR
30%description -l pl.UTF-8
31pyRXP to pythonowy interfejs do RXP - kontrolującego poprawność
32analizatora XML-a z obsługą przestrzeni nazw, napisanego w C.
39bf1c14 33
283022a9
MG
34%package doc
35Summary: Documentation for Python pyRXP module
a9ff2f69 36Summary(pl.UTF-8): Dokumentacja do modułu Pythona pyRXP
3cc05815 37Group: Documentation
283022a9 38Requires: %{name} = %{version}-%{release}
3cc05815 39BuildArch: noarch
283022a9
MG
40
41%description doc
42This package contains documentation files for Python pyRXP module.
43
93d12eb7
JR
44%description doc -l pl.UTF-8
45Pakiet zawierający dokumentację dla modułu Pythona pyRXP.
283022a9 46
ed3d0882 47%prep
3cc05815 48%setup -q -n pyRXP-%{version}
ed3d0882 49
50%build
2d97f47a
JB
51%py3_build
52
53%if %{with tests}
54PYTHONPATH=$(readlink -f build-3/lib.*) \
55%{__python3} test/runAll.py
56%endif
ed3d0882 57
58%install
59rm -rf $RPM_BUILD_ROOT
60
2d97f47a 61%py3_install
ed3d0882 62
ed3d0882 63%clean
64rm -rf $RPM_BUILD_ROOT
65
66%files
67%defattr(644,root,root,755)
3cc05815 68%doc README.rst
2d97f47a
JB
69%attr(755,root,root) %{py3_sitedir}/pyRXPU.cpython-*.so
70%{py3_sitedir}/pyRXP-%{version}-py*.egg-info
283022a9
MG
71
72%files doc
73%defattr(644,root,root,755)
3cc05815 74%doc docs/*.{gif,html}
This page took 0.332687 seconds and 4 git commands to generate.