Allow multiple args to %py_build/install macros
This commit is contained in:
parent
29e6636ccd
commit
6ce524f21d
@ -2,18 +2,18 @@
|
|||||||
%py_shbang_opts -s
|
%py_shbang_opts -s
|
||||||
|
|
||||||
%py_build() %{expand:
|
%py_build() %{expand:
|
||||||
CFLAGS="%{optflags}" %{__python} %{py_setup} %{?py_setup_args} build --executable="%{__python2} %{py_shbang_opts}" %{?1}
|
CFLAGS="%{optflags}" %{__python} %{py_setup} %{?py_setup_args} build --executable="%{__python2} %{py_shbang_opts}" %{?*}
|
||||||
}
|
}
|
||||||
|
|
||||||
%py_install() %{expand:
|
%py_install() %{expand:
|
||||||
CFLAGS="%{optflags}" %{__python} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?1}
|
CFLAGS="%{optflags}" %{__python} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?*}
|
||||||
}
|
}
|
||||||
|
|
||||||
%python_provide() %{lua:
|
%python_provide() %{lua:
|
||||||
function string.starts(String,Start)
|
function string.starts(String,Start)
|
||||||
return string.sub(String,1,string.len(Start))==Start
|
return string.sub(String,1,string.len(Start))==Start
|
||||||
end
|
end
|
||||||
package = rpm.expand("%{?1:%{1}}")
|
package = rpm.expand("%{?1}")
|
||||||
vr = rpm.expand("%{?epoch:%{epoch}:}%{version}-%{release}")
|
vr = rpm.expand("%{?epoch:%{epoch}:}%{version}-%{release}")
|
||||||
if (string.starts(package, "python2-")) then
|
if (string.starts(package, "python2-")) then
|
||||||
if (rpm.expand("%{?buildarch}") ~= "noarch") then
|
if (rpm.expand("%{?buildarch}") ~= "noarch") then
|
||||||
|
@ -7,10 +7,10 @@
|
|||||||
%py2_shbang_opts -s
|
%py2_shbang_opts -s
|
||||||
|
|
||||||
%py2_build() %{expand:
|
%py2_build() %{expand:
|
||||||
CFLAGS="%{optflags}" %{__python2} %{py_setup} %{?py_setup_args} build --executable="%{__python2} %{py2_shbang_opts}" %{?1}
|
CFLAGS="%{optflags}" %{__python2} %{py_setup} %{?py_setup_args} build --executable="%{__python2} %{py2_shbang_opts}" %{?*}
|
||||||
sleep 1
|
sleep 1
|
||||||
}
|
}
|
||||||
|
|
||||||
%py2_install() %{expand:
|
%py2_install() %{expand:
|
||||||
CFLAGS="%{optflags}" %{__python2} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?1}
|
CFLAGS="%{optflags}" %{__python2} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?*}
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,10 @@
|
|||||||
%py3_shbang_opts -s
|
%py3_shbang_opts -s
|
||||||
|
|
||||||
%py3_build() %{expand:
|
%py3_build() %{expand:
|
||||||
CFLAGS="%{optflags}" %{__python3} %{py_setup} %{?py_setup_args} build --executable="%{__python3} %{py3_shbang_opts}" %{?1}
|
CFLAGS="%{optflags}" %{__python3} %{py_setup} %{?py_setup_args} build --executable="%{__python3} %{py3_shbang_opts}" %{?*}
|
||||||
sleep 1
|
sleep 1
|
||||||
}
|
}
|
||||||
|
|
||||||
%py3_install() %{expand:
|
%py3_install() %{expand:
|
||||||
CFLAGS="%{optflags}" %{__python3} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?1}
|
CFLAGS="%{optflags}" %{__python3} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?*}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user