Sync with current server files before releasing

This commit is contained in:
Silvan Calarco 2015-04-18 16:33:42 +02:00
parent d1493a2edf
commit 4ee59fdbd2
2 changed files with 6 additions and 3 deletions

View File

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

View File

@ -3,9 +3,10 @@
RPMS_CTIME_OLD="+14"
BUILD_CTIME_OLD="+14"
SOURCES_CTIME_OLD="+60"
SRPMS_CTIME_OLD="+30"
SOURCES_CTIME_OLD="+14"
SRPMS_CTIME_OLD="+14"
TMP_CTIME_OLD="+2"
LOG_CTIME_OLD="+7"
function clean() {
dir=$1
@ -18,6 +19,7 @@ function clean() {
[ -e $dir/RPM/BUILD/ ] && find $dir/RPM/BUILD/ -mindepth 1 -maxdepth 1 -ctime ${BUILD_CTIME_OLD} -exec rm -rf {} \;
[ -e $dir/RPM/SOURCES/ ] && find $dir/RPM/SOURCES/ -mindepth 1 -maxdepth 1 -ctime ${SOURCES_CTIME_OLD} -a ! -name "*.patch" -exec rm -rf {} \;
[ -e $dir/RPM/SRPMS/ ] && find $dir/RPM/SRPMS/ -mindepth 1 -maxdepth 1 -ctime ${SRPMS_CTIME_OLD} -exec rm -f {} \;
[ -e $dir/.autoport/$arch/ ] && find $dir/.autoport/$arch/ -mindepth 1 -maxdepth 1 -ctime ${LOG_CTIME_OLD} -name *.log -exec rm -f {} \;
}
for i in `seq 0 ${#AUTOPORT_ARCH[*]}`; do