Ticket #3338: 3338.diff

File 3338.diff, 1.5 KB (added by Gary Wilson <gary.wilson@…>, 18 years ago)

combined patch

  • scripts/rpm-install.sh

    === added directory 'scripts'
    === added file '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
  • MANIFEST.in

    === modified file 'MANIFEST.in'
     
    11include AUTHORS
    22include INSTALL
    33include LICENSE
     4recursive-include docs *
     5recursive-include scripts *
    46recursive-include django/conf/locale *
    5 recursive-include django/contrib/admin/templates
    6 recursive-include django/contrib/admin/media
    7 recursive-include django/contrib/comments/templates
    8 recursive-include django/contrib/sitemaps/templates
     7recursive-include django/contrib/admin/templates *
     8recursive-include django/contrib/admin/media *
     9recursive-include django/contrib/comments/templates *
     10recursive-include django/contrib/sitemaps/templates *
  • setup.cfg

    === modified file 'setup.cfg'
     
    11[bdist_rpm]
    22doc_files = docs/*.txt
     3install-script = scripts/rpm-install.sh
    34
Back to Top