update-specfile: remove Requires: kde-workspace from many kde4->kde5 packages and fix kde download url

This commit is contained in:
Silvan Calarco 2016-02-21 14:41:58 +01:00
parent db8fa88b9b
commit 537b80a4c4

View File

@ -58,8 +58,11 @@ sed -i "s|^Vendor:.*|Vendor: openmamba|;
s|^PreReq:[[:space:]]*/sbin/install-info|Requires(post):%{__install_info}|; s|^PreReq:[[:space:]]*/sbin/install-info|Requires(post):%{__install_info}|;
s|^PreReq:[[:space:]]*%{__install_info}|Requires(post):%{__install_info}|; s|^PreReq:[[:space:]]*%{__install_info}|Requires(post):%{__install_info}|;
s|^PreReq:[[:space:]]*|Requires(pre): |; s|^PreReq:[[:space:]]*|Requires(pre): |;
s|^\(Requires:[[:space:]]*kde-workspace\)$|#\1|;
s|http://.*.dl\.sourceforge\.net/|http://downloads.sourceforge.net/|; s|http://.*.dl\.sourceforge\.net/|http://downloads.sourceforge.net/|;
s|ftp://ftp.kde.org/pub/kde/|http://download.kde.org/|" $SPECFILE s|http://ftp.kde.org/stable/|http://download.kde.org/stable/|;
s|ftp://ftp.kde.org/pub/kde/|http://download.kde.org/|;
s|http://download.kde.org/stable/%{version}|http://download.kde.org/stable/applications/%{version}|" $SPECFILE
#sed -i "s|^\(Source.*:[[:space:]]*ftp://ftp.kde.org/pub/kde/stable/.*.tar.\)bz2|\1xz|" $SPECFILE #sed -i "s|^\(Source.*:[[:space:]]*ftp://ftp.kde.org/pub/kde/stable/.*.tar.\)bz2|\1xz|" $SPECFILE
if [ $BUILDREQNUM -gt 0 ]; then if [ $BUILDREQNUM -gt 0 ]; then