15
0
forked from pool/python-nwdiag

Accepting request 807990 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/807990
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nwdiag?expand=0&rev=11
This commit is contained in:
Tomáš Chvátal
2020-05-21 18:34:19 +00:00
committed by Git OBS Bridge
parent cc7cf77b0f
commit bd33b15824
2 changed files with 23 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 21 10:56:43 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Fri Feb 28 22:58:57 UTC 2020 - Dirk Mueller <dmueller@suse.com>

View File

@@ -31,13 +31,12 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-blockdiag >= 1.5.0
Requires: python-setuptools
Suggests: python-reportlab
Requires(post): update-alternatives
Requires(postun): update-alternatives
Suggests: python-docutils
Suggests: python-nose
Suggests: python-reportlab
Suggests: python-docutils
BuildArch: noarch
%python_subpackages
%description
@@ -51,14 +50,27 @@ nwdiag generates network diagram images from text.
%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
%python3_only %{_bindir}/nwdiag
%python3_only %{_bindir}/rackdiag
%python3_only %{_bindir}/packetdiag
%python_alternative %{_bindir}/nwdiag
%python_alternative %{_bindir}/rackdiag
%python_alternative %{_bindir}/packetdiag
%{python_sitelib}/*
%changelog