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