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