From a755cf3e1dd19e4e601686df8309379c62d526547969b7523ce84a745d9553e1 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 24 Oct 2024 14:50:13 +0000 Subject: [PATCH] - Fix setting of the version number "manually" (with sed) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-eventlet?expand=0&rev=123 --- python-eventlet.changes | 1 + python-eventlet.spec | 3 +++ 2 files changed, 4 insertions(+) diff --git a/python-eventlet.changes b/python-eventlet.changes index f012b02..c09fc26 100644 --- a/python-eventlet.changes +++ b/python-eventlet.changes @@ -17,6 +17,7 @@ Wed Oct 23 23:18:11 UTC 2024 - mcepl@cepl.eu - 313-new-thread-attributes.patch (gh#eventlet/eventlet#964) - no-dynamic-version.patch (we cannot use dynamic version number on a git checkout) +- Fix setting of the version number "manually" (with sed) ------------------------------------------------------------------- Wed Sep 18 08:28:43 UTC 2024 - John Paul Adrian Glaubitz diff --git a/python-eventlet.spec b/python-eventlet.spec index 3c50f40..ae9a257 100644 --- a/python-eventlet.spec +++ b/python-eventlet.spec @@ -68,6 +68,9 @@ interpreter, or as part of a larger application. %prep %autosetup -p1 -n eventlet-%{version} +# set the package version manually +sed -i -e '/^\s*__version__/s/0.0.0/%{up_version}/' eventlet/__init__.py + %build %pyproject_wheel