File: .install-rpm.sh

package info (click to toggle)
iotop 0.6-42-ga14256a-0.3
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 236 kB
  • sloc: python: 1,452; ansic: 47; sh: 18; makefile: 7
file content (10 lines) | stat: -rwxr-xr-x 467 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

# https://bugs.python.org/issue644744

python3 setup.py install -O1 --root="$RPM_BUILD_ROOT" --record=INSTALLED_FILES
# 'brp-compress' gzips the man pages without distutils knowing... fix this
sed -i -e 's@man/man\([[:digit:]]\)/\(.\+\.[[:digit:]]\)$@man/man\1/\2.gz@g' INSTALLED_FILES
# actually, it doesn't on all distributions so just compress unconditionally
# before brp-compress is run
find "$RPM_BUILD_ROOT" -type f -name iotop.8 -exec gzip '{}' \;