summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClark Williams <williams@redhat.com>2010-02-19 16:59:50 -0600
committerClark Williams <williams@redhat.com>2010-02-19 16:59:50 -0600
commit553470d25de81387086e7a8ce2a107d25c7968e9 (patch)
treeacde1d10edec8c8a908633698c652a73a8eba872
parent8619e0e6c7f9637c6ef3348a6e5e5b23ed1a416b (diff)
downloadmock-553470d25de81387086e7a8ce2a107d25c7968e9.tar.gz
mock-553470d25de81387086e7a8ce2a107d25c7968e9.tar.xz
mock-553470d25de81387086e7a8ce2a107d25c7968e9.zip
add conditional require of python-hashlib for EL5
New Fedora repositories require code from python-hashlib so require that if the disto being built is EL5 Signed-off-by: Clark Williams <williams@redhat.com>
-rw-r--r--mock.spec.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/mock.spec.in b/mock.spec.in
index ec7b62c..ded5526 100644
--- a/mock.spec.in
+++ b/mock.spec.in
@@ -22,9 +22,12 @@ Requires: python >= 2.4, yum >= 2.4, tar, gzip, python-ctypes, python-decoratort
Requires: createrepo
Requires(pre): shadow-utils
BuildRequires: python-devel
+%if "%{?dist}" == ".el5"
+Requires: python-hashlib
+%endif
%description
-Mock takes a srpm and builds it in a chroot
+Mock takes an SRPM and builds it in a chroot
%prep
%setup -q