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