1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2024-10-26 07:55:06 +03:00

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 <mprivozn@redhat.com>
This commit is contained in:
Michal Privoznik 2024-04-29 10:01:53 +02:00 committed by Daniel P. Berrangé
parent dfafe46ca8
commit 533399d186
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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):