=== 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 |
| 8 | python setup.py install --root=${RPM_BUILD_ROOT} --record="INSTALLED_FILES" |
| 9 | |
| 10 | for 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 |
| 17 | done |
| 18 | |
| 19 | cat DIRS FILES >INSTALLED_FILES |
=== modified file 'MANIFEST.in'
|
|
|
1 | 1 | include AUTHORS |
2 | 2 | include INSTALL |
3 | 3 | include LICENSE |
| 4 | recursive-include docs * |
| 5 | recursive-include scripts * |
4 | 6 | recursive-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 |
| 7 | recursive-include django/contrib/admin/templates * |
| 8 | recursive-include django/contrib/admin/media * |
| 9 | recursive-include django/contrib/comments/templates * |
| 10 | recursive-include django/contrib/sitemaps/templates * |
=== modified file 'setup.cfg'
|
|
|
1 | 1 | [bdist_rpm] |
2 | 2 | doc_files = docs/*.txt |
| 3 | install-script = scripts/rpm-install.sh |
3 | 4 | |