forked from pool/python-rpm-macros
- Update multiple_flavors.patch to generate correct names of the
python binary. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python-rpm-macros?expand=0&rev=110
This commit is contained in:
parent
195c90ab54
commit
4153c7831f
@ -15,20 +15,24 @@
|
|||||||
### flavor-specific: generate from flavor.in
|
### flavor-specific: generate from flavor.in
|
||||||
--- a/flavor.in
|
--- a/flavor.in
|
||||||
+++ b/flavor.in
|
+++ b/flavor.in
|
||||||
@@ -1,7 +1,5 @@
|
@@ -1,14 +1,14 @@
|
||||||
##### macro definitions for flavor "#FLAVOR#" #####
|
##### macro definitions for flavor "#FLAVOR#" #####
|
||||||
|
|
||||||
-%__#FLAVOR# /usr/bin/#FLAVOR#
|
-%__#FLAVOR# /usr/bin/#FLAVOR#
|
||||||
-
|
-
|
||||||
%#FLAVOR#_shbang_opts %py_shbang_opts
|
%#FLAVOR#_shbang_opts %py_shbang_opts
|
||||||
|
|
||||||
%#FLAVOR#_prefix #FLAVOR#
|
+%__#FLAVOR# /usr/bin/%{lua: print((string.gsub("#FLAVOR#", "(%w+%d)(%d)", "%1.%2")))}
|
||||||
@@ -10,6 +8,8 @@
|
|
||||||
%#FLAVOR#_version %{_python_sysconfig_var #FLAVOR# py_version_short}
|
|
||||||
%#FLAVOR#_version_nodots %{_python_sysconfig_var #FLAVOR# py_version_nodot}
|
|
||||||
|
|
||||||
+%__#FLAVOR# /usr/bin/python%{#FLAVOR#_version}
|
|
||||||
+
|
+
|
||||||
|
%#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_path() %{_rec_macro_helper}%{lua:call_sysconfig("path", "#FLAVOR#")}
|
||||||
%#FLAVOR#_sysconfig_var() %{_rec_macro_helper}%{lua:call_sysconfig("var", "#FLAVOR#")}
|
%#FLAVOR#_sysconfig_var() %{_rec_macro_helper}%{lua:call_sysconfig("var", "#FLAVOR#")}
|
||||||
|
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 22 19:29:03 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Update multiple_flavors.patch to generate correct names of the
|
||||||
|
python binary.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Sep 9 18:00:03 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
Wed Sep 9 18:00:03 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user