c92a5e4
%global pypi_name elementpath
c92a5e4
Name:           python-%{pypi_name}
8b3d8c5
Version:        3.0.2
c750d6f
Release:        3%{?dist}
c92a5e4
Summary:        XPath 1.0/2.0 parsers and selectors for ElementTree and lxml
c92a5e4
c92a5e4
License:        MIT
c92a5e4
URL:            https://github.com/sissaschool/elementpath
a2e5d02
Source0:        %{url}/archive/v%{version}/elementpath-%{version}.tar.gz
a2e5d02
c92a5e4
BuildArch:      noarch
c92a5e4
BuildRequires:  pyproject-rpm-macros
c92a5e4
c92a5e4
# Circular test dependency on xmlschema and self
ce2ad12
%bcond_without tests
c92a5e4
%if %{with tests}
c92a5e4
BuildRequires:  glibc-langpack-en
c92a5e4
%endif
c92a5e4
c92a5e4
%global _description %{expand:
8b3d8c5
The proposal of this package is to provide XPath 1.0, 2.0 and 3.0 selectors for
c92a5e4
Python's ElementTree XML data structures, both for the standard ElementTree
c92a5e4
library and for the lxml.etree library.
c92a5e4
c92a5e4
For lxml.etree this package can be useful for providing XPath 2.0 selectors,
c92a5e4
because lxml.etree already has it's own implementation of XPath 1.0.}
c92a5e4
c92a5e4
%description %_description
c92a5e4
c92a5e4
c92a5e4
%package -n     python3-%{pypi_name}
c92a5e4
Summary:        %{summary}
c92a5e4
%{?python_provide:%python_provide python3-%{pypi_name}}
c92a5e4
c92a5e4
%description -n python3-%{pypi_name}  %_description
c92a5e4
c92a5e4
c92a5e4
%prep
473fad9
%autosetup -p1 -n %{pypi_name}-%{version}
c92a5e4
sed -i 's/~=/>=/' setup.py tox.ini  # https://bugzilla.redhat.com/show_bug.cgi?id=1758141
c92a5e4
c92a5e4
%generate_buildrequires
c92a5e4
%if %{with tests}
c92a5e4
%pyproject_buildrequires -t
c92a5e4
%else
c92a5e4
%pyproject_buildrequires
c92a5e4
%endif
c92a5e4
c92a5e4
%build
c92a5e4
%pyproject_wheel
c92a5e4
c92a5e4
%install
c92a5e4
%pyproject_install
c92a5e4
c92a5e4
%if %{with tests}
c92a5e4
%check
c92a5e4
# The C.utf-8 locale fails with some straße related tests
c92a5e4
# We could use a German locale, but English works fine
c92a5e4
export LANG=en_US.utf-8
c92a5e4
%tox
c92a5e4
%endif
c92a5e4
c92a5e4
%files -n python3-%{pypi_name}
c92a5e4
%license LICENSE
c92a5e4
%doc README.rst
c92a5e4
%{python3_sitelib}/%{pypi_name}/
c92a5e4
%{python3_sitelib}/%{pypi_name}-%{version}.dist-info/
c92a5e4
c92a5e4
c92a5e4
%changelog
c750d6f
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-3
c750d6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
c750d6f
ce2ad12
* Tue Aug 16 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.0.2-2
ce2ad12
-  Update to 3.0.2 - enable tests
ce2ad12
8b3d8c5
* Tue Aug 16 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.0.2-1
8b3d8c5
- Update to 3.0.2
8b3d8c5
- Fixes: rhbz#2021606
8b3d8c5
9f05df6
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-5
9f05df6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
9f05df6
00615c4
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.3.2-4
00615c4
- Rebuilt for Python 3.11
00615c4
cf79027
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.3.2-3
cf79027
- Bootstrap for Python 3.11
cf79027
d7e5e20
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-2
d7e5e20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
d7e5e20
2fd7dcc
* Fri Nov 05 2021 Joel Capitao <jcapitao@redhat.com> - 2.3.2-1
2fd7dcc
- Update to 2.3.2
2fd7dcc
- Fixes rhbz#2000317
2fd7dcc
ad16d10
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-3
ad16d10
- Second attempt - Rebuilt for
ad16d10
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
ad16d10
4dac863
* Mon Jul 26 2021 Tomas Hrnciar <thrnciar@redhat.com> - 2.2.3-2
4dac863
- Update to 2.2.3 with tests
4dac863
a2e5d02
* Mon Jul 26 2021 Tomas Hrnciar <thrnciar@redhat.com> - 2.2.3-1
a2e5d02
- Update to 2.2.3 without tests
a2e5d02
6fb1fbe
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.1.2-3
6fb1fbe
- Rebuilt for Python 3.10
6fb1fbe
5ccaa8e
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 2.1.2-2
5ccaa8e
- Bootstrap for Python 3.10
5ccaa8e
1bcaecb
* Thu Jan 28 12:03:51 CET 2021 Tomas Hrnciar <thrnciar@redhat.com> - 2.1.2-1
1bcaecb
- Update to 2.1.2
1bcaecb
e37177f
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-3
e37177f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e37177f
5de3aa3
* Fri Jan 15 09:57:43 CET 2021 Tomas Hrnciar <thrnciar@redhat.com> - 2.1.1-2
5de3aa3
- Build with tests
5de3aa3
e619919
* Thu Jan 14 08:35:26 CET 2021 Tomas Hrnciar <thrnciar@redhat.com> - 2.1.1-1
e619919
- Update to 2.1.1
e619919
3c8e8ed
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-5
3c8e8ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3c8e8ed
2b476f2
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.4.0-4
2b476f2
- Rebuilt for Python 3.9
2b476f2
0a7ed26
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.4.0-3
0a7ed26
- Bootstrap for Python 3.9
0a7ed26
f88f95e
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
f88f95e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f88f95e
aa2477c
* Tue Dec 31 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.0-1
aa2477c
- Update to 1.4.0
aa2477c
c92a5e4
* Tue Dec 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.2-1
c92a5e4
- Initial package