From: ellson Date: Thu, 24 Apr 2008 11:47:52 +0000 (+0000) Subject: distro versions are numbers, not strings (so that fedora 10 > fedora 1) X-Git-Tag: LAST_LIBGRAPH~32^2~4218 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec0c6728caf1c7b817b218a759269cefe7722fb7;p=graphviz distro versions are numbers, not strings (so that fedora 10 > fedora 1) --- diff --git a/graphviz.spec.in b/graphviz.spec.in index 28a32edf8..344cb3262 100644 --- a/graphviz.spec.in +++ b/graphviz.spec.in @@ -55,21 +55,21 @@ BuildRequires: /usr/include/tcl.h /usr/include/tk.h #-- Red Hat Enterprise Linux specific Build Requirements -------------------- %if 0%{?rhel} %define TCL 1 -%if "%rhel" < "4" +%if %rhel < 4 BuildRequires: XFree86-devel # This just indicates the requirement for tcl.h, tk.h, but doesn't identify # where to get them from. In RH9 and earlier they were in the tcl, tk, # base packages which are always BR'd anyway (above). BuildRequires: /usr/include/tcl.h /usr/include/tk.h %endif -%if "%rhel" >= "3" +%if %rhel >= 3 %define IPSEPCOLA 1 BuildRequires: fontconfig-devel tcl-devel tk-devel %endif -%if "%rhel" == "4" +%if %rhel == 4 BuildRequires: xorg-x11-devel %endif -%if "%rhel" >= "4" +%if %rhel >= 4 # PERL is available earlier, but a suitable SWIG isn't %define PERL 1 %define RUBY 1 @@ -77,7 +77,7 @@ BuildRequires: xorg-x11-devel %define PYTHON 1 BuildRequires: perl ruby-devel guile-devel python-devel %endif -%if "%rhel" >= "5" +%if %rhel >= 5 %define JAVA 1 %define PANGOCAIRO 1 %define RSVG 1 @@ -85,7 +85,7 @@ BuildRequires: libtool-ltdl libtool-ltdl-devel libXaw-devel libSM-devel libICE-d BuildRequires: cairo-devel >= 1.1.10 pango-devel gmp-devel gtk2-devel libgnomeui-devel BuildRequires: librsvg2-devel %endif -%if "%rhel" >= "6" +%if %rhel >= 6 %define PHP 1 %define MYLIBGD 1 %define GDK_PIXBUF 1 @@ -98,25 +98,25 @@ BuildRequires: gd gd-devel perl-devel php-devel %define PERL 1 %define TCL 1 BuildRequires: fontconfig-devel tcl-devel tk-devel -%if "%fedora" < "3" +%if %fedora < 3 BuildRequires: XFree86-devel %endif -%if "%fedora" == "3" +%if %fedora == 3 BuildRequires: xorg-x11-devel %endif -%if "%fedora" == "4" +%if %fedora == 4 BuildRequires: xorg-x11-devel %endif -%if "%fedora" >= "3" +%if %fedora >= 3 %define IPSEPCOLA 1 %endif -%if "%fedora" >= "4" +%if %fedora >= 4 %define RUBY 1 %define GUILE 1 %define PYTHON 1 BuildRequires: libtool-ltdl libtool-ltdl-devel ruby ruby-devel guile-devel python-devel %endif -%if "%fedora" >= "5" +%if %fedora >= 5 %define PHP 1 %define JAVA 1 BuildRequires: libXaw-devel libSM-devel libICE-devel libXpm-devel libXt-devel libXmu-devel libXext-devel libX11-devel java-devel php-devel @@ -126,19 +126,19 @@ BuildRequires: libXaw-devel libSM-devel libICE-devel libXpm-devel libXt-devel li BuildRequires: mono-core ocaml %endif %endif -%if "%fedora" >= "6" +%if %fedora >= 6 %define LUA 1 %define PANGOCAIRO 1 %define RSVG 1 BuildRequires: cairo-devel >= 1.1.10 pango-devel gmp-devel lua-devel gtk2-devel libgnomeui-devel BuildRequires: librsvg2-devel %endif -%if "%fedora" >= "7" +%if %fedora >= 7 %define DEVIL 1 %define GDK_PIXBUF 1 BuildRequires: gd gd-devel perl-devel DevIL-devel %endif -%if "%fedora" >= "8" +%if %fedora >= 8 %define R_LANG 1 BuildRequires: R-devel swig >= 1.3.33 # @@ -149,7 +149,7 @@ BuildRequires: R-devel swig >= 1.3.33 # define GLITZ 1 # BuildRequires: glitz-devel %endif -%if "%fedora" >= "9" +%if %fedora >= 9 #define MING 1 #BuildRequires: ming ming-devel %endif