solved detection of rhel distribution flag
This commit is contained in:
parent
ce9b28f7d7
commit
c6b688e7af
|
@ -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: librsvg2-devel m17n-lib-devel libotf-devel ImageMagick-devel libselinux-devel
|
||||||
BuildRequires: GConf2-devel alsa-lib-devel gpm-devel liblockfile-devel libxml2-devel
|
BuildRequires: GConf2-devel alsa-lib-devel gpm-devel liblockfile-devel libxml2-devel
|
||||||
BuildRequires: bzip2 cairo texinfo gzip desktop-file-utils
|
BuildRequires: bzip2 cairo texinfo gzip desktop-file-utils
|
||||||
%if 0%{?el6}
|
%if 0%{?rhel6} == 6
|
||||||
BuildRequires: gtk2-devel
|
BuildRequires: gtk2-devel
|
||||||
%else
|
%else
|
||||||
|
%if 0%{?rhel7} == 7
|
||||||
|
BuildRequires: gtk3-devel python2-devel
|
||||||
# Buildrequire both python2 and python3 on systems containing both,
|
# Buildrequire both python2 and python3 on systems containing both,
|
||||||
# since below we turn off the brp-python-bytecompile script
|
# since below we turn off the brp-python-bytecompile script
|
||||||
|
%else
|
||||||
BuildRequires: gtk3-devel python2-devel python3-devel
|
BuildRequires: gtk3-devel python2-devel python3-devel
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
%ifarch %{ix86}
|
%ifarch %{ix86}
|
||||||
BuildRequires: util-linux
|
BuildRequires: util-linux
|
||||||
%endif
|
%endif
|
||||||
|
|
Loading…
Reference in New Issue