diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-10-30 13:25:37 -0700 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-10-30 13:25:37 -0700 |
commit | 8105943f603967dcb1d638f2d5eec255462f1a80 (patch) | |
tree | e76edd9cf6bbd1dd2fca754b6f5495b78f0cb4f5 | |
parent | 3975c20dfee6a788edce86570acd415d36a5d77f (diff) | |
download | build-8105943f603967dcb1d638f2d5eec255462f1a80.tar.gz build-8105943f603967dcb1d638f2d5eec255462f1a80.tar.bz2 build-8105943f603967dcb1d638f2d5eec255462f1a80.zip |
add packaging
-rw-r--r-- | packaging/baselibs.conf | 8 | ||||
-rw-r--r-- | packaging/build-initvm.changes | 12 | ||||
-rw-r--r-- | packaging/build-initvm.spec | 53 | ||||
-rw-r--r-- | packaging/build.spec | 85 |
4 files changed, 158 insertions, 0 deletions
diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf new file mode 100644 index 0000000..951e38e --- /dev/null +++ b/packaging/baselibs.conf @@ -0,0 +1,8 @@ +arch i386 targets x86_64:i386 +arch i586 targets x86_64:i586 +build-initvm + targetname <name>-<targettype> + targettype i386 provides "build-initvm" + targettype i586 provides "build-initvm" + targettype i386 +/usr + targettype i586 +/usr diff --git a/packaging/build-initvm.changes b/packaging/build-initvm.changes new file mode 100644 index 0000000..d18eb7d --- /dev/null +++ b/packaging/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/packaging/build-initvm.spec b/packaging/build-initvm.spec new file mode 100644 index 0000000..cef4a23 --- /dev/null +++ b/packaging/build-initvm.spec @@ -0,0 +1,53 @@ +# +# spec file for package build-initvm +# +# Copyright (c) 2012 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 +Summary: A Script to Build SUSE Linux RPMs +License: GPL-2.0+ +Group: Development/Tools/Building +Version: 20120927 +Release: 0 +Source: obs-build-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +AutoReqProv: off +Requires: build +BuildRequires: gcc +BuildRequires: 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 obs-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/packaging/build.spec b/packaging/build.spec new file mode 100644 index 0000000..48645c6 --- /dev/null +++ b/packaging/build.spec @@ -0,0 +1,85 @@ +Name: build +Summary: A Script to Build SUSE Linux RPMs +License: GPL-2.0+ and GPL-2.0 +Group: Development/Tools/Building +Version: 20120927 +Release: 0 +#!BuildIgnore: build-mkbaselibs +Source: obs-build-%{version}.tar.gz +BuildArch: noarch +# Manual requires to avoid hard require to bash-static +AutoReqProv: off +# Keep the following dependencies in sync with obs-worker package +Requires: bash +Requires: binutils +Requires: perl +Requires: tar +Recommends: perl(Date::Language) +Recommends: perl(Date::Parse) +Recommends: perl(LWP::UserAgent) +Recommends: perl(Pod::Usage) +Recommends: perl(Time::Zone) +Recommends: perl(URI) +Recommends: perl(XML::Parser) +Recommends: bsdtar +Recommends: qemu-linux-user + +Requires: build-mkbaselibs +Recommends: build-mkdrpms + +%description +This package provides a script for building RPMs for SUSE Linux in a +chroot environment. + + +%package mkbaselibs +Summary: Tools to generate base lib packages +Group: Development/Tools/Building +# NOTE: this package must not have dependencies which may break boot strapping (eg. perl modules) + +%description mkbaselibs +This package contains the parts which may be installed in the inner build system +for generating base lib packages. + +%package mkdrpms +Summary: Tools to generate delta rpms +Group: Development/Tools/Building +Requires: deltarpm +# XXX: we wanted to avoid that but mkdrpms needs Build::Rpm::rpmq +Requires: build + +%description mkdrpms +This package contains the parts which may be installed in the inner build system +for generating delta rpm packages. + + +%prep +%setup -q -n obs-build-%version + +%build + +%install +make DESTDIR=$RPM_BUILD_ROOT install + +%files +%defattr(-,root,root) +%doc README +/usr/bin/build +/usr/bin/buildvc +/usr/bin/unrpm +/usr/lib/build +%{_mandir}/man1/build.1* + + +%files mkbaselibs +%defattr(-,root,root) +%dir /usr/lib/build +/usr/lib/build/mkbaselibs +/usr/lib/build/baselibs* + +%files mkdrpms +%defattr(-,root,root) +%dir /usr/lib/build +/usr/lib/build/mkdrpms + +%changelog |