File update.sh of Package x265
14
1
2
3
rm -f x265_*.tar x265_*.tar.*z
4
osc service ra
5
version=$(grep ^Version x265.spec|awk '{print $2}')
6
echo "The new version is:" $version
7
api=$(tar xafO x265-${version}.tar x265-${version}/source/CMakeLists.txt|grep "set(X265_BUILD"|sed 's/^.* \([1-9][0-9]*\).*$/\1/')
8
echo "The new api version is:" $api
9
echo "libx265-${api}" > baselibs.conf
10
sed -i "
11
/^%define sover[[:blank:]]/c%define sover ${api}
12
/^%define uver[[:blank:]]/c%define uver ${version//./_}
13
" x265.spec
14