From d5d23070151b6531ec0025039d9f2d537e9791d0 Mon Sep 17 00:00:00 2001
From: dmalcolm <dmalcolm@fedoraproject.org>
Date: Fri, 22 Jan 2010 22:00:30 +0000
Subject: [PATCH] - add %%py3dir macro to macros.python3 (to be used during
 unified python     2/3 builds for setting up the python3 copy of the source
 tree)

---
 macros.python3 | 1 +
 python3.spec   | 6 +++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/macros.python3 b/macros.python3
index 11636da..2b41d24 100644
--- a/macros.python3
+++ b/macros.python3
@@ -1,3 +1,4 @@
 %__python3 /usr/bin/python3
 %python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
 %python3_sitearch %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
+%py3dir %{_builddir}/python3-%{name}-%{version}-%{release}
diff --git a/python3.spec b/python3.spec
index 8923e1a..745f085 100644
--- a/python3.spec
+++ b/python3.spec
@@ -24,7 +24,7 @@
 Summary: Version 3 of the Python programming language aka Python 3000
 Name: python3
 Version: %{pybasever}.1
-Release: 18%{?dist}
+Release: 19%{?dist}
 License: Python
 Group: Development/Languages
 Source: http://python.org/ftp/python/%{version}/Python-%{version}.tar.bz2
@@ -497,6 +497,10 @@ rm -fr $RPM_BUILD_ROOT
 %{pylibdir}/tkinter/test
 
 %changelog
+* Fri Jan 22 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-19
+- add %%py3dir macro to macros.python3 (to be used during unified python 2/3
+builds for setting up the python3 copy of the source tree)
+
 * Wed Jan 20 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-18
 - move lib2to3 from -tools subpackage to main package (bug 556667)