mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-14 14:27:16 +01:00
Remove dependency on /usr/bin/python3 using %python3_fix_shebang macro (bsc#1212476)
Upstreams the following OBS request: https://build.opensuse.org/request/show/1160115/changes
This commit is contained in:
parent
a010e99c34
commit
257a840064
@ -30,6 +30,11 @@
|
|||||||
%bcond_with fdupes
|
%bcond_with fdupes
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# the macro exists only on openSUSE based distros
|
||||||
|
%if %{undefined python3_fix_shebang}
|
||||||
|
%define python3_fix_shebang %nil
|
||||||
|
%endif
|
||||||
|
|
||||||
%define argparse_manpage_pkg argparse-manpage
|
%define argparse_manpage_pkg argparse-manpage
|
||||||
%define obs_build_pkg obs-build
|
%define obs_build_pkg obs-build
|
||||||
%define ssh_add_pkg openssh-clients
|
%define ssh_add_pkg openssh-clients
|
||||||
@ -184,6 +189,8 @@ install -Dm0644 oscrc.5 %{buildroot}%{_mandir}/man5/oscrc.5
|
|||||||
%fdupes %buildroot
|
%fdupes %buildroot
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%python3_fix_shebang
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{use_python} setup.py test
|
%{use_python} setup.py test
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user