[elfutils] More conditionals cleanup.
roland
roland at fedoraproject.org
Tue Oct 5 00:44:41 UTC 2010
commit 0f3f8b9ca2604bce46296e1f8311120104fa9197
Author: Roland McGrath <roland at redhat.com>
Date: Mon Oct 4 16:58:47 2010 -0700
More conditionals cleanup.
elfutils.spec | 22 ++++++----------------
1 files changed, 6 insertions(+), 16 deletions(-)
---
diff --git a/elfutils.spec b/elfutils.spec
index 39bcbda..5f7dfee 100644
--- a/elfutils.spec
+++ b/elfutils.spec
@@ -16,16 +16,22 @@ Group: Development/Tools
%global portability %{compat}
%global scanf_has_m !%{compat}
%global separate_devel_static 1
+%global use_zlib 0
+%global use_xz 0
%if 0%{?rhel}
%global portability (%rhel < 6)
%global scanf_has_m (%rhel >= 6)
%global separate_devel_static (%rhel >= 6)
+%global use_zlib (%rhel >= 5)
+%global use_xz (%rhel >= 6)
%endif
%if 0%{?fedora}
%global portability (%fedora < 9)
%global scanf_has_m (%fedora >= 8)
%global separate_devel_static (%fedora >= 7)
+%global use_zlib (%fedora >= 5)
+%global use_xz (%fedora >= 10)
%endif
%if %{compat} || %{!?rhel:6}%{?rhel} < 6
@@ -65,22 +71,6 @@ BuildRequires: glibc-headers >= 2.3.4-11
BuildRequires: gcc >= 3.2
%endif
-%global use_zlib 0
-%if 0%{?fedora} >= 5
-%global use_zlib 1
-%endif
-%if 0%{?rhel} >= 5
-%global use_zlib 1
-%endif
-
-%global use_xz 0
-%if 0%{?fedora} >= 10
-%global use_xz 1
-%endif
-%if 0%{?rhel} >= 6
-%global use_xz 1
-%endif
-
%if %{use_zlib}
BuildRequires: zlib-devel >= 1.2.2.3
BuildRequires: bzip2-devel
More information about the scm-commits
mailing list