Fix the build on RHEL

This commit is contained in:
Kalev Lember 2016-10-18 12:38:55 +02:00
parent 4728dca871
commit 634054ccc3

View File

@ -13,7 +13,9 @@ BuildRequires: docbook-utils
BuildRequires: jade BuildRequires: jade
BuildRequires: /usr/bin/xsltproc BuildRequires: /usr/bin/xsltproc
BuildRequires: docbook-style-xsl BuildRequires: docbook-style-xsl
%if 0%{?fedora}
BuildRequires: perl-generators BuildRequires: perl-generators
%endif
BuildRequires: perl-Test-Simple BuildRequires: perl-Test-Simple
BuildRequires: python2-devel BuildRequires: python2-devel
BuildRequires: gnome-doc-utils BuildRequires: gnome-doc-utils
@ -40,6 +42,12 @@ and GNOME.
%prep %prep
%setup -q %setup -q
%if 0%{?rhel} == 7
# Lower unnecessarily high perl requirement
# https://bugzilla.gnome.org/show_bug.cgi?id=773151
sed -i -e 's/require v5\.18\.0/require v5.16.0/' configure
%endif
# Move this doc file to avoid name collisions # Move this doc file to avoid name collisions
mv doc/README doc/README.docs mv doc/README doc/README.docs