30885a
%global pypi_name xmlschema
30885a
Name:           python-%{pypi_name}
30885a
Version:        2.4.0
30885a
Release:        4%{?dist}
30885a
Summary:        A Python XML Schema validator and decoder
30885a
30885a
License:        MIT
30885a
URL:            https://github.com/brunato/xmlschema
30885a
Source0:        %{pypi_source}
30885a
30885a
# Skip tests requiring an internet connection
30885a
Patch:          https://github.com/sissaschool/xmlschema/pull/365.patch
30885a
Patch0002:      0002-Use-sys.version_info-in-test_pickling_subclassed_sch.patch
30885a
30885a
BuildArch:      noarch
30885a
BuildRequires:  python3-devel
30885a
BuildRequires:  pyproject-rpm-macros
30885a
30885a
%global _description %{expand:
30885a
The xmlschema library is an implementation of XML Schema for Python.
30885a
30885a
This library arises from the needs of a solid Python layer for processing XML
30885a
Schema based files for MaX (Materials design at the Exascale) European project.
30885a
A significant problem is the encoding and the decoding of the XML data files
30885a
produced by different simulation software. Another important requirement is
30885a
the XML data validation, in order to put the produced data under control.
30885a
The lack of a suitable alternative for Python in the schema-based decoding
30885a
of XML data has led to build this library. Obviously this library can be
30885a
useful for other cases related to XML Schema based processing, not only for
30885a
the original scope.}
30885a
30885a
%description %_description
30885a
30885a
30885a
%package -n     python3-%{pypi_name}
30885a
Summary:        %{summary}
30885a
%{?python_provide:%python_provide python3-%{pypi_name}}
30885a
30885a
%description -n python3-%{pypi_name}  %_description
30885a
30885a
30885a
%prep
30885a
%autosetup -p1 -n %{pypi_name}-%{version}
30885a
sed -i 's/~=/>=/' setup.py tox.ini  # https://bugzilla.redhat.com/show_bug.cgi?id=1758141
30885a
sed -i 's/==/>=/' tox.ini  # too strict test deps
30885a
sed -i '/memory_profiler/d' tox.ini # optional test dep, not packaged in Fedora, not worth testing
30885a
%py3_shebang_fix %{pypi_name}
30885a
30885a
%generate_buildrequires
30885a
%pyproject_buildrequires -t
30885a
30885a
%build
30885a
%pyproject_wheel
30885a
30885a
%install
30885a
%pyproject_install
30885a
30885a
%check
30885a
%tox
30885a
30885a
%files -n python3-%{pypi_name}
30885a
%license LICENSE
30885a
%doc README.rst
30885a
%{python3_sitelib}/%{pypi_name}/
30885a
%{python3_sitelib}/%{pypi_name}-%{version}.dist-info/
30885a
%{_bindir}/xmlschema-json2xml
30885a
%{_bindir}/xmlschema-validate
30885a
%{_bindir}/xmlschema-xml2json
30885a
30885a
30885a
%changelog
30885a
* Fri Aug 25 2023 Charalampos Stratakis <cstratak@redhat.com> - 2.4.0-4
30885a
- Backport patch
30885a
30885a
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-3
30885a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
30885a
30885a
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-2
30885a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
30885a
30885a
* Fri Aug 25 2023 Charalampos Stratakis <cstratak@redhat.com> - 2.4.0-1
30885a
- Update to 2.4.0
30885a
- Fixes: rhbz#2121551
30885a
30885a
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-4
30885a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
30885a
30885a
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 2.0.3-3
30885a
- Rebuilt for Python 3.12
30885a
30885a
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-2
30885a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
30885a
30885a
* Thu Aug 11 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 2.0.3-1
30885a
- Update to 2.0.3
30885a
- Fixes: rhbz#2022465
30885a
30885a
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-4
30885a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
30885a
30885a
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.7.0-3
30885a
- Rebuilt for Python 3.11
30885a
30885a
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-2
30885a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
30885a
30885a
* Wed Aug 18 2021 Charalampos Stratakis <cstratak@redhat.com> - 1.7.0-1
30885a
- Update to 1.7.0 (#1989154)
30885a
30885a
* Mon Jul 26 2021 Tomas Hrnciar <thrnciar@redhat.com> - 1.6.4-1
30885a
- Update to 1.6.4
30885a
30885a
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-3
30885a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
30885a
30885a
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 1.4.2-2
30885a
- Rebuilt for Python 3.10
30885a
30885a
* Thu Jan 28 11:17:16 CET 2021 Tomas Hrnciar <thrnciar@redhat.com> - 1.4.2-1
30885a
- Update to 1.4.2
30885a
30885a
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-2
30885a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
30885a
30885a
* Thu Jan 14 08:42:36 CET 2021 Tomas Hrnciar <thrnciar@redhat.com> - 1.4.1-1
30885a
- Update to 1.4.1
30885a
30885a
* Mon Sep 21 2020 Lumír Balhar <lbalhar@redhat.com> - 1.0.18-5
30885a
- Fix FTBFS by build-requiring python3-devel
30885a
30885a
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.18-4
30885a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
30885a
30885a
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.18-3
30885a
- Rebuilt for Python 3.9
30885a
30885a
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.18-2
30885a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
30885a
30885a
* Tue Dec 31 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.18-1
30885a
- Update to 1.0.18
30885a
30885a
* Tue Dec 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.16-1
30885a
- Initial package