- readd _service and adjust get-sources.sh - readd find-requires OBS-URL: https://build.opensuse.org/package/show/Emulators/wine?expand=0&rev=1157
24 lines
607 B
Bash
24 lines
607 B
Bash
#!/usr/bin/sh
|
|
|
|
set -e
|
|
|
|
if [[ -z "$1" ]]; then
|
|
echo "Please enter the version you want to update to";
|
|
exit 1;
|
|
fi
|
|
|
|
VERSION="$1"
|
|
|
|
echo "++++++++++++++++++++++++++++++++++++++++++++++"
|
|
echo "patching spec file and downloading the tarball"
|
|
echo "++++++++++++++++++++++++++++++++++++++++++++++"
|
|
|
|
sed -i -e 's|Version: .*|Version: '${VERSION}'|g' wine.spec
|
|
osc service mr download_files
|
|
sed -i -e "s|tags/v.*<|tags/v${VERSION}<|g" _service
|
|
osc service dr
|
|
|
|
echo "++++++++++++++++++++++++++++++++++++++++++++++"
|
|
echo "Done! Have fun building and testing"
|
|
echo "++++++++++++++++++++++++++++++++++++++++++++++"
|