Ticket #3338: build_rpm.diff
File build_rpm.diff, 1.0 KB (added by , 18 years ago) |
---|
-
setup.cfg
1 1 [bdist_rpm] 2 2 doc_files = docs/*.txt 3 install-script = scripts/rpm-install.sh 3 4 -
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