15
0
forked from pool/python-nwdiag

Accepting request 1281974 from devel:languages:python

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1281974
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nwdiag?expand=0&rev=7
This commit is contained in:
2025-06-02 20:01:35 +00:00
committed by Git OBS Bridge
2 changed files with 16 additions and 8 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 2 14:49:06 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Tue Jul 19 12:15:58 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-nwdiag
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,8 +16,6 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global skip_python2 1
Name: python-nwdiag
Version: 3.0.0
Release: 0
@@ -26,13 +24,15 @@ License: Apache-2.0
Group: Development/Languages/Python
URL: http://blockdiag.com/
Source: https://files.pythonhosted.org/packages/source/n/nwdiag/nwdiag-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-blockdiag >= 1.5.0
Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(post): alts
Requires(postun): alts
Suggests: python-docutils
Suggests: python-nose
Suggests: python-reportlab
@@ -46,10 +46,10 @@ nwdiag generates network diagram images from text.
%setup -q -n nwdiag-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/packetdiag
%python_clone -a %{buildroot}%{_bindir}/rackdiag
%python_clone -a %{buildroot}%{_bindir}/nwdiag
@@ -71,6 +71,9 @@ nwdiag generates network diagram images from text.
%python_alternative %{_bindir}/nwdiag
%python_alternative %{_bindir}/rackdiag
%python_alternative %{_bindir}/packetdiag
%{python_sitelib}/*
%{python_sitelib}/nwdiag
%{python_sitelib}/rackdiag
%{python_sitelib}/packetdiag
%{python_sitelib}/nwdiag-%{version}*-info
%changelog