3 %bcond_without doc # Sphinx documentation
4 %bcond_without tests # unit tests
6 Summary: XPath 1.0/2.0 parsers and selectors for ElementTree and lxml
7 Summary(pl.UTF-8): Parsery i selektory XPath 1.0/2.0 dla ElementTree oraz lxml
8 Name: python3-elementpath
12 Group: Libraries/Python
13 #Source0Download: https://pypi.org/simple/elementpath/
14 Source0: https://files.pythonhosted.org/packages/source/e/elementpath/elementpath-%{version}.tar.gz
15 # Source0-md5: 352e7980c3be9716a355f7588bd151c2
16 URL: https://pypi.org/project/elementpath/
17 BuildRequires: python3-modules >= 1:3.7
18 BuildRequires: python3-setuptools
20 BuildRequires: python3-lxml
22 BuildRequires: rpm-pythonprov
23 BuildRequires: rpmbuild(macros) >= 1.714
25 BuildRequires: sphinx-pdg
27 Requires: python3-modules >= 1:3.7
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 The proposal of this package is to provide XPath 1.0 and 2.0 selectors
33 for Python's ElementTree XML data structures, both for the standard
34 ElementTree library and for the lxml.etree library.
36 %description -l pl.UTF-8
37 Celem tego pakietu jest udostępnienie selektorów XPath 1.0 i 2.0 do
38 pythonowych struktur danych XML ElementTree, zarówno dla ElementTree z
39 biblioteki strandardowej, jak i lxml.etree.
42 Summary: API documentation for Python elementpath module
43 Summary(pl.UTF-8): Dokumentacja API modułu Pythona elementpath
47 API documentation for Python elementpath module.
49 %description apidocs -l pl.UTF-8
50 Dokumentacja API modułu Pythona elementpath.
53 %setup -q -n elementpath-%{version}
59 %{__python3} -m unittest
67 rm -rf $RPM_BUILD_ROOT
72 rm -rf $RPM_BUILD_ROOT
75 %defattr(644,root,root,755)
76 %doc CHANGELOG.rst LICENSE README.rst
77 %{py3_sitescriptdir}/elementpath
78 %{py3_sitescriptdir}/elementpath-%{version}-py*.egg-info
82 %defattr(644,root,root,755)
83 %doc doc/_build/html/{_static,*.html,*.js}