| Jeremy Hylton | 355e2f2 | 2000-10-16 15:34:52 +0000 | [diff] [blame] | 1 | #! /bin/bash |
| 2 | |||||
| 3 | RPM_TOPDIR=/usr/src/redhat | ||||
| 4 | |||||
| 5 | PY_VERSION=`perl -ne 'print "$1\n" if (/PY_VERSION\s*\"(.*)\"/o);' ../../Include/patchlevel.h` | ||||
| 6 | export PY_VERSION | ||||
| 7 | |||||
| 8 | cp beopen-python.spec $RPM_TOPDIR/SPECS/beopen-python-$PY_VERSION.spec | ||||
| 9 | cp BeOpen-Python-Setup.patch $RPM_TOPDIR/SOURCES/BeOpen-Python-$PY_VERSION-Setup.patch | ||||
| 10 | |||||
| 11 | perl -pi -e "s/(%define version).*/\$1 $PY_VERSION/;" $RPM_TOPDIR/SPECS/beopen-python-$PY_VERSION.spec | ||||