Skip to content

Commit 4dfc967

Browse files
committed
spec: Use Requires: git-core if distribution is new enough
I am planning to propose we include `origin-clients` in Fedora Atomic Workstation by default. It was pointed out that that pulls in `git` which pulls in Perl. A while ago we added a `git-core` which is really all we need: https://bugzilla.redhat.com/show_bug.cgi?id=1161251
1 parent 56efdb0 commit 4dfc967

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

origin.spec

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,12 @@ Provides: tuned-profiles-%{name}-node
150150
%package clients
151151
Summary: %{product_name} Client binaries for Linux
152152
Obsoletes: openshift-clients < %{package_refector_version}
153+
# https://bugzilla.redhat.com/show_bug.cgi?id=1161251
154+
%if 0%{?fedora} || 0%{?rhel} >= 8
155+
Requires: git-core
156+
%else
153157
Requires: git
158+
%endif
154159
Requires: bash-completion
155160

156161
%description clients

0 commit comments

Comments
 (0)