SOURCES: rpm.platform, rpm.macros - added %%py_postclean (idea and...

Elan Ruusamäe glen at delfi.ee
Tue Feb 15 14:45:25 CET 2005


On Tuesday 15 February 2005 15:30, wiget wrote:
> +%py_postclean() \
> +for d in %{py_sitescriptdir} %{py_sitedir}; do \
> + [ ! -d "$RPM_BUILD_ROOT$d" ] || find "$RPM_BUILD_ROOT$d" -name '*.py'
> -exec rm {} \; ;\ +done \
somewhy i think %{py_sitescriptdir} %{py_sitedir} are not sufficent.

consider adding few more dirs from this list (i don't know myself, as i'm not 
familiar with python file structure):

$ awk '$1 ~ /py_.*dir/{print}' /usr/lib/rpm/macros
%py_libdir      %{py_prefix}/%{_lib}/python%{py_ver}
%py_scriptdir   %{py_prefix}/share/python%{py_ver}
%py_incdir      /usr/include/python%{py_ver}
%py_sitedir     %{py_libdir}/site-packages
%py_sitescriptdir %{py_scriptdir}/site-packages
%py_dyndir      %{py_libdir}/lib-dynload


-- 
glen




More information about the pld-devel-en mailing list