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