Accepting request 29065 from Base:System

Copy from Base:System/post-build-checks based on submit request 29065 from user coolo

OBS-URL: https://build.opensuse.org/request/show/29065
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/post-build-checks?expand=0&rev=27
This commit is contained in:
OBS User autobuild 2010-01-12 11:55:49 +00:00 committed by Git OBS Bridge
commit 989531550f
2 changed files with 16 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Dec 7 14:58:27 CET 2009 - mmarek@suse.cz
- do not mess with sysconfig files when installed in a live system
(no more missed appointments...).
-------------------------------------------------------------------
Thu Nov 5 15:48:37 CET 2009 - meissner@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package post-build-checks (Version 1.0)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -19,12 +19,12 @@
Name: post-build-checks
License: GPL v2 or later
License: GPLv2+
Group: Development/Tools/Building
AutoReqProv: on
Summary: post checks for build after rpms have been created
Version: 1.0
Release: 67
Release: 68
PreReq: aaa_base permissions sed
Source0: %{name}-%{version}.tar.bz2
Source1: suse-buildsystem.sh
@ -68,6 +68,10 @@ done
rm -rf $RPM_BUILD_ROOT
%post
# do nothing when not in a build chroot
if ! test -e /.buildenv; then
exit 0
fi
sed -i -e "s@^PERMISSION_SECURITY=.*@PERMISSION_SECURITY=\"secure\"@" /etc/sysconfig/security
sed -i -e "s@^TIMEZONE=.*@TIMEZONE=\"UTC\"@" /etc/sysconfig/clock
if test -f /bin/uname -a ! -L /bin/uname ; then
@ -76,6 +80,9 @@ if test -f /bin/uname -a ! -L /bin/uname ; then
fi
%preun
if ! test -e /.buildenv; then
exit 0
fi
if test "$1" = 0 -a -f /bin/uname.bin ; then
mv /bin/uname.bin /bin/uname
fi