From 8eb11b161f5240fe3f7cc3109279b988ec093648 Mon Sep 17 00:00:00 2001 From: OBS User adrianSuSE Date: Tue, 25 Oct 2011 13:24:31 +0000 Subject: [PATCH] add build-initvm Rev openSUSE:Tools/151 Md5 bd665a8e735521823685fc0a14e9df31 2011-10-25 13:24:31 adrianSuSE None --- baselibs.conf | 8 +++++++ build-initvm.changes | 12 ++++++++++ build-initvm.spec | 54 ++++++++++++++++++++++++++++++++++++++++++++ build.changes | 35 ++++++++++++---------------- 4 files changed, 89 insertions(+), 20 deletions(-) create mode 100644 baselibs.conf create mode 100644 build-initvm.changes create mode 100644 build-initvm.spec diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 00000000..951e38eb --- /dev/null +++ b/baselibs.conf @@ -0,0 +1,8 @@ +arch i386 targets x86_64:i386 +arch i586 targets x86_64:i586 +build-initvm + targetname - + targettype i386 provides "build-initvm" + targettype i586 provides "build-initvm" + targettype i386 +/usr + targettype i586 +/usr diff --git a/build-initvm.changes b/build-initvm.changes new file mode 100644 index 00000000..d18eb7d2 --- /dev/null +++ b/build-initvm.changes @@ -0,0 +1,12 @@ +------------------------------------------------------------------- +Tue Oct 4 12:43:27 UTC 2011 - adrian@suse.de + +- use new qemu-*-binfmt handler to run commands with correct $0 +- fix build for Factory + +------------------------------------------------------------------- +Mon Mar 21 07:02:52 UTC 2011 - adrian@suse.de + +- initial package for new cross build support for OBS. Done by + James Perkins from LinuxFoundation + diff --git a/build-initvm.spec b/build-initvm.spec new file mode 100644 index 00000000..5807c8af --- /dev/null +++ b/build-initvm.spec @@ -0,0 +1,54 @@ +# +# spec file for package build-initvm +# +# Copyright (c) 2011 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/ +# + + + +Name: build-initvm +License: GPLv2+ +Group: Development/Tools/Building +AutoReqProv: on +Summary: A Script to Build SUSE Linux RPMs +Version: 2011.07.01 +Release: 0 +Source: build-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +AutoReqProv: off +Requires: build +BuildRequires: gcc glibc-devel +%if 0%{?suse_version} > 1200 +BuildRequires: glibc-devel-static +%endif + +%description +This package provides a script for building RPMs for SUSE Linux in a +chroot or a secure virtualized environment. + + +%prep +%setup -q -n build-%version + +%build +make CFLAGS="$RPM_BUILD_FLAGS" initvm-all + +%install +make DESTDIR=$RPM_BUILD_ROOT initvm-install + +%files +%defattr(-,root,root) +/usr/lib/build/initvm + +%changelog diff --git a/build.changes b/build.changes index b611270c..c96a2388 100644 --- a/build.changes +++ b/build.changes @@ -3,6 +3,12 @@ Mon Oct 10 19:29:20 CEST 2011 - mls@suse.de - add sles11sp2 build config and adapt autodetection [bnc#711770] +------------------------------------------------------------------- +Tue Oct 4 12:43:27 UTC 2011 - adrian@suse.de + +- use new qemu-*-binfmt handler to run commands with correct $0 +- fix build for Factory + ------------------------------------------------------------------- Mon Sep 26 20:33:59 UTC 2011 - adrian@suse.de @@ -51,6 +57,13 @@ Wed Apr 27 12:34:17 UTC 2011 - adrian@suse.de - revert to single cpu build default for debian packages +------------------------------------------------------------------- +Fri Apr 15 08:55:14 UTC 2011 - adrian@suse.de + +- switch back to single process build for debian to be conform with + their policy +- use cpuid kvm64 on kvm for 64bit as workaround for a cpuid bug + ------------------------------------------------------------------- Tue Mar 29 14:59:28 UTC 2011 - lnussel@suse.de @@ -59,26 +72,8 @@ Tue Mar 29 14:59:28 UTC 2011 - lnussel@suse.de ------------------------------------------------------------------- Tue Mar 1 15:35:21 UTC 2011 - adrian@suse.de -- fix xen build support - -------------------------------------------------------------------- -Mon Feb 28 09:02:32 UTC 2011 - adrian@suse.de - -- do not use current git branch for stable build package in distributions -- require bsdtar for vm builds to ensure a safe build - -------------------------------------------------------------------- -Wed Dec 15 14:05:09 CET 2010 - mls@suse.de - -- also use -o when using bsdtar --chroot - -------------------------------------------------------------------- -Thu Dec 9 11:51:40 UTC 2010 - adrian@suse.de - -- support bsdtar for setting up build enviroment -- make expanddeps use the highest version of a package if multiple - versions aver available in a repository [bnc#656599] -- support other file formats (esp. for .ZIP and .EXE export for crossbuild) +- support new cross build initvm. Done by James Perkins from LinuxFoundation +- do not use loop device anymore when using block devices directly ------------------------------------------------------------------- Thu Nov 11 12:24:13 UTC 2010 - adrian@suse.de