diff options
author | jcwillia <jcwillia> | 2006-08-07 21:40:45 +0000 |
---|---|---|
committer | jcwillia <jcwillia> | 2006-08-07 21:40:45 +0000 |
commit | 79ff84465c4eea0b9ca8ccb580e635850c029c58 (patch) | |
tree | 4f56b7956d25c8982d55541a8ad96a0408467fd9 | |
parent | 0ed45239cd37cc4553c887f95f1659dbade3c087 (diff) | |
download | mock-79ff84465c4eea0b9ca8ccb580e635850c029c58.tar.gz mock-79ff84465c4eea0b9ca8ccb580e635850c029c58.tar.xz mock-79ff84465c4eea0b9ca8ccb580e635850c029c58.zip |
refactored conditional blocks for simplicity
-rw-r--r-- | buildsys-build.spec | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/buildsys-build.spec b/buildsys-build.spec index 0599d7f..494a4d2 100644 --- a/buildsys-build.spec +++ b/buildsys-build.spec @@ -4,7 +4,7 @@ Summary: The base set of packages for a mock chroot Name: buildsys-build Version: 0.5 -Release: 4%{?dist} +Release: 5%{?dist} License: GPL Group: Development/Build Tools BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root @@ -30,21 +30,34 @@ Requires: which # The rather long-winded format of the conditionals is needed for compatbility # with old rpm versions such as were supplied with Red Hat Linux 7 + +# Fedora block %if "%{?fedora}" != "" Requires: coreutils Requires: fedora-release Requires: redhat-rpm-config -%if "%{?fedora}" == "4" || "%{?fedora}" == "3" || "%{?fedora}" == "2" || "%{?fedora}" == "1" || "%{?el}" == "3" +%if "%{?fedora}" == "4" || "%{?fedora}" == "3" || "%{?fedora}" == "2" || "%{?fedora}" == "1" Requires: elfutils +%if "%{?fedora}" == "4" || "%{?fedora}" == "3" +Requires: python %endif -%if "%{?fedora}" == "4" || "%{?fedora}" == "3" || "%{?el}" == "4" +%endif + +# RHEL block +%if "%{?el}" != "" +Requires: redhat-release +Requires: coreutils +Requires: elfutils +Requires: redhat-rpm-config +%if "%{?el}" == "4" Requires: python %endif %endif -%if "%{?rhl}" != "" || "%{?el}" != "" +# Red Hat Linux [789] block +%if "%{?rhl}" != "" Requires: redhat-release -%if "%{?rhl}" == "9" || "%{?el}" == "3" || "%{?el}" == "4" +%if "%{?rhl}" == "9" Requires: coreutils Requires: elfutils Requires: redhat-rpm-config @@ -54,7 +67,7 @@ Requires: fileutils Requires: findutils %endif # Cater for alternative versions of buildsys-macros -%if "%{?rhl}" == "8" || "%{?rhl}" == "8.0" || "%{?el}" != "" +%if "%{?rhl}" == "8" || "%{?rhl}" == "8.0" Requires: redhat-rpm-config %endif %endif |