From 499dc0e87c3f590fdcd17c8ec0a853fb8e25fdde Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Fri, 1 Dec 2006 19:46:02 +0000 Subject: [PATCH] make buildable on rhel4 too --- GraphicsMagick.spec | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/GraphicsMagick.spec b/GraphicsMagick.spec index 8a8d87d..7f37d17 100644 --- a/GraphicsMagick.spec +++ b/GraphicsMagick.spec @@ -15,8 +15,13 @@ BuildRequires: freetype-devel >= 2.0.1 BuildRequires: automake >= 1.7 autoconf >= 2.58 libtool >= 1.5 BuildRequires: ghostscript-devel BuildRequires: libwmf-devel -BuildRequires: libX11-devel, libXext-devel, libXt-devel BuildRequires: lcms-devel, libxml2-devel, librsvg2-devel +%if 0%{?fedora} > 4 || 0%{?rhel} > 4 +%define x_deps libX11-devel libXext-devel libXt-devel +%else +%define x_deps xorg-x11-devel +%endif +BuildRequires: %{x_deps} %description GraphicsMagick is a comprehensive image processing package which is initially @@ -28,7 +33,7 @@ of the software. Summary: Static libraries and header files for GraphicsMagick app development Group: Development/Libraries Requires: %{name} = %{version}-%{release} -Requires: libX11-devel, libXext-devel, libXt-devel +Requires: %{x_deps} Requires: ghostscript-devel Requires: bzip2-devel Requires: libtiff-devel @@ -176,6 +181,11 @@ cat >%{buildroot}%{_includedir}/GraphicsMagick/magick/magick_config.h < - 1.1.7-6 - *really* fix magick_config-64.h (bug #217959) +- make buildable on rhel4 too. * Fri Dec 01 2006 Rex Dieter - 1.1.7-5 - fix magick-config-64.h (bug #217959)