From b15be8015c2491a796025007c285fe167eb3f91ca18fb85ab99b56495fb9445b Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Fri, 21 Nov 2008 16:02:17 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openldap2?expand=0&rev=43 --- check-build.sh | 29 ++++++----------------------- openldap2-client.changes | 5 +++++ openldap2-client.spec | 4 +++- openldap2.changes | 5 +++++ openldap2.spec | 4 +++- 5 files changed, 22 insertions(+), 25 deletions(-) diff --git a/check-build.sh b/check-build.sh index b6e81e0..0dcd4a0 100644 --- a/check-build.sh +++ b/check-build.sh @@ -1,29 +1,12 @@ #!/bin/bash # Copyright (c) 2003 SuSE Linux AG, Germany. All rights reserved. -# -# Authors: Thorsten Kukuk -# -# this script use the following variable(s): -# -# - $BUILD_DIST -# -case $BUILD_BASENAME in - *axp*|*i386|*i686|*ia64|*ppc|*ppc64|*s390|*s390x|*x86_64) - grep "Linux version 2.[0-5].[0-9][0-9]" /proc/version > /dev/null - if [ $? -ne 1 ]; then - echo "FATAL: kernel too old, need kernel >= 2.6.4 for this package" - exit 1 - fi - grep "Linux version 2.6.[0-3]-" /proc/version > /dev/null - if [ $? -eq 0 ]; then - echo "FATAL: kernel too old, need kernel >= 2.6.4 for this package" - exit 1 - fi - ;; - *) - ;; -esac +# get kernel version +OFS="$IFS" ; IFS=".-" ; version=(`uname -r`) ; IFS="$OIFS" +if test ${version[0]} -lt 2 -o ${version[1]} -lt 6 -o ${version[2]} -lt 11 ; then + echo "FATAL: kernel too old, need kernel >= 2.6.11 for this package" 1>&2 + exit 1 +fi exit 0 diff --git a/openldap2-client.changes b/openldap2-client.changes index 736f8ad..7c549d5 100644 --- a/openldap2-client.changes +++ b/openldap2-client.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Nov 21 16:39:20 CET 2008 - ro@suse.de + +- update check-build.sh + ------------------------------------------------------------------- Wed Nov 5 12:01:57 CET 2008 - rhafer@suse.de diff --git a/openldap2-client.spec b/openldap2-client.spec index d8b6e8e..2de8a80 100644 --- a/openldap2-client.spec +++ b/openldap2-client.spec @@ -27,7 +27,7 @@ BuildRequires: -pwdutils BuildRequires: -db-devel -pwdutils libdb-4_5-devel %endif Version: 2.4.12 -Release: 3 +Release: 4 Url: http://www.openldap.org License: BSD 3-Clause %if "%{name}" == "openldap2" @@ -537,6 +537,8 @@ fi %endif %changelog +* Fri Nov 21 2008 ro@suse.de +- update check-build.sh * Wed Nov 05 2008 rhafer@suse.de - Fixed database shutdown sequence (bnc#441774, ITS#5745) * Tue Nov 04 2008 rhafer@suse.de diff --git a/openldap2.changes b/openldap2.changes index 736f8ad..7c549d5 100644 --- a/openldap2.changes +++ b/openldap2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Nov 21 16:39:20 CET 2008 - ro@suse.de + +- update check-build.sh + ------------------------------------------------------------------- Wed Nov 5 12:01:57 CET 2008 - rhafer@suse.de diff --git a/openldap2.spec b/openldap2.spec index 3cb0eb8..c6534ea 100644 --- a/openldap2.spec +++ b/openldap2.spec @@ -27,7 +27,7 @@ BuildRequires: -pwdutils BuildRequires: -db-devel -pwdutils libdb-4_5-devel %endif Version: 2.4.12 -Release: 3 +Release: 4 Url: http://www.openldap.org License: BSD 3-Clause; openldap 2.8 %if "%{name}" == "openldap2" @@ -540,6 +540,8 @@ fi %endif %changelog +* Fri Nov 21 2008 ro@suse.de +- update check-build.sh * Wed Nov 05 2008 rhafer@suse.de - Fixed database shutdown sequence (bnc#441774, ITS#5745) * Tue Nov 04 2008 rhafer@suse.de