Skip to content

Commit

Permalink
Merge pull request #1568 from dmach/spec-python3_fix_shebang
Browse files Browse the repository at this point in the history
Remove dependency on /usr/bin/python3 using %python3_fix_shebang macro (bsc#1212476)
  • Loading branch information
dmach authored May 22, 2024
2 parents a010e99 + 257a840 commit 65473bd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contrib/osc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 65473bd

Please sign in to comment.