From 533399d186842be834b86abfeff4dfec4745ba34 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Mon, 29 Apr 2024 10:01:53 +0200 Subject: [PATCH] setup.py: s/PY_VERSION/VERSION/ When generating spec file, @PY_VERSION@ is replaced with the current version of libvirt-python. Well, it's not as obvious as it could be: usually it's just @VERSION@. Worse, the PY_ prefix may mislead readers into thinking it refers to python version. Just drop the PY_ prefix. Signed-off-by: Michal Privoznik --- libvirt-python.spec.in | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libvirt-python.spec.in b/libvirt-python.spec.in index 9f6fb3e..e260eaf 100644 --- a/libvirt-python.spec.in +++ b/libvirt-python.spec.in @@ -14,7 +14,7 @@ Summary: The libvirt virtualization API python3 binding Name: libvirt-python -Version: @PY_VERSION@ +Version: @VERSION@ Release: 1%{?dist} Source0: https://libvirt.org/sources/python/%{name}-%{version}.tar.gz Url: https://libvirt.org diff --git a/setup.py b/setup.py index 07fee07..7a724fa 100755 --- a/setup.py +++ b/setup.py @@ -196,7 +196,7 @@ class my_sdist(sdist): def gen_rpm_spec(self): return self._gen_from_in("libvirt-python.spec.in", "libvirt-python.spec", - "@PY_VERSION@", + "@VERSION@", getVersion()) def gen_authors(self):