diff --git a/python-xmlschema.changes b/python-xmlschema.changes index 30d5509..8553a15 100644 --- a/python-xmlschema.changes +++ b/python-xmlschema.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Thu Jun 11 03:46:21 UTC 2020 - Steve Kowalik + +- Update to version 1.2.0: + * Add ColumnarConverter class + * Add command-line interface utility for document API + * Fix a stable public API for XSD types, elements and attributes + * Add security modes for accessing URLs + * Clean component parsing + * Fix namespace loading for chameleon schemas + * Fix UPA checks with nested choice/all models +- Install new binaries + ------------------------------------------------------------------- Tue Mar 24 15:10:44 UTC 2020 - pgajdos@suse.com diff --git a/python-xmlschema.spec b/python-xmlschema.spec index 20b9910..c10db76 100644 --- a/python-xmlschema.spec +++ b/python-xmlschema.spec @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-xmlschema -Version: 1.1.2 +Version: 1.2.0 Release: 0 Summary: An XML Schema validator and decoder License: MIT @@ -33,6 +33,8 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-elementpath >= 1.4.0 Requires: python-lxml +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -56,6 +58,10 @@ export LANG="en_US.UTF8" export LANG="en_US.UTF8" %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +# Prepare for update-alternatives usage +for p in json2xml validate xml2json; do + %python_clone -a %{buildroot}%{_bindir}/xmlschema-$p +done %check # test_element_tree_import_script is (easily workaroundable) https://github.com/sissaschool/xmlschema/issues/167 @@ -63,9 +69,22 @@ export LANG="en_US.UTF8" export LANG="en_US.UTF8" %pytest -k "not (test_element_tree_import_script or tests_factory)" tests +%post +%python_install_alternative xmlschema-json2xml +%python_install_alternative xmlschema-validate +%python_install_alternative xmlschema-xml2json + +%postun +%python_uninstall_alternative xmlschema-json2xml +%python_uninstall_alternative xmlschema-validate +%python_uninstall_alternative xmlschema-xml2json + %files %{python_files} %doc CHANGELOG.rst README.rst %license LICENSE %{python_sitelib}/* +%python_alternative %{_bindir}/xmlschema-json2xml +%python_alternative %{_bindir}/xmlschema-validate +%python_alternative %{_bindir}/xmlschema-xml2json %changelog diff --git a/xmlschema-1.1.2.tar.gz b/xmlschema-1.1.2.tar.gz deleted file mode 100644 index 8ef523b..0000000 --- a/xmlschema-1.1.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:57bfda48a864f1d6e10bd06288c87e18eee4fd5a79d0ddfbf9d81f0fab748b39 -size 297566 diff --git a/xmlschema-1.2.0.tar.gz b/xmlschema-1.2.0.tar.gz new file mode 100644 index 0000000..306c829 --- /dev/null +++ b/xmlschema-1.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:079169d8e3393e2605b0dd4d66d2450c9e828c2a7baa8692df949057b123da9c +size 314580