1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-25 22:36:13 +01:00

Merge pull request #1568 from dmach/spec-python3_fix_shebang

Remove dependency on /usr/bin/python3 using %python3_fix_shebang macro (bsc#1212476)
This commit is contained in:
Daniel Mach 2024-05-22 08:50:27 +02:00 committed by GitHub
commit 65473bdffd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,6 +30,11 @@
%bcond_with fdupes
%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 obs_build_pkg obs-build
%define ssh_add_pkg openssh-clients
@ -184,6 +189,8 @@ install -Dm0644 oscrc.5 %{buildroot}%{_mandir}/man5/oscrc.5
%fdupes %buildroot
%endif
%python3_fix_shebang
%check
%{use_python} setup.py test