15
0
forked from pool/python-nwdiag
Files
python-nwdiag/python-nwdiag.spec
Dirk Mueller f610234f66 - 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 (""" ... """)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nwdiag?expand=0&rev=13
2022-07-19 12:16:43 +00:00

77 lines
2.3 KiB
RPMSpec

#
# spec file for package python-nwdiag
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global skip_python2 1
Name: python-nwdiag
Version: 3.0.0
Release: 0
Summary: Generator for network diagram images from text
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 setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-blockdiag >= 1.5.0
Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun):update-alternatives
Suggests: python-docutils
Suggests: python-nose
Suggests: python-reportlab
BuildArch: noarch
%python_subpackages
%description
nwdiag generates network diagram images from text.
%prep
%setup -q -n nwdiag-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/packetdiag
%python_clone -a %{buildroot}%{_bindir}/rackdiag
%python_clone -a %{buildroot}%{_bindir}/nwdiag
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative packetdiag
%python_install_alternative rackdiag
%python_install_alternative nwdiag
%postun
%python_uninstall_alternative packetdiag
%python_uninstall_alternative rackdiag
%python_uninstall_alternative nwdiag
%files %{python_files}
%doc README.rst
%license LICENSE
%python_alternative %{_bindir}/nwdiag
%python_alternative %{_bindir}/rackdiag
%python_alternative %{_bindir}/packetdiag
%{python_sitelib}/*
%changelog