From a0cbaad3af72484d9926b7bcbf540625a3159115a577e146bea1e1b637f1c506 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 8 Feb 2023 00:58:51 +0000 Subject: [PATCH] - Add patch fix-requirements.patch: * Stop specifying an invalid Sphinx version. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hankel?expand=0&rev=22 --- fix-requirements.patch | 32 ++++++++++++++++++++++++++++++++ python-hankel.changes | 6 ++++++ python-hankel.spec | 10 ++++------ 3 files changed, 42 insertions(+), 6 deletions(-) create mode 100644 fix-requirements.patch diff --git a/fix-requirements.patch b/fix-requirements.patch new file mode 100644 index 0000000..9941807 --- /dev/null +++ b/fix-requirements.patch @@ -0,0 +1,32 @@ +Index: hankel-1.2.1/setup.cfg +=================================================================== +--- hankel-1.2.1.orig/setup.cfg ++++ hankel-1.2.1/setup.cfg +@@ -50,14 +50,14 @@ dev = + pre-commit + pytest + pytest-cov +- sphinx>=2.0<3 ++ sphinx>=2.0,<3 + sphinx-rtd-theme + docs = + ipykernel + nbsphinx + numpydoc + pandoc +- sphinx>=2.0<3 ++ sphinx>=2.0,<3 + sphinx-rtd-theme + tests = + pre-commit +Index: hankel-1.2.1/docs/requirements.txt +=================================================================== +--- hankel-1.2.1.orig/docs/requirements.txt ++++ hankel-1.2.1/docs/requirements.txt +@@ -2,5 +2,5 @@ ipykernel + nbsphinx + numpydoc + pandoc +-sphinx>=2.0<3 ++sphinx>=2.0,<3 + sphinx_rtd_theme diff --git a/python-hankel.changes b/python-hankel.changes index 079f952..99eb11e 100644 --- a/python-hankel.changes +++ b/python-hankel.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Feb 8 00:50:32 UTC 2023 - Steve Kowalik + +- Add patch fix-requirements.patch: + * Stop specifying an invalid Sphinx version. + ------------------------------------------------------------------- Sun May 1 18:52:47 UTC 2022 - Atri Bhattacharya diff --git a/python-hankel.spec b/python-hankel.spec index 54f6034..9a3e944 100644 --- a/python-hankel.spec +++ b/python-hankel.spec @@ -1,7 +1,7 @@ # # spec file for package python-hankel # -# Copyright (c) 2022 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 @@ -16,18 +16,16 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 -%define skip_python36 1 %define modname hankel Name: python-hankel Version: 1.2.1 Release: 0 Summary: Hankel Transformations using method of Ogata 2005 License: MIT -Group: Development/Languages/Python URL: https://github.com/steven-murray/hankel Source: https://files.pythonhosted.org/packages/source/h/%{modname}/%{modname}-%{version}.tar.gz +# PATCH-FIX-OPENSUSE Work around gh#steven-murray/hankel#80 +Patch0: fix-requirements.patch BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -49,7 +47,7 @@ Hankel is a Python library to perform simple and accurate Hankel transformations using the method of Ogata 2005. %prep -%setup -q -n hankel-%{version} +%autosetup -p1 -n hankel-%{version} %build %python_build