15
0

Accepting request 807655 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/807655
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pingparsing?expand=0&rev=6
This commit is contained in:
2020-05-26 15:17:11 +00:00
committed by Git OBS Bridge
2 changed files with 23 additions and 9 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 20 07:26:14 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Sun Apr 26 09:26:51 UTC 2020 - Martin Hauke <mardnh@gmx.de>

View File

@@ -29,6 +29,16 @@ Source: https://github.com/thombashi/pingparsing/archive/v%{version}.tar
BuildRequires: %{python_module setuptools >= 38.3.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-humanreadable >= 0.1.0
Requires: python-loguru >= 0.4.1
Requires: python-pyparsing >= 2.0.3
Requires: python-setuptools >= 38.3.0
Requires: python-simplejson
Requires: python-subprocrunner >= 1.2.1
Requires: python-typepy >= 1.1.0
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module humanreadable >= 0.1.0}
BuildRequires: %{python_module pyparsing >= 2.0.3}
@@ -37,14 +47,6 @@ BuildRequires: %{python_module simplejson}
BuildRequires: %{python_module subprocrunner >= 1.2.1}
BuildRequires: %{python_module typepy >= 1.1.0}
# /SECTION
Requires: python-humanreadable >= 0.1.0
Requires: python-loguru >= 0.4.1
Requires: python-pyparsing >= 2.0.3
Requires: python-setuptools >= 38.3.0
Requires: python-simplejson
Requires: python-subprocrunner >= 1.2.1
Requires: python-typepy >= 1.1.0
BuildArch: noarch
%python_subpackages
%description
@@ -59,16 +61,23 @@ sed -i -e '/^#!\//, 1d' pingparsing/__main__.py
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/pingparsing
%python_expand rm -rf %{buildroot}%{$python_sitelib}/examples
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%post
%python_install_alternative pingparsing
%postun
%python_uninstall_alternative pingparsing
%files %{python_files}
%license LICENSE
%doc README.rst
%python3_only %{_bindir}/pingparsing
%python_alternative %{_bindir}/pingparsing
%{python_sitelib}/pingparsing*
%changelog