rpm-install.sh 416 B

12345678910111213141516171819
  1. #! /bin/sh
  2. #
  3. # this file is *inserted* into the install section of the generated
  4. # spec file
  5. #
  6. # this is, what dist.py normally does
  7. python setup.py install --root=${RPM_BUILD_ROOT} --record="INSTALLED_FILES"
  8. for i in `cat INSTALLED_FILES`; do
  9. if [ -f ${RPM_BUILD_ROOT}/$i ]; then
  10. echo $i >>FILES
  11. fi
  12. if [ -d ${RPM_BUILD_ROOT}/$i ]; then
  13. echo %dir $i >>DIRS
  14. fi
  15. done
  16. cat DIRS FILES >INSTALLED_FILES