#!/bin/bash
# This script is called automatically during autobuild checkin.


cp kdebindings4.changes python-kde4.changes
cp kdebindings4.changes ruby-kde4.changes
cp kdebindings4.changes mono-kde4.changes

BUILDREQUIRES_BASE="bash python"
BUILDREQUIRES_PYTHON="python-devel python python-sip-devel python-qt4-devel kate-devel"
BUILDREQUIRES_RUBY="ruby-devel python kate-devel"
BUILDREQUIRES_MONO="mono-devel monodoc kate-devel"

sed -e "s,@NAME@,kdebindings4,; s,@BUILDREQUIRES@,$BUILDREQUIRES_BASE,; s,is_base 0,is_base 1," kdebindings4.spec.in > kdebindings4.spec
sed -e "s,@NAME@,python-kde4,; s,@BUILDREQUIRES@,$BUILDREQUIRES_PYTHON,; s,is_python 0,is_python 1," kdebindings4.spec.in > python-kde4.spec
sed -e "s,@NAME@,ruby-kde4,; s,@BUILDREQUIRES@,$BUILDREQUIRES_RUBY,; s,is_ruby 0,is_ruby 1," kdebindings4.spec.in > ruby-kde4.spec
sed -e "s,@NAME@,mono-kde4,; s,@BUILDREQUIRES@,$BUILDREQUIRES_MONO,; s,is_mono 0,is_mono 1," kdebindings4.spec.in > mono-kde4.spec
