14
0

Accepting request 1277424 from home:mcalabkova:branches:devel:languages:python

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1277424
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blockdiag?expand=0&rev=26
This commit is contained in:
2025-05-15 11:04:45 +00:00
committed by Git OBS Bridge
parent 833255b998
commit 27c161a513
2 changed files with 13 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 14 12:28:44 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Oct 3 12:06:41 UTC 2023 - Markéta Machová <mmachova@suse.com> Tue Oct 3 12:06:41 UTC 2023 - Markéta Machová <mmachova@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-blockdiag # spec file for package python-blockdiag
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -33,21 +33,23 @@ Patch1: pillow10.patch
BuildRequires: %{python_module Pillow >= 3} BuildRequires: %{python_module Pillow >= 3}
BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module funcparserlib >= 1.0.0~a0} BuildRequires: %{python_module funcparserlib >= 1.0.0~a0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module webcolors} BuildRequires: %{python_module webcolors}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-Pillow >= 3 Requires: python-Pillow >= 3
Requires: python-funcparserlib >= 1.0.0~a0 Requires: python-funcparserlib >= 1.0.0~a0
Requires: python-setuptools Requires: python-setuptools
Requires: python-webcolors Requires: python-webcolors
Requires(post): update-alternatives Requires(post): alts
Requires(preun):update-alternatives Requires(preun): alts
BuildArch: noarch BuildArch: noarch
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module reportlab}
BuildRequires: %{python_module docutils} BuildRequires: %{python_module docutils}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module reportlab}
# /SECTION # /SECTION
%if 0%{?suse_version} || 0%{?fedora_version} >= 24 %if 0%{?suse_version} || 0%{?fedora_version} >= 24
Recommends: ghostscript Recommends: ghostscript
@@ -64,10 +66,10 @@ from spec-text files.
%autosetup -p1 -n blockdiag-%{version} %autosetup -p1 -n blockdiag-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/blockdiag %python_clone -a %{buildroot}%{_bindir}/blockdiag