14
0

Accepting request 993133 from home:bnavigator:branches:devel:languages:python

- Update to 3.0.0
  * Drop python3.6 support
  * Use funcparserlib-1.0.0a0 or newer to support new python
    versions
  * Allow to write multiline string via triple quotes (""" ... """)
  * Fix #147: file existence disclosure using svg renderer
- Refresh python-blockdiag-nose-to-pytest.patch

OBS-URL: https://build.opensuse.org/request/show/993133
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blockdiag?expand=0&rev=20
This commit is contained in:
2022-08-04 20:59:21 +00:00
committed by Git OBS Bridge
parent 484a456f37
commit faa254a7c8
5 changed files with 48 additions and 61 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-blockdiag
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,36 +16,34 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-blockdiag
Version: 2.0.1
Version: 3.0.0
Release: 0
Summary: Program to generate block-diagram images from text
License: Apache-2.0
Group: Development/Languages/Python
URL: http://blockdiag.com/
Source: https://files.pythonhosted.org/packages/source/b/blockdiag/blockdiag-%{version}.tar.gz
# PATCH-FIX-UPSTREAM denose.patch gh#blockdiag/blockdiag#131 pgajdos@suse.com
# PATCH-FIX-UPSTREAM python-blockdiag-nose-to-pytest.patch gh#blockdiag/blockdiag#131 pgajdos@suse.com
# Remove the last silly dependency on nose
Patch0: python-blockdiag-nose-to-pytest.patch
BuildRequires: %{python_module Pillow >= 2.2.1}
BuildRequires: %{python_module funcparserlib >= 0.3.6}
BuildRequires: %{python_module reportlab}
BuildRequires: %{python_module Pillow >= 3}
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module funcparserlib >= 1.0.0~a0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module webcolors}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Pillow >= 2.2.1
Requires: python-funcparserlib >= 0.3.6
Requires: python-Pillow >= 3
Requires: python-funcparserlib >= 1.0.0~a0
Requires: python-setuptools
Requires: python-webcolors
Requires(post): update-alternatives
Requires(preun):update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module reportlab}
BuildRequires: %{python_module docutils}
BuildRequires: %{python_module pep8 >= 1.3}
BuildRequires: %{python_module pip >= 1.4.1}
BuildRequires: %{python_module pytest}
# /SECTION
%if 0%{?suse_version} || 0%{?fedora_version} >= 24
@@ -89,7 +87,7 @@ popd
%license LICENSE
%doc CHANGES.rst README.rst
%python_alternative %{_bindir}/blockdiag
%{python_sitelib}/blockdiag*
%pycache_only %{python_sitelib}/__pycache__/blockdiag*
%{python_sitelib}/blockdiag
%{python_sitelib}/blockdiag-%{version}*-info
%changelog