diff options
Diffstat (limited to 'Misc/RPM/make-spec.sh')
-rwxr-xr-x | Misc/RPM/make-spec.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Misc/RPM/make-spec.sh b/Misc/RPM/make-spec.sh new file mode 100755 index 0000000..449814e --- /dev/null +++ b/Misc/RPM/make-spec.sh @@ -0,0 +1,11 @@ +#! /bin/bash + +RPM_TOPDIR=/usr/src/redhat + +PY_VERSION=`perl -ne 'print "$1\n" if (/PY_VERSION\s*\"(.*)\"/o);' ../../Include/patchlevel.h` +export PY_VERSION + +cp beopen-python.spec $RPM_TOPDIR/SPECS/beopen-python-$PY_VERSION.spec +cp BeOpen-Python-Setup.patch $RPM_TOPDIR/SOURCES/BeOpen-Python-$PY_VERSION-Setup.patch + +perl -pi -e "s/(%define version).*/\$1 $PY_VERSION/;" $RPM_TOPDIR/SPECS/beopen-python-$PY_VERSION.spec |