| |
@@ -2,6 +2,7 @@
|
| |
import logging
|
| |
import re
|
| |
import subprocess
|
| |
+ import sys
|
| |
from collections import defaultdict
|
| |
from fnmatch import fnmatchcase
|
| |
from functools import lru_cache, reduce
|
| |
@@ -91,6 +92,8 @@
|
| |
AUTORELEASE_MACRO + " E%{?-e*}_S%{?-s*}_P%{?-p:1}%{!?-p:0}_B%{?-b*}"
|
| |
)
|
| |
|
| |
+ python_version = str(sys.version_info[0]) + "." + str(sys.version_info[1])
|
| |
+
|
| |
rpm_cmd = [
|
| |
"rpm",
|
| |
"--define",
|
| |
@@ -99,6 +102,10 @@
|
| |
autorelease_definition,
|
| |
"--define",
|
| |
"autochangelog %nil",
|
| |
+ "--define",
|
| |
+ f"__python /usr/bin/python{python_version}",
|
| |
+ "--define",
|
| |
+ f"python_sitelib /usr/lib/python{python_version}/site-packages",
|
| |
"--qf",
|
| |
query,
|
| |
"--specfile",
|
| |
this fixes: https://pagure.io/fedora-infra/rpmautospec/issue/170
verification steps:
master
against this repo.None-1
for releases towards the end of the changelogNone
values should be replaced by real release numbers.Signed-off-by: Stephen Coady scoady@redhat.com