Package the man page
[iotop.git] / install-rpm.sh
blobba8b9555440a9aa56d99dc7a0c1a9af7373f5d77
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 --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"