1
0
forked from pool/openldap2
OBS User unknown 2008-11-21 16:02:17 +00:00 committed by Git OBS Bridge
parent 0f114a75f0
commit b15be8015c
5 changed files with 22 additions and 25 deletions

View File

@ -1,29 +1,12 @@
#!/bin/bash #!/bin/bash
# Copyright (c) 2003 SuSE Linux AG, Germany. All rights reserved. # Copyright (c) 2003 SuSE Linux AG, Germany. All rights reserved.
#
# Authors: Thorsten Kukuk <kukuk@suse.de>
#
# this script use the following variable(s):
#
# - $BUILD_DIST
#
case $BUILD_BASENAME in # get kernel version
*axp*|*i386|*i686|*ia64|*ppc|*ppc64|*s390|*s390x|*x86_64) OFS="$IFS" ; IFS=".-" ; version=(`uname -r`) ; IFS="$OIFS"
grep "Linux version 2.[0-5].[0-9][0-9]" /proc/version > /dev/null if test ${version[0]} -lt 2 -o ${version[1]} -lt 6 -o ${version[2]} -lt 11 ; then
if [ $? -ne 1 ]; then echo "FATAL: kernel too old, need kernel >= 2.6.11 for this package" 1>&2
echo "FATAL: kernel too old, need kernel >= 2.6.4 for this package" exit 1
exit 1 fi
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
exit 0 exit 0

View File

@ -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 Wed Nov 5 12:01:57 CET 2008 - rhafer@suse.de

View File

@ -27,7 +27,7 @@ BuildRequires: -pwdutils
BuildRequires: -db-devel -pwdutils libdb-4_5-devel BuildRequires: -db-devel -pwdutils libdb-4_5-devel
%endif %endif
Version: 2.4.12 Version: 2.4.12
Release: 3 Release: 4
Url: http://www.openldap.org Url: http://www.openldap.org
License: BSD 3-Clause License: BSD 3-Clause
%if "%{name}" == "openldap2" %if "%{name}" == "openldap2"
@ -537,6 +537,8 @@ fi
%endif %endif
%changelog %changelog
* Fri Nov 21 2008 ro@suse.de
- update check-build.sh
* Wed Nov 05 2008 rhafer@suse.de * Wed Nov 05 2008 rhafer@suse.de
- Fixed database shutdown sequence (bnc#441774, ITS#5745) - Fixed database shutdown sequence (bnc#441774, ITS#5745)
* Tue Nov 04 2008 rhafer@suse.de * Tue Nov 04 2008 rhafer@suse.de

View File

@ -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 Wed Nov 5 12:01:57 CET 2008 - rhafer@suse.de

View File

@ -27,7 +27,7 @@ BuildRequires: -pwdutils
BuildRequires: -db-devel -pwdutils libdb-4_5-devel BuildRequires: -db-devel -pwdutils libdb-4_5-devel
%endif %endif
Version: 2.4.12 Version: 2.4.12
Release: 3 Release: 4
Url: http://www.openldap.org Url: http://www.openldap.org
License: BSD 3-Clause; openldap 2.8 License: BSD 3-Clause; openldap 2.8
%if "%{name}" == "openldap2" %if "%{name}" == "openldap2"
@ -540,6 +540,8 @@ fi
%endif %endif
%changelog %changelog
* Fri Nov 21 2008 ro@suse.de
- update check-build.sh
* Wed Nov 05 2008 rhafer@suse.de * Wed Nov 05 2008 rhafer@suse.de
- Fixed database shutdown sequence (bnc#441774, ITS#5745) - Fixed database shutdown sequence (bnc#441774, ITS#5745)
* Tue Nov 04 2008 rhafer@suse.de * Tue Nov 04 2008 rhafer@suse.de