summaryrefslogtreecommitdiffstats
path: root/mock.spec.in
diff options
context:
space:
mode:
authorMichael E Brown <michael_e_brown@dell.com>2007-10-24 10:35:10 -0500
committerMichael E Brown <michael_e_brown@dell.com>2007-10-24 10:35:10 -0500
commit1c055b0ca8b9c37e62c8c921c42986689244582d (patch)
tree6fef76bf695e75e3c2fcf14191974f9c69811404 /mock.spec.in
parentd5d772c91af6029bf85c20629ccaf85ba1c0ce26 (diff)
downloadmock-1c055b0ca8b9c37e62c8c921c42986689244582d.tar.gz
mock-1c055b0ca8b9c37e62c8c921c42986689244582d.tar.xz
mock-1c055b0ca8b9c37e62c8c921c42986689244582d.zip
rhel3 compat
Diffstat (limited to 'mock.spec.in')
-rw-r--r--mock.spec.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/mock.spec.in b/mock.spec.in
index 71a3c4a..5713ba1 100644
--- a/mock.spec.in
+++ b/mock.spec.in
@@ -1,4 +1,4 @@
-# these are all substituted by autoconf
+# next four lines substituted by autoconf
%define major @RELEASE_MAJOR@
%define minor @RELEASE_MINOR@
%define sub @RELEASE_SUBLEVEL@
@@ -8,6 +8,15 @@
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+# Compat for RHEL3 build
+%if %(test "%{dist}" == ".el3" && echo 1 || echo 0)
+# needed for RHEL3 build, python-devel doesnt seem to Require: python in
+# RHEL3
+BuildRequires: python
+# override sitelib because this messes up on x86_64
+%define python_sitelib %{_exec_prefix}/lib/python2.2/site-packages/
+%endif
+
Summary: Builds packages inside chroots
Name: mock
Version: %{release_version}