Skip to content

Commit

Permalink
BuildRequire the python we're installing with (otherwise the shebang …
Browse files Browse the repository at this point in the history
…mangling script that rpmbuild runs will get it wrong)
  • Loading branch information
matyasselmeci committed Feb 5, 2021
1 parent b585e0f commit a47d2c6
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions rpm/osg-build.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,18 @@ Requires: %{name}-base = %{version}
Requires: %{name}-mock = %{version}
Requires: %{name}-koji = %{version}

%if (0%{?fedora} >= 31 || 0%{?rhel} >= 8)
BuildRequires: python3
%define __python /usr/bin/python3
%else
BuildRequires: python2
%define __python /usr/bin/python2
%endif

%if 0%{?rhel} < 8
BuildRequires: git
%else
BuildRequires: git-core
BuildRequires: python3
%endif


Expand Down Expand Up @@ -93,12 +100,6 @@ Summary: OSG-Build tests
%{summary}


%if (0%{?fedora} >= 31 || 0%{?rhel} >= 8)
%define __python /usr/bin/python3
%else
%define __python /usr/bin/python2
%endif

%prep
%setup -q -n %{name}-%{version}

Expand Down

0 comments on commit a47d2c6

Please sign in to comment.