Do not report requirements that are available.
[iotop.git] / install-rpm.sh
blob30a11a85f68382e9322c0b6ad05c014bff28c941
1 #! /bin/sh
3 # Copied from: http://trac.edgewall.org/ticket/1141
5 # this file is *inserted* into the install section of the generated
6 # spec file
9 # this is, what dist.py normally does
10 ./setup.py install --prefix=/usr --root=${RPM_BUILD_ROOT} --record="INSTALLED_FILES"
12 # catch compressed man pages
13 sed -i -e 's@\(.\+/man/man[[:digit:]]/.\+\.[[:digit:]]\)$@\1*@' "INSTALLED_FILES"
15 # catch any compiled python files (.pyc, .pyo), but don't list them twice
16 sed -i -e 's@\(.\+\)\.py$@\1.py*@' \
17 -e '/.\+\.pyc$/d' \
18 "INSTALLED_FILES"