#!/bin/sh

cp liblouis.spec python-louis.spec
sed -i "s/\(%define *build_core_not_python *\)1/\10/;s/\(Name: *\)liblouis/\1python-louis/;s/\(Summary:.*\)/\1 - Python Bindings/;s/\(Group: *\).*/\1Development\/Languages\/Python/" python-louis.spec
cp python-louis.spec python3-louis.spec
sed -i "s/\(%define *build_py3 *\)0/\11/;s/python-louis/python3-louis/" python3-louis.spec
cp liblouis.changes python-louis.changes
cp liblouis.changes python3-louis.changes
