forked from pool/python-rpm-macros
Matej Cepl
4153c7831f
python binary. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python-rpm-macros?expand=0&rev=110
39 lines
1.5 KiB
Diff
39 lines
1.5 KiB
Diff
--- a/compile-macros.sh
|
|
+++ b/compile-macros.sh
|
|
@@ -1,10 +1,10 @@
|
|
#!/bin/bash
|
|
|
|
-FLAVORS="python2 python3 pypy3"
|
|
+FLAVORS="python2 python3 python36 python38 pypy3"
|
|
|
|
# order of BUILDSET is important, it is copied to order of %pythons,
|
|
# and that determines the last installed binary
|
|
-BUILDSET="python2 python3"
|
|
+BUILDSET="python2 python36 python38"
|
|
|
|
|
|
### flavor-specific: generate from flavor.in
|
|
--- a/flavor.in
|
|
+++ b/flavor.in
|
|
@@ -1,14 +1,14 @@
|
|
##### macro definitions for flavor "#FLAVOR#" #####
|
|
|
|
-%__#FLAVOR# /usr/bin/#FLAVOR#
|
|
-
|
|
%#FLAVOR#_shbang_opts %py_shbang_opts
|
|
|
|
+%__#FLAVOR# /usr/bin/%{lua: print((string.gsub("#FLAVOR#", "(%w+%d)(%d)", "%1.%2")))}
|
|
+
|
|
%#FLAVOR#_prefix #FLAVOR#
|
|
-%#FLAVOR#_sitelib %{_python_sysconfig_path #FLAVOR# purelib}
|
|
-%#FLAVOR#_sitearch %{_python_sysconfig_path #FLAVOR# platlib}
|
|
-%#FLAVOR#_version %{_python_sysconfig_var #FLAVOR# py_version_short}
|
|
-%#FLAVOR#_version_nodots %{_python_sysconfig_var #FLAVOR# py_version_nodot}
|
|
+%#FLAVOR#_sitelib %{_python_sysconfig_path %__#FLAVOR# purelib}
|
|
+%#FLAVOR#_sitearch %{_python_sysconfig_path %__#FLAVOR# platlib}
|
|
+%#FLAVOR#_version %{_python_sysconfig_var %__#FLAVOR# py_version_short}
|
|
+%#FLAVOR#_version_nodots %{_python_sysconfig_var %__#FLAVOR# py_version_nodot}
|
|
|
|
%#FLAVOR#_sysconfig_path() %{_rec_macro_helper}%{lua:call_sysconfig("path", "#FLAVOR#")}
|
|
%#FLAVOR#_sysconfig_var() %{_rec_macro_helper}%{lua:call_sysconfig("var", "#FLAVOR#")}
|