From 41b4fbfcd70821212999e8e0ca3569b4ccf634cf Mon Sep 17 00:00:00 2001 From: Jo Shields Date: Thu, 28 Aug 2014 10:11:42 +0100 Subject: [PATCH] Handle package names differing on RH/SLE --- mono-core.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mono-core.spec b/mono-core.spec index b2bd73856c..de1fb1a8ab 100644 --- a/mono-core.spec +++ b/mono-core.spec @@ -36,8 +36,13 @@ BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libgdiplus-devel BuildRequires: libtool +%if 0%{?fedora} || 0%{?rhel} || 0%{?centos} BuildRequires: pkgconfig +BuildRequires: libX11-devel +%else +BuildRequires: pkg-config BuildRequires: xorg-x11-libX11-devel +%endif BuildRequires: zlib-devel %ifnarch ia64 %arm aarch64 s390 BuildRequires: valgrind-devel