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