[emacs/f19] solved detection of rhel distribution flag

Petr Hracek phracek at fedoraproject.org
Mon Mar 18 14:30:27 UTC 2013


commit c6b688e7afaa70f8bce13e4c191ae65d576e2327
Author: Petr Hracek <phracek at redhat.com>
Date:   Mon Mar 18 15:30:18 2013 +0100

    solved detection of rhel distribution flag

 emacs.spec |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/emacs.spec b/emacs.spec
index d5a423b..5734af8 100644
--- a/emacs.spec
+++ b/emacs.spec
@@ -31,13 +31,17 @@ BuildRequires: libXpm-devel ncurses-devel xorg-x11-proto-devel zlib-devel gnutls
 BuildRequires: librsvg2-devel m17n-lib-devel libotf-devel ImageMagick-devel libselinux-devel
 BuildRequires: GConf2-devel alsa-lib-devel gpm-devel liblockfile-devel libxml2-devel
 BuildRequires: bzip2 cairo texinfo gzip desktop-file-utils
-%if 0%{?el6}
+%if 0%{?rhel6} == 6
 BuildRequires: gtk2-devel
 %else
+%if 0%{?rhel7} == 7
+BuildRequires: gtk3-devel python2-devel 
 # Buildrequire both python2 and python3 on systems containing both,
 # since below we turn off the brp-python-bytecompile script
+%else
 BuildRequires: gtk3-devel python2-devel python3-devel
 %endif
+%endif
 %ifarch %{ix86}
 BuildRequires: util-linux
 %endif


More information about the scm-commits mailing list