mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-08-04 12:21:57 +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:
committed by
Daniel P. Berrangé
parent
dfafe46ca8
commit
533399d186
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
Summary: The libvirt virtualization API python3 binding
|
Summary: The libvirt virtualization API python3 binding
|
||||||
Name: libvirt-python
|
Name: libvirt-python
|
||||||
Version: @PY_VERSION@
|
Version: @VERSION@
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Source0: https://libvirt.org/sources/python/%{name}-%{version}.tar.gz
|
Source0: https://libvirt.org/sources/python/%{name}-%{version}.tar.gz
|
||||||
Url: https://libvirt.org
|
Url: https://libvirt.org
|
||||||
|
2
setup.py
2
setup.py
@ -196,7 +196,7 @@ class my_sdist(sdist):
|
|||||||
def gen_rpm_spec(self):
|
def gen_rpm_spec(self):
|
||||||
return self._gen_from_in("libvirt-python.spec.in",
|
return self._gen_from_in("libvirt-python.spec.in",
|
||||||
"libvirt-python.spec",
|
"libvirt-python.spec",
|
||||||
"@PY_VERSION@",
|
"@VERSION@",
|
||||||
getVersion())
|
getVersion())
|
||||||
|
|
||||||
def gen_authors(self):
|
def gen_authors(self):
|
||||||
|
Reference in New Issue
Block a user