X-Git-Url: http://git.onelab.eu/?p=pyaspects.git;a=blobdiff_plain;f=pyaspects.spec;h=fbbf885316672c5ef2ebebb31e47372e74e0b5c6;hp=ac4b3f54e5ac41a68008b9a891011970eaa9602f;hb=63f712221fe716f0b4bba3e5c1ea6b196e33567c;hpb=805c5331473e52de2e1775a79137f814af48f129 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