From 63f712221fe716f0b4bba3e5c1ea6b196e33567c Mon Sep 17 00:00:00 2001
From: Thierry Parmentelat <thierry.parmentelat@inria.fr>
Date: Thu, 31 Jan 2013 11:47:37 +0100
Subject: [PATCH] mention /usr/bin/python when invoking setup.py, because
 otherwise on f18 we end up with a Requires: /bin/python likewise, be more
 explicit on the files list so as to avoid conflicts with the filesystem
 package

---
 pyaspects.spec | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/pyaspects.spec b/pyaspects.spec
index ac4b3f5..fbbf885 100644
--- a/pyaspects.spec
+++ b/pyaspects.spec
@@ -4,6 +4,8 @@
 
 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
 
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
 Summary: Aspect Oriented programming library for Python
 Name: %{name}
 Version: %{version}
@@ -29,14 +31,14 @@ Aspect Oriented programming library for Python
 rm -rf $RPM_BUILD_ROOT
 
 %install
-python setup.py install  --root $RPM_BUILD_ROOT
+/usr/bin/python setup.py install  --root $RPM_BUILD_ROOT
  
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files 
 %defattr(-,root,root,-)
-/usr
+%{python_sitelib}/*
 
 %changelog
 * Mon Nov 28 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - pyaspects-0.4.1-2
-- 
2.47.0