From 2ad59eca4f6b2d71bc694f61429778c558c819bff1727cb0d00ad27775010884 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Thu, 4 Sep 2008 13:59:45 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/post-build-checks?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + post-build-checks-1.0.tar.bz2 | 3 + post-build-checks.changes | 69 ++++++++++++++++++++++ post-build-checks.spec | 108 ++++++++++++++++++++++++++++++++++ ready | 0 6 files changed, 204 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 post-build-checks-1.0.tar.bz2 create mode 100644 post-build-checks.changes create mode 100644 post-build-checks.spec create mode 100644 ready diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/post-build-checks-1.0.tar.bz2 b/post-build-checks-1.0.tar.bz2 new file mode 100644 index 0000000..65848a5 --- /dev/null +++ b/post-build-checks-1.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bbcfd2b9354f471883c294b07a786e9306adc459cc5d656bd59fab17f8f22974 +size 33333 diff --git a/post-build-checks.changes b/post-build-checks.changes new file mode 100644 index 0000000..2ed5986 --- /dev/null +++ b/post-build-checks.changes @@ -0,0 +1,69 @@ +------------------------------------------------------------------- +Thu Sep 4 14:19:20 CEST 2008 - ro@suse.de + +- added COPYING file + +------------------------------------------------------------------- +Wed Aug 20 14:28:07 CEST 2008 - ro@suse.de + +- allow /var/crash for crash-dumps (FHS-2.3) +- allow /branding (installation-images) + +------------------------------------------------------------------- +Fri Aug 15 17:00:24 CEST 2008 - ro@suse.de + +- make sure LOGFILE is set for gcc warning check + +------------------------------------------------------------------- +Mon Aug 11 15:24:46 CEST 2008 - ro@suse.de + +- eliminate use of BUILD_IS_RUNNING + +------------------------------------------------------------------- +Mon Aug 11 14:46:27 CEST 2008 - ro@suse.de + +- eliminate use of BUILD_BASENAME and package_name + +------------------------------------------------------------------- +Sun Aug 10 12:06:17 CEST 2008 - ro@suse.de + +- add uname hack: let "uname -r" return the version of the + installed kernel-sources, not the one of the running kernel + +------------------------------------------------------------------- +Fri Aug 8 11:55:35 CEST 2008 - ro@suse.de + +- some sysconfig hacks: + sysconfig/security:PERMISSION_SECURITY to secure + sysconfig/clock:TIMEZONE to UTC +- add PreReq "aaa_base permissions sed" to make this work + +------------------------------------------------------------------- +Mon Aug 4 15:03:00 CEST 2008 - ro@suse.de + +- change debuginfo dependency checker: + only fail on dependencies not referring to debuginfo packages + +------------------------------------------------------------------- +Tue Jul 29 01:00:20 CEST 2008 - ro@suse.de + +- fail if a debuginfo or debugsource package has + an unresolvable dependency + +------------------------------------------------------------------- +Tue Jul 15 15:54:08 CEST 2008 - ro@suse.de + +- replace last cleanup_and_exit by exit +- make sure proc is mounted before uninstalling rpms +- export YAST_IS_RUNNING during all install/uninstall tests + +------------------------------------------------------------------- +Mon Jul 14 18:11:26 CEST 2008 - ro@suse.de + +- added 00-install and 99-remove as next part of main build script + +------------------------------------------------------------------- +Mon Jul 14 15:52:16 CEST 2008 - ro@suse.de + +- created package + diff --git a/post-build-checks.spec b/post-build-checks.spec new file mode 100644 index 0000000..7a1808d --- /dev/null +++ b/post-build-checks.spec @@ -0,0 +1,108 @@ +# +# spec file for package post-build-checks (Version 1.0) +# +# Copyright (c) 2008 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + + +Name: post-build-checks +License: GPL v2 or later +Group: Development/Tools/Building +AutoReqProv: on +Summary: post checks for build after rpms have been created +Version: 1.0 +Release: 33 +PreReq: aaa_base permissions sed +Source0: %{name}-%{version}.tar.bz2 +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +some scripts to check for problems like test-installing the newly +created rpms and checking the logfile for errors. + +This package will also set/change the following sysconfig variables, so +it may not be a good idea to install this to a running system: +/etc/sysconfig/security:PERMISSION_SECURITY="secure" +/etc/sysconfig/clock:TIMEZONE="UTC" + + + +%prep +%setup -q + +%build +# nothing to do + +%install +install -d $RPM_BUILD_ROOT/usr/lib/build/checks +install -d $RPM_BUILD_ROOT/usr/lib/build/checks-data +install -d $RPM_BUILD_ROOT/usr/lib/build/helper +install -m 755 checks/* $RPM_BUILD_ROOT/usr/lib/build/checks +install -m 644 checks-data/* $RPM_BUILD_ROOT/usr/lib/build/checks-data +install -m 755 helper/* $RPM_BUILD_ROOT/usr/lib/build/helper +chmod 755 $RPM_BUILD_ROOT/usr/lib/build/checks-data/check* + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +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 + mv /bin/uname /bin/uname.bin + ln -s /usr/lib/build/helper/uname.sh /bin/uname +fi + +%files +%defattr(-, root, root) +%doc COPYING +/usr/lib/build + +%changelog +* Thu Sep 04 2008 ro@suse.de +- added COPYING file +* Wed Aug 20 2008 ro@suse.de +- allow /var/crash for crash-dumps (FHS-2.3) +- allow /branding (installation-images) +* Fri Aug 15 2008 ro@suse.de +- make sure LOGFILE is set for gcc warning check +* Mon Aug 11 2008 ro@suse.de +- eliminate use of BUILD_IS_RUNNING +* Mon Aug 11 2008 ro@suse.de +- eliminate use of BUILD_BASENAME and package_name +* Sun Aug 10 2008 ro@suse.de +- add uname hack: let "uname -r" return the version of the + installed kernel-sources, not the one of the running kernel +* Fri Aug 08 2008 ro@suse.de +- some sysconfig hacks: + sysconfig/security:PERMISSION_SECURITY to secure + sysconfig/clock:TIMEZONE to UTC +- add PreReq "aaa_base permissions sed" to make this work +* Mon Aug 04 2008 ro@suse.de +- change debuginfo dependency checker: + only fail on dependencies not referring to debuginfo packages +* Tue Jul 29 2008 ro@suse.de +- fail if a debuginfo or debugsource package has + an unresolvable dependency +* Tue Jul 15 2008 ro@suse.de +- replace last cleanup_and_exit by exit +- make sure proc is mounted before uninstalling rpms +- export YAST_IS_RUNNING during all install/uninstall tests +* Mon Jul 14 2008 ro@suse.de +- added 00-install and 99-remove as next part of main build script +* Mon Jul 14 2008 ro@suse.de +- created package diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4