cmlenz@39: #! /bin/sh cmlenz@39: # cmlenz@39: # this file is *inserted* into the install section of the generated cmlenz@39: # spec file cmlenz@39: # cmlenz@39: cmlenz@39: # this is, what dist.py normally does cmlenz@39: ./setup.py install --root=${RPM_BUILD_ROOT} --record="INSTALLED_FILES" cmlenz@39: cmlenz@39: # catch compressed man pages cmlenz@39: sed -i -e 's@\(.\+/man/man[[:digit:]]/.\+\.[[:digit:]]\)$@\1*@' "INSTALLED_FILES" cmlenz@39: cmlenz@39: # catch any compiled python files (.pyc, .pyo), but don't list them twice cmlenz@39: sed -i -e 's@\(.\+\)\.py$@\1.py*@' \ cmlenz@39: -e '/.\+\.pyc$/d' \ cmlenz@39: "INSTALLED_FILES"