Blame SPECS/python-elementpath.spec

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