diff --git a/fix-requirements.patch b/fix-requirements.patch new file mode 100644 index 0000000..ae1076d --- /dev/null +++ b/fix-requirements.patch @@ -0,0 +1,13 @@ +Index: pingparsing-1.4.0/setup.py +=================================================================== +--- pingparsing-1.4.0.orig/setup.py ++++ pingparsing-1.4.0/setup.py +@@ -40,7 +40,7 @@ with open(os.path.join(REQUIREMENT_DIR, + with open(os.path.join(REQUIREMENT_DIR, "test_requirements.txt")) as f: + tests_requires = [line.strip() for line in f if line.strip()] + +-CLI_OPT_REQUIRES = ["loguru>=0.4.1,<1", "Pygments>=2.1<3"] ++CLI_OPT_REQUIRES = ["loguru>=0.4.1,<1", "Pygments>=2.1,<3"] + + setuptools.setup( + name=MODULE_NAME, diff --git a/python-pingparsing.changes b/python-pingparsing.changes index 7ecca83..163c849 100644 --- a/python-pingparsing.changes +++ b/python-pingparsing.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Feb 13 04:12:07 UTC 2023 - Steve Kowalik + +- Add patch fix-requirements.patch: + * Fix invalid version number. + ------------------------------------------------------------------- Mon Oct 25 19:39:25 UTC 2021 - Martin Hauke diff --git a/python-pingparsing.spec b/python-pingparsing.spec index caddabc..d2c90dc 100644 --- a/python-pingparsing.spec +++ b/python-pingparsing.spec @@ -1,7 +1,7 @@ # # spec file for package python-pingparsing # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,6 +26,8 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/thombashi/pingparsing Source: https://github.com/thombashi/pingparsing/archive/v%{version}.tar.gz#/pingparsing-%{version}.tar.gz +# PATCH-FIX-UPSTREAM gh#thombashi/pingparsing#47 +Patch0: fix-requirements.patch BuildRequires: %{python_module setuptools >= 38.3.0} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -55,7 +57,7 @@ BuildRequires: %{python_module typepy >= 1.1.0} pingparsing is a CLI-tool/Python-library for parsing ping command output. %prep -%setup -q -n pingparsing-%{version} +%autosetup -p1 -n pingparsing-%{version} sed -i -e '/^#!\//, 1d' pingparsing/__main__.py %build