From: Thierry Parmentelat Date: Thu, 31 Jan 2013 10:47:37 +0000 (+0100) Subject: mention /usr/bin/python when invoking setup.py, because otherwise on X-Git-Tag: pyaspects-0.4.1-3~1 X-Git-Url: http://git.onelab.eu/?p=pyaspects.git;a=commitdiff_plain;h=63f712221fe716f0b4bba3e5c1ea6b196e33567c 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 --- 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 - pyaspects-0.4.1-2