diff --git a/py3-for-tests.patch b/py3-for-tests.patch index 6fadeed..adfcc52 100644 --- a/py3-for-tests.patch +++ b/py3-for-tests.patch @@ -2,13 +2,8 @@ Index: plantuml-0.18/tests/fakecmd.py =================================================================== --- plantuml-0.18.orig/tests/fakecmd.py +++ plantuml-0.18/tests/fakecmd.py -@@ -1,7 +1,7 @@ +@@ -1,3 +1,3 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys - # embed as PostScript comment --print '%', ' '.join(sys.argv) -+print('%', ' '.join(sys.argv)) - for line in sys.stdin: - sys.stdout.write('% ' + line) diff --git a/python-sphinxcontrib-plantuml.changes b/python-sphinxcontrib-plantuml.changes index 1b95001..2c3f282 100644 --- a/python-sphinxcontrib-plantuml.changes +++ b/python-sphinxcontrib-plantuml.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 29 08:58:05 UTC 2021 - Linnaea Lavia + +- Version update to 0.21, drops python2 + * py3-for-tests.patch: refreshed + ------------------------------------------------------------------- Thu Apr 23 11:38:22 UTC 2020 - Tomáš Chvátal diff --git a/python-sphinxcontrib-plantuml.spec b/python-sphinxcontrib-plantuml.spec index f56a879..eaa7dae 100644 --- a/python-sphinxcontrib-plantuml.spec +++ b/python-sphinxcontrib-plantuml.spec @@ -16,9 +16,11 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 +%{?!python_module:%define python_module() python3-%{**}} + Name: python-sphinxcontrib-plantuml -Version: 0.18 +Version: 0.21 Release: 0 Summary: Sphinx API for Web Apps License: BSD-2-Clause @@ -26,9 +28,8 @@ Group: Development/Languages/Python URL: https://github.com/sphinx-contrib/plantuml/ Source: https://github.com/sphinx-contrib/plantuml/archive/%{version}.tar.gz#/sphinxcontrib-plantuml-%{version}.tar.gz Patch0: py3-for-tests.patch -BuildRequires: %{python_module Sphinx >= 1.1} +BuildRequires: %{python_module Sphinx >= 2} BuildRequires: %{python_module Sphinx-latex} -BuildRequires: %{python_module nose} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -37,7 +38,7 @@ BuildRequires: python-rpm-macros BuildRequires: texlive-epstopdf BuildRequires: tox Requires: plantuml -Requires: python-Sphinx >= 1.1 +Requires: python-Sphinx >= 2 BuildArch: noarch %python_subpackages diff --git a/sphinxcontrib-plantuml-0.18.tar.gz b/sphinxcontrib-plantuml-0.18.tar.gz deleted file mode 100644 index c7d49b7..0000000 --- a/sphinxcontrib-plantuml-0.18.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7497bb0ccfe38cc0f8d28db9ab4d8071d288e200cd2d347f7bef7e88e27a381c -size 15244 diff --git a/sphinxcontrib-plantuml-0.21.tar.gz b/sphinxcontrib-plantuml-0.21.tar.gz new file mode 100644 index 0000000..bfeefe3 --- /dev/null +++ b/sphinxcontrib-plantuml-0.21.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9853765114b32486ce998b16bc75ac923cddb6246ffcb6c6a21ad6c958d674e3 +size 17115