Ticket #3338: build_rpm.diff

File build_rpm.diff, 1.0 KB (added by Dirk Datzert <dummy@…>, 18 years ago)

rpm_install script and setup.cfg update

  • setup.cfg

     
    11[bdist_rpm]
    22doc_files = docs/*.txt
     3install-script = scripts/rpm-install.sh
    34
  • scripts/rpm-install.sh

     
     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
     8python setup.py install --root=${RPM_BUILD_ROOT} --record="INSTALLED_FILES"
     9
     10for i in `cat INSTALLED_FILES`; do
     11  if [ -f ${RPM_BUILD_ROOT}/$i ]; then
     12    echo $i >>FILES
     13  fi
     14  if [ -d ${RPM_BUILD_ROOT}/$i ]; then
     15    echo %dir $i >>DIRS
     16  fi
     17done
     18
     19cat DIRS FILES >INSTALLED_FILES
Back to Top