Skip to content

Commit

Permalink
Add recommends for Fedora based distributions
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Feb 5, 2020
1 parent 009736a commit bd61c34
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions dist/build.spec
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
# needsbinariesforbuild


%if 0%{?fedora} || 0%{?rhel}
%define __pkg_name obs-build
%else
%if 0%{?suse_version}
%define __pkg_name build
%else
%define __pkg_name obs-build
%endif

Name: %{__pkg_name}
Expand Down Expand Up @@ -57,7 +57,10 @@ Requires: perl-TimeDate
BuildRequires: perl-TimeDate
%endif
Conflicts: bsdtar < 2.5.5
%if 0%{?suse_version} > 1000
BuildRequires: perl(Date::Parse)
BuildRequires: perl(Test::Harness)
BuildRequires: perl(Test::More)
%if 0%{?suse_version} > 1000 || 0%{?centos_version} >= 800 || 0%{?rhel_version} >= 800 || 0%{?fedora_version} >= 21
# None of them are actually required for core features.
# Perl helper scripts use them.
Recommends: perl(Date::Language)
Expand Down

0 comments on commit bd61c34

Please sign in to comment.