diff --git a/Kajiki-0.8.2.tar.gz b/Kajiki-0.8.2.tar.gz deleted file mode 100644 index b23af45..0000000 --- a/Kajiki-0.8.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bbec46b19285d42769d7c4f5a8a0195b72a62b54cd360a26a8875319d58efef6 -size 183446 diff --git a/kajiki-0.8.3.tar.gz b/kajiki-0.8.3.tar.gz new file mode 100644 index 0000000..1de1fea --- /dev/null +++ b/kajiki-0.8.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c7a1f033b5cfaafa97bda5a475f58a7abcd76b348494995428fdcf6c8f648ad9 +size 187666 diff --git a/python-Kajiki.changes b/python-Kajiki.changes index 4b64671..1b205ba 100644 --- a/python-Kajiki.changes +++ b/python-Kajiki.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Tue Aug 31 12:19:49 UTC 2021 - John Paul Adrian Glaubitz + +- Update to 0.8.3 + * Fixed compatibility for Python 3.10 + * Switched the test runner to pytest + * Added the ``kajiki`` command line interface + * Documentation typo corrections +- Enable alternatives mechanism for /usr/bin/kajiki + ------------------------------------------------------------------- Sun Aug 16 13:21:47 UTC 2020 - John Vandenberg diff --git a/python-Kajiki.spec b/python-Kajiki.spec index 6080b23..2fa4f61 100644 --- a/python-Kajiki.spec +++ b/python-Kajiki.spec @@ -1,7 +1,7 @@ # # spec file for package python-Kajiki # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,19 +18,21 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Kajiki -Version: 0.8.2 +Version: 0.8.3 Release: 0 Summary: Compiler for Genshi syntax outputting Python bytecode License: MIT Group: Development/Languages/Python URL: https://github.com/nandoflorestan/kajiki -Source: https://files.pythonhosted.org/packages/source/K/Kajiki/Kajiki-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/k/kajiki/kajiki-%{version}.tar.gz BuildRequires: %{python_module Babel} BuildRequires: %{python_module nine} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun):update-alternatives Requires: python-nine BuildArch: noarch %python_subpackages @@ -42,7 +44,7 @@ Kajiki compiles Genshi-like syntax to Python bytecode. other textual content for output generation on the web.) %prep -%setup -q -n Kajiki-%{version} +%setup -q -n kajiki-%{version} sed -i 's/from nose import SkipTest/from unittest import SkipTest/' kajiki/tests/test_xml.py %build @@ -50,13 +52,21 @@ sed -i 's/from nose import SkipTest/from unittest import SkipTest/' kajiki/tests %install %python_install +%python_clone -a %{buildroot}%{_bindir}/kajiki %python_expand rm -r %{buildroot}%{$python_sitelib}/kajiki/tests %python_expand %fdupes %{buildroot}%{$python_sitelib} +%post +%python_install_alternative kajiki + +%postun +%python_uninstall_alternative kajiki + %check %pytest %files %{python_files} +%python_alternative %{_bindir}/kajiki %license LICENSE.rst %doc README.rst %{python_sitelib}/*